![]() With all the technology available now to help us track pretty much every aspect of our lives, you might wonder why anyone would opt for a text file instead. A simple text file can be a flexible way of storing your ideas-you can add a date if you want to, and you can come back to the list and add notes later to expand on it. If you're thinking up new ideas all the time, you're going to want somewhere to put them. I recently wrote about how to come up with better ideas. If you'd rather store all that data yourself and not have it filling up an email account, you could use a text file to keep a running list of short letters to your children about their progress. I came across this idea on Hacker News, where a parent mentioned writing emails to their son every day. You won't get the extras of an app made for journalling, such as automatic weather data, tags, or adding images, but if your aim is to build the simple habit of penning some thoughts every day, plain text will more than suit your needs.Ī related idea is writing letters for your children to read when they grow up. There are some great apps for journalling now, but if you don't want to pay for yet another app just to hold your journal, a text file can work just as well. You don't need to fit in with any particular feature set-just try out different ways of planning your week and stick with what works. The great thing about using a text file for your weekly plan is that you have the flexibility to experiment. Once a week, usually on Mondays, I open a small text file named plan.txt and jot down my action plan for the week. I do both, as I need a robust system to keep track of everything, but a simple to do list for the week keeps me from getting overwhelmed. Even if you use a complicated task management app, you might still benefit from doing a simple weekly plan like this. The tree structure would help with the folding/focus features, but it seems to make the schema and copy/pasting parts more difficult.Computer scientist Cal Newport uses a text file to plan his week ( example above) so he can get more done. Each line of plain text will be a node in the document, but I’m torn on whether they should be organized as a flat list or tree based on indentation.Augment the basic text editor with TaskPaper features like syntax highlighting similar to the ProseMirror linting example. ![]() Is there any value to a custom Taskpaper schema that does know about these concepts?) (The schema doesn’t know about concepts like projects, tasks, tags, and notes. Use a simple text schema that only enforces indentation with tabs.However, ProseMirror lists don’t maintain indentation when copy/pasting to a plain text file.īased on my current understanding of ProseMirror this seems to be the best approach: Since a Taskpaper file is just a list, I also considered starting with just the ProseMirror list schema for a base. Then I could just decorate stuff like tags and projects a la the linter example. Schemas seem to enforce what type of content is allowed Taskpaper files allow just about any sequence of text it’s just that the interpretation of the text might change if you add/remove the right special characters ( Maybe just enforcing the rule that all lines start with (optional) tabbed indentation (and not spaces) would be enough. However, perhaps a custom schema is not required. However, there doesn’t seem to be a simple way to convert these nodes back to plain “note” nodes when they no longer match the proper syntax (for example when the is deleted from a tag or inserted in the middle of a tag name). “Task” and “tag” nodes could be created when - or is typed. With this Taskpaper schema, input rules could be used to convert a “note” node to a “project” node when : is typed. So I tried to come up with a BNF grammar here. I will describe them below:Īt first, I thought I needed to write a ProseMirror schema for TaskPaper files. Then, what is the best approach? The first idea I had no longer seems to be the best route I thought of other ways that might work better. For more background, is a related project using CodeMirror where you can explore the TaskPaper format and associated API.įirst question: is this possible? Or am I trying to use ProseMirror for something it not suited for? At least one person tried to do something similar with markdown. The TaskPaper app already has most of these features, but it’s Mac-only and there are some additional features I would like to add like sorting by tag. Syntax highlighting of projects and tags.My goal is add functionality on top of a regular text editor. The TaskPaper format is plain text that gives special meaning to certain sequences of text. ![]() I am creating a TaskPaper editor using ProseMirror. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |