mirror of
https://github.com/mawww/kakoune.git
synced 2024-11-23 15:23:29 +03:00
rc windowing: use menu behavior for focus
We can complete every possible client argument.
This commit is contained in:
parent
7f08ac3de2
commit
3e9ca0e5c3
@ -136,7 +136,7 @@ If no client is passed then the current one is used' \
|
|||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
complete-command iterm-focus client
|
complete-command -menu iterm-focus client
|
||||||
|
|
||||||
alias global focus iterm-focus
|
alias global focus iterm-focus
|
||||||
alias global terminal iterm-terminal-vertical
|
alias global terminal iterm-terminal-vertical
|
||||||
|
@ -72,7 +72,7 @@ If no client is passed then the current one is used' \
|
|||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
complete-command kitty-focus client
|
complete-command -menu kitty-focus client
|
||||||
|
|
||||||
alias global terminal kitty-terminal
|
alias global terminal kitty-terminal
|
||||||
alias global terminal-tab kitty-terminal-tab
|
alias global terminal-tab kitty-terminal-tab
|
||||||
|
@ -6,4 +6,4 @@ The optional arguments are passed as commands to the new client' \
|
|||||||
terminal kak -c %val{session} -e "%arg{@}"
|
terminal kak -c %val{session} -e "%arg{@}"
|
||||||
}
|
}
|
||||||
|
|
||||||
complete-command new command
|
complete-command -menu new command
|
||||||
|
@ -72,7 +72,7 @@ If no client is passed then the current one is used' \
|
|||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
complete-command screen-focus client
|
complete-command -menu screen-focus client
|
||||||
|
|
||||||
alias global focus screen-focus
|
alias global focus screen-focus
|
||||||
alias global terminal screen-terminal-vertical
|
alias global terminal screen-terminal-vertical
|
||||||
|
@ -43,7 +43,7 @@ If no client is passed, then the current client is used' \
|
|||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
complete-command sway-focus client
|
complete-command -menu sway-focus client
|
||||||
|
|
||||||
unalias global focus
|
unalias global focus
|
||||||
alias global focus sway-focus
|
alias global focus sway-focus
|
||||||
|
@ -71,7 +71,7 @@ If no client is passed then the current one is used' \
|
|||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
complete-command tmux-focus client
|
complete-command -menu tmux-focus client
|
||||||
|
|
||||||
## The default behaviour for the `new` command is to open an horizontal pane in a tmux session
|
## The default behaviour for the `new` command is to open an horizontal pane in a tmux session
|
||||||
alias global focus tmux-focus
|
alias global focus tmux-focus
|
||||||
|
@ -51,7 +51,7 @@ If no client is passed, then the current client is used' \
|
|||||||
%{
|
%{
|
||||||
fail 'Focusing specific windows in most Wayland window managers is unsupported'
|
fail 'Focusing specific windows in most Wayland window managers is unsupported'
|
||||||
}
|
}
|
||||||
complete-command wayland-focus client
|
complete-command -menu wayland-focus client
|
||||||
|
|
||||||
alias global focus wayland-focus
|
alias global focus wayland-focus
|
||||||
alias global terminal wayland-terminal
|
alias global terminal wayland-terminal
|
||||||
|
@ -63,7 +63,7 @@ If no client is passed, then the current client is used' \
|
|||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
complete-command x11-focus client
|
complete-command -menu x11-focus client
|
||||||
|
|
||||||
alias global focus x11-focus
|
alias global focus x11-focus
|
||||||
alias global terminal x11-terminal
|
alias global terminal x11-terminal
|
||||||
|
Loading…
Reference in New Issue
Block a user