Closed khughitt closed 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.
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 ?
You're right @rpesche, and with your custom bindings feature it should be easy for users to modify it.
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.
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.
cntl + u
Delete form cursor to beginning of linecntl + left
Navigate one word leftcntl + right
Navigate one word rightThanks for all of your work on todotxt-machine. I am loving it :)