AnthonyDiGirolamo / todotxt-machine

an interactive terminal based todo.txt file editor with an interface similar to mutt
https://pypi.python.org/pypi/todotxt-machine/
GNU General Public License v3.0
244 stars 37 forks source link

Added support for a few more useful keyboard shortcuts in edit mode #18

Closed khughitt closed 9 years ago

khughitt commented 9 years ago

Thanks for all of your work on todotxt-machine. I am loving it :)

AnthonyDiGirolamo commented 9 years ago

Thanks for adding this @khughitt! Now that we have a pull request for custom key bindings I'm finally getting around to this.

rpesche commented 9 years ago

I'm confused. I thought that we already has the code to go one word left/right with the default keys "ctrl-f" and "ctrl-b". What is the difference between these two ?

AnthonyDiGirolamo commented 9 years ago

You're right @rpesche, and with your custom bindings feature it should be easy for users to modify it.

khughitt commented 9 years ago

If another PR adds better keyboard shortcut support, go ahead and merge that. My main goals were to add some bash-like support for navigating and editing entries.

AnthonyDiGirolamo commented 9 years ago

Hey @khughitt I kept the delete to beginning of line key since that was missing. I've merged #27 and updated its functionality so you can add ctrl-left and ctrl-right to the ~/.todotxt-machinerc by adding it to the keys section:

[keys]
edit-word-left = meta b, ctrl b, ctrl left
edit-word-right = meta f, ctrl f, ctrl right

Run todotxt-machine --show-default-bindings to see all the default bindings. Let me know if that works for you.