Skip to content

Comment on Why We’re Building Collections

Comments

Maybe I'm not representative, but I live in zsh on mac and linux/freebsd.

What I'd really like is a way to specify files within zsh, then open a new finder window with just those files in it, without moving them. Right now, I can do "open ." and get a Finder window with the current working directory, but what I want is something like "openw [1-5]*/" and get a new finder window containing just things matching that. They could easily be in multiple directories too.

Should be easy to do; create a temporary directory, hardlink the files there, run the file manager on that directory, then delete the directory and links when it closes.

Something like:

  mkdir "$HOME/.virtualdirs" 2> /dev/null
  tempdir=$(mktemp -d -p "$HOME/.virtualdirs")
  for file in $*; do
    ln "$file" "$tempdir/$(basename $file)"
  done
  thunar "$tempdir" #replace thunar with your file manager
  rm -r "$tempdir"

Ok, now that it works, you just need the other 999.75 hours to make it into a real application ;)

I wonder if that might be possible without this app. what if we were able to translate shell expansion operators into Smart Folder views, or some other similar thing? That would be a good start.

AboutSource Built by g1lg1l

Hackerly is an independent reader for Hacker News, built on the public HN API. Not affiliated with Y Combinator.