DEV Community

loading...

Discussion on: Open a file in your editor of choice

Collapse
brandelune profile image
Jean-Christophe Helary Author

Yes, doing that from Terminal is is totally possible. It's when you're in Finder that you need to fiddle with the keyboard. Copying a file in Finder and pasting it in Terminal gives you an absolute path, so you can use that in a script where you wait for a path argument, but I find that when I'm on the GUI side it's faster to call a GUI side script with Spotlight (or any other utility launcher that takes a selection as argument).