Hacker News new | ask | show | jobs
by thespoonbends 2056 days ago
Yeah, I think it could do with a modal interface: normal mode would perform tree-like operations and allow entering text. Insert mode would treat the entire file as plain text.

... there must be a mode that does this already?

3 comments

I meant modal as in "if you hold down backspace, the item's text will be removed, but the item heading will remain", i.e. the headers are read-only while editing an item. evil-org-mode won't stop me pressing backspace too many times and screwing up.
You could use hydra [1] to set up something like this pretty easily. I did have a setup like this once, but found that escaping the 'modes' with an extra keypress when I only typically wanted to do one or two operations wasn't particularly nice.

[1] https://github.com/abo-abo/hydra

I don't think I understand what you're asking for, but you can easily switch from org-mode to text-mode and back, on a custom keybinding if you like.