mirror of
https://github.com/jarun/nnn.git
synced 2025-01-15 21:36:42 +00:00
Support wezterm split size percentage
This commit is contained in:
parent
8a1dce888a
commit
63891578d7
|
@ -173,7 +173,7 @@ start_preview() {
|
||||||
--cwd "$PWD" "$ENVSTRING" --location "${NNN_SPLIT}split" "$0" "$1" 1 ;;
|
--cwd "$PWD" "$ENVSTRING" --location "${NNN_SPLIT}split" "$0" "$1" 1 ;;
|
||||||
wezterm)
|
wezterm)
|
||||||
if [ "$NNN_SPLIT" = "v" ]; then split="--horizontal"; else split="--bottom"; fi
|
if [ "$NNN_SPLIT" = "v" ]; then split="--horizontal"; else split="--bottom"; fi
|
||||||
wezterm cli split-pane --cwd "$PWD" $split "$0" "$1" 1 >/dev/null
|
wezterm cli split-pane --cwd "$PWD" $split --percent "$NNN_SPLITSIZE" "$0" "$1" 1 >/dev/null
|
||||||
wezterm cli activate-pane-direction Prev ;;
|
wezterm cli activate-pane-direction Prev ;;
|
||||||
iterm)
|
iterm)
|
||||||
command="$SHELL -c 'cd $PWD; env $ENVSTRING $0 $1 1'"
|
command="$SHELL -c 'cd $PWD; env $ENVSTRING $0 $1 1'"
|
||||||
|
|
Loading…
Reference in a new issue