5 ms·
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 fil
by thespoonbends 6y 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?
- bananaface 6y agohttps://github.com/Somelauw/evil-org-mode https://github.com/Somelauw/evil-org-mode
- thespoonbends 6y agoI 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.
- alanbernstein 6y agoI 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.
- ywei3410 6y agoYou 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 https://github.com/abo-abo/hydra