aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSebastiano Tronto <sebastiano.tronto@gmail.com>2021-11-21 16:31:12 +0100
committerSebastiano Tronto <sebastiano.tronto@gmail.com>2021-11-21 16:31:12 +0100
commit80a952882678373d20cd71e2e4974ac2604b83c1 (patch)
treee990ba31894411fbfaca426ff26f7188e344d52d
parent302ac9f5271796d203772b7ff6b9a737c8e6da73 (diff)
downloadscripts-80a952882678373d20cd71e2e4974ac2604b83c1.tar.gz
scripts-80a952882678373d20cd71e2e4974ac2604b83c1.zip
Fixed dmenu-filepicker when picking multiple files. Fixed opening multiple bookmarks at once in dmenu-bookmarks
-rwxr-xr-xdmenu-bookmarks4
-rwxr-xr-xdmenu-filepicker4
2 files changed, 6 insertions, 2 deletions
diff --git a/dmenu-bookmarks b/dmenu-bookmarks
index 7de7040..f21849b 100755
--- a/dmenu-bookmarks
+++ b/dmenu-bookmarks
@@ -7,4 +7,6 @@
7#dir=$XDG_DATA_HOME/bookmarks 7#dir=$XDG_DATA_HOME/bookmarks
8dir=$HOME/Dropbox/bookmarks # TODO: change it when I have a better sync system 8dir=$HOME/Dropbox/bookmarks # TODO: change it when I have a better sync system
9 9
10cat "$(dmenu-filepicker $dir)" | xargs open-url 10echo "$(dmenu-filepicker $dir)" | while read line; do
11 cat "$line"
12done | xargs open-url
diff --git a/dmenu-filepicker b/dmenu-filepicker
index a14bd53..532fb82 100755
--- a/dmenu-filepicker
+++ b/dmenu-filepicker
@@ -21,7 +21,9 @@ while true; do
21 cd "$next" 21 cd "$next"
22 next=$(ls -a | $menu $menuopts) 22 next=$(ls -a | $menu $menuopts)
23 else 23 else
24 echo "$(pwd)/$next" 24 echo "$next" | while read line; do
25 echo "$(pwd)/$line"
26 done
25 break 27 break
26 fi 28 fi
27done 29done

Generated with cgit - Back to sebastiano.tronto.net