dit
dit copied to clipboard
Change key bindings to fix Control+Shift problem in Terminator
I am using the Terminator terminal and everything I've tried works well except for the commands to select next / previous word (control+shift+right and control+shift+left). The shift+direction commands are working fine, and I can select lines by using shift+up. Furthermore, the control+s and control+q bindings work fine. However, the control+shift combinations I tried didn't work.
I tried cloning the git repo, editing the bindings/default file to replace control with alt in the bindings to select next / previous word. I then recompiled the program with autoconf configure.ac
, sudo sh ./configure
, sudo make
, and sudo make install
.
Still, when I use dit in Terminator I can't select next/previous word. This issue isn't present when using Gnome terminal.
@MaxPleaner Are ctrl-shift arrows used by Terminator (switching tabs, I assume)? Can you reconfigure it to not use these keys?
The code I uploaded to Git this week supports alt-arrows (tested on Linux only), though in a clumsy way: you have to specify them as ALT_A, ALT_B, ALT_C, ALT_D in your bindings/default file (I know, I'll fix that).
I tried cloning the git repo, editing the bindings/default file to replace control with alt in the bindings to select next / previous word. I then recompiled the program with autoconf configure.ac, sudo sh ./configure, sudo make, and sudo make install
imho recompiling isn't necessary when chaning the bindings/default
file. After installing they are located in /usr/share/dit/bindings/default
(on my arch linux system) and open dynamically here https://github.com/hishamhm/dit/blob/94b48676c5c90ec2ffa743d9944fa09dab758e5e/dit.c#L959 (if I'm not completly wrong).
For example, changing to CTRL_K
for deleting a line works fine (instead of F8).
imho recompiling isn't necessary when chaning the bindings/default file.
That's correct :)