jakobnissen / alen

Simple terminal alignment viewer
MIT License
78 stars 5 forks source link

`tmux`-friendly controls? #12

Open taprs opened 4 months ago

taprs commented 4 months ago

Hi Jakob! This thing looks cool, thanks!

I recognize that it might not be a common usecase for alen, but I would routinely use it to browse alignments in an ssh session through tmux on macOS. Taken together, it superseeds most of the control key sequences that seem to be hardcoded in alen 😞 specifically, Ctrl-Shift-arrows do not work and ctrl-J jumps to the next pane...

It would be helpful to me if the key bindings were remappable! Otherwise, an alternative control scheme involving less ctrls and shifts would also work.

Cheers, Nikita

taprs commented 4 months ago

As a temporary solution, I did some fiddling with tmux and got the mentioned keys to work, I can probably live without some tmux hotkeys...

For the curious ones, I did set-option -g -w xterm-keys on to enable shift-arrows and unbind-key -T root C-j to unblock ctrl-j for jumps.