Skip to content

Commit

Permalink
Merge remote-tracking branch 'QiBaobin/rc/windowing/wezterm'
Browse files Browse the repository at this point in the history
  • Loading branch information
mawww committed Jul 29, 2023
2 parents 90acec9 + 117f12d commit dad128e
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions rc/windowing/wezterm.kak
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ wezterm-terminal-vertical <program> [<arguments>] [<arguments>]: create a new te
The current pane is split into two, top and bottom
The program passed as argument will be executed in the new terminal' \
%{
wezterm-terminal-impl split-pane --bottom -- %arg{@}
wezterm-terminal-impl split-pane --cwd "%val{client_env_PWD}" --bottom -- %arg{@}
}
complete-command wezterm-terminal-vertical shell

Expand All @@ -29,23 +29,23 @@ wezterm-terminal-horizontal <program> [<arguments>]: create a new terminal as a
The current pane is split into two, left and right
The program passed as argument will be executed in the new terminal' \
%{
wezterm-terminal-impl split-pane --right -- %arg{@}
wezterm-terminal-impl split-pane --cwd "%val{client_env_PWD}" --right -- %arg{@}
}
complete-command wezterm-terminal-horizontal shell

define-command wezterm-terminal-tab -params 1.. -docstring '
wezterm-terminal-tab <program> [<arguments>]: create a new terminal as a wezterm tab
The program passed as argument will be executed in the new terminal' \
%{
wezterm-terminal-impl spawn -- %arg{@}
wezterm-terminal-impl spawn --cwd "%val{client_env_PWD}" -- %arg{@}
}
complete-command wezterm-terminal-tab shell

define-command wezterm-terminal-window -params 1.. -docstring '
wezterm-terminal-window <program> [<arguments>]: create a new terminal as a wezterm window
The program passed as argument will be executed in the new terminal' \
%{
wezterm-terminal-impl spawn --new-window -- %arg{@}
wezterm-terminal-impl spawn --cwd "%val{client_env_PWD}" --new-window -- %arg{@}
}
complete-command wezterm-terminal-window shell

Expand Down

0 comments on commit dad128e

Please sign in to comment.