Use Enter key for different actions (like in emacs) #301
Replies: 2 comments 5 replies
-
I like it :) one thing that comes to mind: what about headlines that have links in them? |
Beta Was this translation helpful? Give feedback.
-
I've improved the script to allow for easier customization. The new "type_to_action" table is in a specific order, the code will execute the action of the first type it can find as ordered inside the list. This means that, if you have multiple possible actions on a specific position, you can decide which one should be executed by putting it higher inside the list. Be aware that this relies on the treesitter parser, which might not always correctly evaluate the syntax. |
Beta Was this translation helpful? Give feedback.
-
Hello everyone!
Just thought about sharing the code I've written to make some org actions more easily doable. Using this code, you'll be able to do things like toggling checkboxes, advancing headline TODO states, opening links and opening dates inside the agenda just by pressing the "Enter" key.
This better emulates what happens when you press "Enter" on emacs in an org file.
This is a little bit too long to fit inside this post, but I've made a gist about it:
Gist file
Let me know what you think 🙂
Beta Was this translation helpful? Give feedback.
All reactions