Hi. Is possible to add one more parameter to Atom? It would be great open Atom in directory from console like atom --dir ~/project or when path is empty, open a window to choose some directory. Now we have to start Atom, open another directory and next close old window.
I don’t understand. I regularly run
atom . or
atom ~/foo and Atom launches with that directory as the current project. Is there something different you would like to happen?
No. Now I can write this script
#!/bin/bash DIR=`zenity --file-selection --directory --title="Select a directory"` echo $DIR if ! [ -z $DIR ] then atom $DIR fi
and all is fine.
Thank you very much.