mirror of
https://github.com/sunaku/tmux-navigate.git
synced 2026-09-10 07:26:42 -04:00
GH-4: try detecting Vim from pane title of any app
This commit is contained in:
parent
52da3cdca6
commit
8327772ea7
|
|
@ -58,14 +58,8 @@ command_is_vim() {
|
|||
}
|
||||
|
||||
pane_contains_vim() {
|
||||
case "$pane_current_command" in
|
||||
(git|*sh)
|
||||
command_is_vim "$pane_title"
|
||||
;;
|
||||
(*)
|
||||
command_is_vim "$pane_current_command"
|
||||
;;
|
||||
esac
|
||||
command_is_vim "$pane_current_command" ||
|
||||
command_is_vim "$pane_title"
|
||||
}
|
||||
|
||||
pane_contains_neovim_terminal() {
|
||||
|
|
|
|||
Loading…
Reference in a new issue