Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Change key bindings to fix Control+Shift problem in Terminator #11

Open
MaxPleaner opened this issue Dec 25, 2015 · 3 comments
Open

Change key bindings to fix Control+Shift problem in Terminator #11

MaxPleaner opened this issue Dec 25, 2015 · 3 comments

Comments

@MaxPleaner
Copy link

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.

@hishamhm
Copy link
Owner

@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).

@markuman
Copy link

markuman commented Apr 5, 2016

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

dit/dit.c

Line 959 in 94b4867

FILE* fd = Files_open("r", "bindings/default", NULL);
(if I'm not completly wrong).

For example, changing to CTRL_K for deleting a line works fine (instead of F8).

@hishamhm
Copy link
Owner

imho recompiling isn't necessary when chaning the bindings/default file.

That's correct :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants