How to edit core files in Atom Editor

I want to edit the tree-view package in Atom. I want to add a new item to the context menu. But I can not indicate where the files are located. I can open the config folder and I can see all the community packages that I installed, but where can I find the main editor files?

+6
source share
1 answer

They are packaged inside the app.asar file. This file is located next in OS X.

 Atom.app/Contents/Resources/app.asar 

This file is created by this build script .

Of course, this package is open source, so you can view the code for the tree view on GitHub .

GitHub also has some documentation for development on official Atom packages .

The first step is to create your own clone.

For example, if you want to make changes to the tree-view package, deploy the repo to your github account, then clone it:

 > git clone git@github.com :your-username/tree-view.git 

Then install all the dependencies:

 > cd tree-view > apm install Installing modules โœ“ 

Now you can associate it with development mode, so when you start the Atom window with atom --dev , you will use your plug instead of the built-in package:

 > apm link -d 

Also, if all you want to do is add another menu item, I wonโ€™t be surprised if there is an API for this from another plugin.

+11
source

All Articles