diff options
Diffstat (limited to 'vis-open')
| -rwxr-xr-x | vis-open | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -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" |
