Open a file in Atom from the terminal without lag 🏎️
This package lets you open files from the command line. Atom already lets you do this with their atom
CLI helper, but this one is freaking instantaneously fast.
Install open-in-atom-cli bin using npm or yarn:
npm install -g open-in-atom-cliyarn global add open-in-atom-cli
(Alternatively, you can just copy the shell script
open-in-atom
to your PATH.)
Then install the companion Atom package, open-in-atom-pkg:
apm install open-in-atom-pkg
Use open-in-atom <file>
in your terminal. It will open your files instantly, instead of waiting 5 seconds for the official Atom CLI.
# Open a fileopen-in-atom README.md# Open a directoryopen-in-atom .# Open a directory and some files under itopen-in-atom . README.md package.json
You can set atom-open as your EDITOR for some apps. Here it is working with ranger (eg, EDITOR=open-in-atom ranger
):
open-in-atom © 2018, Rico Sta. Cruz. Released under the MIT License. Authored and maintained by Rico Sta. Cruz with help from contributors (list).
ricostacruz.com · GitHub @rstacruz · Twitter @rstacruz
Good catch. Let us know what about this package looks wrong to you, and we'll investigate right away.