-
Notifications
You must be signed in to change notification settings - Fork 364
Provide a service API #433
Comments
The tree view uses |
Exactly what I needed. I just didn't know about it 🌹 |
Reopening as Might investigate adding something along similar lines though. |
The way this is done in the tree view right now, is that is recursively adds "change" listeners starting at the projects roots (where I'm starting to see the usefulness of either a service API, or at least some emitted event. |
Basically needs to be emitted here : https://github.com/atom/tree-view/blob/master/lib/move-dialog.coffee#L35 |
Opinion needed before I PR:
If its going to be on
|
I don't think a new global for Tree View makes sense since Tree View is a package and can be disabled. |
@mnquintana cool. What about |
Would you guys be open to expanding the definition of this issue? I would really like to get the view of any file or directory that was added or changed. Beyond that, I'm sure it would be useful to know when files were moved or deleted as well. We could have a few different methods in the service that could provide disposables for each of these situations. Personally, I could also use a service method to get any file or directory views based on extension (or perhaps more generically based on some pattern). In my case, I'm building a package for robotframework and I'd like to be able to add checkboxes next to files ending in .robot and any directories containing them. This will allow the user to select which tests they want to run directly from the tree view (to function similar to RIDE). |
Is there any news regarding this? |
I created a pull request for this #1162 It is just providing access to the |
Particularly interested in getting told about file/folder renames.
Would make it easier for me to support folder / file move style refactoring for atom-typescript.
Would you guys be open to consider such a PR.
The text was updated successfully, but these errors were encountered: