]> Sergey Matveev's repositories - nnn.git/commitdiff
Merge pull request #1628 from spfanning/patch-1
authorArun <engineerarun@gmail.com>
Fri, 14 Apr 2023 13:24:22 +0000 (18:54 +0530)
committerGitHub <noreply@github.com>
Fri, 14 Apr 2023 13:24:22 +0000 (18:54 +0530)
Support wezterm split size percentage in preview-tui

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'"