Commit 5517908258d3881242da9d2d58a8562151e8b7a8 Parent: f1e20675588a461c5e3e47e034ad9538dd7c0b1e Author: mcol <mcol@posteo.net> Date: 2021-08-22 15:22:12 +0100 Committer: mcol <mcol@posteo.net> Committed: 2021-08-22 15:22:12 +0100 Add folder-management in default usage
README.rst Modified
@@ -21,10 +21,18 @@ use better-suited tools to figure out what to do. For example, this will delegate item handling to the useful ``xdg-open`` script -packaged by many unix distributions: +packaged by many unix distributions, and folder handling to ``thunar``: .. code-block:: sh xanadu | while read item do - xdg-open $item + if test -d "$item" + then + thunar "$item" + else + xdg-open $item + fi done + +For inspiration as to what tools to delegate to, I recommend looking at +https://wiki.archlinux.org/title/Default_applications.