Skip to content

Move commits up and down within TMUX #3201

Answered by mark2185
baggiponte asked this question in Q&A
Discussion options

You must be logged in to vote

This seems to work

# use c-k/c-j to move commits up/down within lazygit
is_lg="ps -o state= -o comm= -t '#{pane_tty}' | grep -iqE '^[^TXZ ]+ +(\\S+\\/)?lazygit$'"

bind -n C-j if "$is_lg" "send-keys C-j"  "select-pane -D"
bind -n C-k if "$is_lg" "send-keys C-k"  "select-pane -U"

Replies: 2 comments 7 replies

Comment options

You must be logged in to vote
7 replies
@baggiponte
Comment options

@mark2185
Comment options

@baggiponte
Comment options

@mark2185
Comment options

Answer selected by baggiponte
@baggiponte
Comment options

Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants