Show HN: A plain-text file format for todos and check lists
452 pointsRather than having to memorise CLI commands for these interactions (which I’m not super good at), I figured that it’s easier for me to use my text editor directly, and have an editor plugin help me with the visual structure and some convenience functionality. So, kind-of similar to Emacs Org Mode, but without having to use Emacs. I personally use Sublime Text, and even though I enjoy it a lot, I don’t like being bound to specific tools.
I think the best basis for staying independent is to have a data format that’s properly specified and meaningful on its own. This puts the data first, and it allows the tools to be built on top and shared (or interchanged) more easily.
This is what [x]it! is about, which is a plain-text file format for todos and check lists. I’m curious for thoughts and feedback. There is obviously not much tooling support (yet), but feel free to create something if the idea resonates with you.
Website with demo: https://xit.jotaen.net
File specification: https://github.com/jotaen/xit/blob/main/Specification.md
Comments (164) 67 threads
Earlier commentsI already manage my hobby software projects using plaintext files, using a made-up syntax that is not quite org-mode, not quite xit, but that I'm also not too strongly attached to.
The one thing that jumps out of me that would make it hard to switch to xit that the spec currently doesn't allow lines to start with whitespace, which I use for grouping things. I settled on 2 spaces, but could also see 4 maybe being a better choice because of how it makes things line up.
(presented here with additional spacing because hn doesn't parse single newlines)
UI
[ ] Buttons
But it seems like my potential concerns are not shared that much, so I think the nesting should be added to the [x]it! spec.
For bonus points you should provide an LSP server that lints and syntax checks your xit! files.
Why? Extracting data from notes is really useful. Even if it’s just to reformat them. To extract data they must first be parsed, and to be parsed they must be free of errors.
I’d like to suggest thinking more deeply about dates. I love that you opted to use the yyyy-mm-dd format and I also think it’s great that you’re making things flexible because life is messy.
The problem I see is this; suppose I’m in a text editor and I want to see my todos ordered by due date. This will help me see what’s coming up.
The advantage of using a yyyy-mm-dd format is that it makes things really easy to sort in reverse lexicographic order. However, with dates coming in at any point in the todo, sorting might be tricky. The week-style date format would also be tricky to sort properly.
Granted, this is an option for tools to solve! But if the primary tool is a text editor, then this might be an area that could use refinement.
Again: love the work you put into this and I also love the ergonomics! Thanks for sharing!
- Write due dates first
- Pad your priority with dots
- Don’t use line breaks within descriptions
- Don’t use titles
Then it will sort (in that order) by: item status, priority, due date.
All comments shown.
Couldn't load more comments. Check your connection and try again.