This package provides:
This package consumes:
Made for Pulsar!
This package was written specifically for Pulsar and did not exist in the Atom package repository.
Enhanced tree view for exploring and opening project files.
open-external service.file2 before file10). Choose between natural sort and locale-aware collation.ItemRegistry error.underscore-plus and fs-plus in favor of native Node.js APIs.tree-view-roots service that lets external packages inject virtual root sections into the tree view. Used by tree-view-favourites to add favourite sections.To install tree-view-plus search for tree-view-plus in the Install pane of the Pulsar settings or run ppm install tree-view-plus. Alternatively, you can run ppm install asiloisad/pulsar-tree-view-plus to install a package directly from the GitHub repository.
tree-view-rootsAllows external packages to inject virtual root sections into the tree view above the project folders. Used by tree-view-favourites to add favourite sections.
In your package.json:
{
"consumedServices": {
"tree-view-roots": {
"versions": { "1.0.0": "consumeRoots" }
}
}
}
In your main module:
consumeRoots(api) {
this.handle = api.registerRoot({
name: 'My Section', // Section header text
iconClass: 'icon-star', // Icon class for the header
className: 'my-section', // CSS class for the section container
entryClassName: 'my-entry', // CSS class for each entry
getEntries: () => [...], // Function returning an array of file paths
onDrop: (paths) => {...}, // Called when entries are dropped onto this section
})
}
The returned handle provides:
handle.element — the section's DOM element (or null if not attached)handle.update() — re-reads entries and re-rendershandle.toggle() — toggle section visibilityhandle.dispose() — remove the sectionGot ideas to make this package better, found a bug, or want to help add new features? Just drop your thoughts on GitHub — any feedback's welcome!