aboutsummaryrefslogtreecommitdiff
path: root/vis-open
diff options
context:
space:
mode:
authorMarc André Tanner <mat@brain-dump.org>2015-11-23 12:45:23 +0100
committerMarc André Tanner <mat@brain-dump.org>2015-11-23 14:18:27 +0100
commit6aa9342c60d4faa0510264f7a51e1b753704fc2b (patch)
tree37b94d34609a1b6d6e94fe071501c784efe9cf31 /vis-open
parentc4d675a2c600aaceb5f11644fdac8692f048ff22 (diff)
downloadvis-6aa9342c60d4faa0510264f7a51e1b753704fc2b.tar.gz
vis-6aa9342c60d4faa0510264f7a51e1b753704fc2b.tar.xz
vis: use file open dialog for all directories
Diffstat (limited to 'vis-open')
-rwxr-xr-xvis-open1
1 files changed, 1 insertions, 0 deletions
diff --git a/vis-open b/vis-open
index 0bcdd5c..a47249f 100755
--- a/vis-open
+++ b/vis-open
@@ -32,6 +32,7 @@ if ! type "$VIS_MENU" >/dev/null 2>&1; then
fi
DIR=""
+[ ! -z "$PATTERN" -a "$PATTERN" != "." -a -d "$PATTERN" ] && DIR="$PATTERN"
while true; do
SEL=$({ echo ..; ls -1 $PATTERN; } | $VIS_MENU $VIS_MENU_ARGS)