Merge remote-tracking branch 'krobelus/tmux-repl-completion'

This commit is contained in:
Maxime Coste 2022-07-28 21:23:30 +10:00
commit ab20fa9360

View File

@ -26,17 +26,17 @@ define-command -hidden -params 1.. tmux-repl-impl %{
define-command tmux-repl-vertical -params 0.. -docstring "Create a new vertical pane for repl interaction" %{ define-command tmux-repl-vertical -params 0.. -docstring "Create a new vertical pane for repl interaction" %{
tmux-repl-impl 'split-window -v' %arg{@} tmux-repl-impl 'split-window -v' %arg{@}
} }
complete-command tmux-repl-vertical command complete-command tmux-repl-vertical shell
define-command tmux-repl-horizontal -params 0.. -docstring "Create a new horizontal pane for repl interaction" %{ define-command tmux-repl-horizontal -params 0.. -docstring "Create a new horizontal pane for repl interaction" %{
tmux-repl-impl 'split-window -h' %arg{@} tmux-repl-impl 'split-window -h' %arg{@}
} }
complete-command tmux-repl-horizontal command complete-command tmux-repl-horizontal shell
define-command tmux-repl-window -params 0.. -docstring "Create a new window for repl interaction" %{ define-command tmux-repl-window -params 0.. -docstring "Create a new window for repl interaction" %{
tmux-repl-impl 'new-window' %arg{@} tmux-repl-impl 'new-window' %arg{@}
} }
complete-command tmux-repl-window command complete-command tmux-repl-window shell
define-command -params 0..1 tmux-repl-set-pane -docstring %{ define-command -params 0..1 tmux-repl-set-pane -docstring %{
tmux-repl-set-pane [pane number]: Set an existing tmux pane for repl interaction tmux-repl-set-pane [pane number]: Set an existing tmux pane for repl interaction