Fix navigation annoyances #6
Loading…
x
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Currently
tmux
andvim
are configured to use the same key bindings fornavigation seamlessly between the two:
C-h
,C-j
,C-k
,C-l
The mechanism for detecting when a pane contains a
vim
instance depends on thename of the process that pane is currently running, this is error prone since a
process such as
git commit
can spawn avim
instance. The process name doesnot match
grep -iqE "(^|\/)g?(view|n?vim?)(diff)?$"
so onlytmux
navigationoccurs. A possible solution to this issue:
tmux
window options, those prefixed with@
followed by any string.tmux set-window option @vim<pane-index> 1
vim
to set thetmux
window option on process start, and unset it onprocess finish.
vim
process.