I want to edit the tree-view package in Atom. I want to add a new item to the context menu. But i can't file where are the files. I can open the config folder and I can see all the community packages I have installed, but where do I find the core files of the editor?
1 Answers
They are packed inside the app.asar
file. This file is located at the following location in the OS X version.
Atom.app/Contents/Resources/app.asar
This file is generated by this build script.
Of course, this package is open-source, so you can view the code for tree-view on GitHub.
GitHub also has some documentation for developing on official Atom packages.
The first step is creating your own clone.
For example, if you want to make changes to the
tree-view
package, fork the repo on your github account, then clone it:> git clone [email protected]:your-username/tree-view.git
Next install all the dependencies:
> cd tree-view > apm install Installing modules ✓
Now you can link it to development mode so when you run an Atom window with
atom --dev
, you will use your fork instead of the built in package:> apm link -d
Also, if all you want to do is add another menu item, I wouldn't be surprised if there is an API for doing so from another plugin.