Move commits up and down within TMUX #3201
-
Hi! I use a lot lazygit to rearrange commits (dope feature) with ctrl-j/k. I recently switched to tmux and I use ctrl-h/j/k/l to move around panes (through vim-tmux-navigator). The result is I cannot currently rearrange commits. What shortcuts would you replace them with? Thanks! |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 7 replies
-
I have the same "problem", but instead of remapping I just run |
Beta Was this translation helpful? Give feedback.
-
This a bit simpler variation should work too (works for me): bind -n C-j if-shell "[ #{pane_current_command} = lazygit ]" "send-keys C-j" "select-pane -D"
bind -n C-k if-shell "[ #{pane_current_command} = lazygit ]" "send-keys C-k" "select-pane -U" |
Beta Was this translation helpful? Give feedback.
This seems to work