GithubHelp home page GithubHelp logo

Comments (7)

mark2185 avatar mark2185 commented on May 19, 2024 1

How do you unbind them? Manually via tmux unbind -T root -n C-j, or adding them to a config and reloading it?

If you're adding it to your config, it could be one of your plugins (if you have any) binds them again so make sure you put the unbind as far down as you can.

from lazygit.

mark2185 avatar mark2185 commented on May 19, 2024 1

If you're still using vim and just want to add lazygit to the list of programs that can handle C-j, you can just modify the regex:

- ... | grep -iqE '^[^TXZ ]+ +(\\S+\\/)?g?(view|n?vim?x?)(diff)?$'" "send-keys C-j" "select-pane -D"
+ ... | grep -iqE '^[^TXZ ]+ +(\\S+\\/)?(g?(view|n?vim?x?)(diff)?|lazygit)$'" "send-keys C-j" "select-pane -D"

from lazygit.

mark2185 avatar mark2185 commented on May 19, 2024

Did you override the <c-k>/<c-j> in your .tmux.conf by any chance?

from lazygit.

nathan22x3 avatar nathan22x3 commented on May 19, 2024

Did you override the <c-k>/<c-j> in your .tmux.conf by any chance?

At first I thought I did, but no. I even unbind them, but nothing changed

unbind C-j
unbind C-k

from lazygit.

mark2185 avatar mark2185 commented on May 19, 2024

Could you please check if tmux list-keys lists C-j somewhere?

I managed to get the desired behavior by unbinding them like this:

unbind -T root -n C-j
unbind -T root -n C-k

from lazygit.

nathan22x3 avatar nathan22x3 commented on May 19, 2024

It seems like I used to bind them, but I can't unbind them with your instruction

Could you please check if tmux list-keys lists C-j somewhere?

I managed to get the desired behavior by unbinding them like this:

unbind -T root -n C-j
unbind -T root -n C-k

This is my tmux list-keys look like:

bind-key    -T root         C-j                  if-shell "ps -o state= -o comm= -t '#{pane_tty}'     | grep -iqE '^[^TXZ ]+ +(\\S+\\/)?g?(view|n?vim?x?)(diff)?$'" "send-keys C-j" "select-pane -D"
bind-key    -T root         C-k                  if-shell "ps -o state= -o comm= -t '#{pane_tty}'     | grep -iqE '^[^TXZ ]+ +(\\S+\\/)?g?(view|n?vim?x?)(diff)?$'" "send-keys C-k" "select-pane -U"

from lazygit.

nathan22x3 avatar nathan22x3 commented on May 19, 2024

Manually unbind did the job! Thank you so much!

from lazygit.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.