8000 Change key bindings to fix Control+Shift problem in Terminator · Issue #11 · hishamhm/dit · GitHub
[go: up one dir, main page]

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

    Open

    Description

    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.

    Activity

    1. hishamhm commented on Feb 19, 2016

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

    2. markuman commented on Apr 5, 2016

      @markuman

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

    3. hishamhm commented on Oct 25, 2016

      @hishamhm
      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

    Metadata

    Metadata

    Assignees

    No one assigned

      Labels

      No labels
      No labels

      Type

      No type

      Projects

      No projects

        Milestone

        No milestone

        Relationships

        None yet

        Development

        No branches or pull requests

        Issue actions

      • 0