open-in-atom

Opens a file in atom without lags

MIT License

Stars
10
Committers
1

open-in-atom

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.

Installation

Install open-in-atom-cli bin using npm or yarn:

npm install -g open-in-atom-cli
yarn 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

Usage

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 file
open-in-atom README.md

# Open a directory
open-in-atom .

# Open a directory and some files under it
open-in-atom . README.md package.json

Using with other apps

You can set atom-open as your EDITOR for some apps. Here it is working with ranger (eg, EDITOR=open-in-atom ranger):

Thanks

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