]> Sergey Matveev's repositories - nnn.git/commitdiff
Support wezterm split size percentage
authorspfanning <46325357+spfanning@users.noreply.github.com>
Thu, 13 Apr 2023 20:50:31 +0000 (15:50 -0500)
committerGitHub <noreply@github.com>
Thu, 13 Apr 2023 20:50:31 +0000 (15:50 -0500)
plugins/preview-tui

index f9a51ca7f958d46ec9632bd38de3bbebe02a020d..6a4be8b5dcb49875365978c01c9abc8d0fd527bf 100755 (executable)
@@ -173,7 +173,7 @@ start_preview() {
                 --cwd "$PWD" "$ENVSTRING" --location "${NNN_SPLIT}split" "$0" "$1" 1 ;;
         wezterm)
             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 ;;
         iterm)
             command="$SHELL -c 'cd $PWD; env $ENVSTRING $0 $1 1'"