jrmoulton / tmux-sessionizer

Tmux Sessionizer: A tool for opening git repositories as tmux sessions
MIT License
463 stars 35 forks source link

remap ctrl-k and ctrl-j keybinds #75

Closed emilioziniades closed 9 months ago

emilioziniades commented 9 months ago

This PR maps ctrl-k and ctrl-j to up and down respectively, bringing it into line with fzf.

Unfortunately, this overwrites the existing behaviour:

I'm open to suggestions as to which keys these should be mapped to - I didn't want to just pick random ones.

Closes #74

junglerobba commented 9 months ago

Imo the current shortcut on ctrl+k is not all that useful, at least I don't really use it ever. It only exists because it was easy to add when implementing deleting to the left with ctrl+u :) Other than that I just tried to stick to the default readline shortcuts (https://readline.kablamo.org/emacs.html), or at least the ones that would be useful in this context. Ideally shortcuts would be configurable, but not sure if that's not overkill.