aboutsummaryrefslogtreecommitdiff
path: root/vis-open
diff options
context:
space:
mode:
Diffstat (limited to 'vis-open')
-rwxr-xr-xvis-open6
1 files changed, 5 insertions, 1 deletions
diff --git a/vis-open b/vis-open
index a79792f..28d1b1a 100755
--- a/vis-open
+++ b/vis-open
@@ -5,6 +5,10 @@ set -e
NL='
'
+if [ -z "$VIS_OPEN_LINES" ]; then
+ VIS_OPEN_LINES='0'
+fi
+
VIS_MENU_PROMPT=''
ALLOW_AUTO_SELECT='1'
@@ -66,7 +70,7 @@ fi
# At this point, we have a bunch of options we need to present to the
# user so they can pick one.
-CHOICE="$(printf '%s\n' '..' "$@" | wrap_dirs | vis-menu -b -p "$VIS_MENU_PROMPT")"
+CHOICE="$(printf '%s\n' '..' "$@" | wrap_dirs | vis-menu -b -l "$VIS_OPEN_LINES" -p "$VIS_MENU_PROMPT")"
# Did they pick a file or directory? Who knows, let's let the next iteration figure it out.
exec "$0" -p "$VIS_MENU_PROMPT" -- "$CHOICE"