Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update to Atom 1.2 file tree api #229

Closed
DanBrooker opened this issue Nov 15, 2015 · 13 comments
Closed

Update to Atom 1.2 file tree api #229

DanBrooker opened this issue Nov 15, 2015 · 13 comments
Assignees
Labels
enhancement Feature requests or suggested improvements.
Milestone

Comments

@DanBrooker
Copy link
Member

The Tree View displays icons next to files. These icons are customizable by installing a package that provides an atom.file-icons service.

The atom.file-icons service must provide the following methods:

iconClassForPath(path) - Returns a CSS class name to add to the file view
onWillDeactivate - An event that lets the tree view return to its default icon strategy

https://github.com/atom/tree-view#api

@controversial
Copy link

Any timeline for this?

@DanBrooker
Copy link
Member Author

No timeline atm, I haven't had time to look into this properly.
PRs welcome

@Alhadis
Copy link
Member

Alhadis commented Apr 25, 2016

I'm currently unemployed and going berserk from code-obsessed restlessness... I'll have a look at it. =)

@Alhadis Alhadis self-assigned this Apr 25, 2016
@Alhadis
Copy link
Member

Alhadis commented Apr 28, 2016

@DanBrooker We won't be able to work on this until atom/tree-view/issues/732 makes it into a public release. A (recently-fixed) bug is preventing the icons service from running on startup, meaning icons can only be added to newly-created files. It won't apply to files that already exist in the workspace on startup.

@Alhadis
Copy link
Member

Alhadis commented Apr 29, 2016

Erh, I'll rephrase that: we won't be able to test this feature properly until the aforementioned fix makes it into the public release channel (I was informed that it's scheduled for release in v1.9.*).

I've already begun working on the logic to parse a new configuration structure. Much friendlier, cleaner, and easier to maintain than the existing setup. Should be a lot more performant too.

@acontreras89
Copy link

@Alhadis glad to know you'll be implementing the new atom.file-icons behavior service.
This service is already consumed by tabs and tree-view, with find-and-replace (find in project) and fuzzy-finder coming next 💪

@Alhadis
Copy link
Member

Alhadis commented Apr 30, 2016

@acontreras89 I'm glad for that, I have noticed you've been busy at work with this. ;-) Appreciate your efforts.

I submitted a pull request last night (or rather, at the arse-crack of dawn this morning) to apply a fix for the tree-view package. I haven't checked if this affects the tabs package too, although it probably does.

@DanBrooker This won't be backwards compatible with existing customisations; we'll need to release v2.0.0 due to breaking changes. Since this will require the newest version of Atom, the minimum required Atom version will also need to be lifted. Good a time as any to cut a new major release.

@DanBrooker
Copy link
Member Author

Yes to all of the things. @Alhadis glad you are all over this.

@Alhadis
Copy link
Member

Alhadis commented May 3, 2016

@DanBrooker would you mind giving me your thoughts on this so I know whether to implement it in v2.0.0 or not? =)

It'd be an awesome and useful feature to have, but I feel uncomfortable adding it without your permission.

@DanBrooker
Copy link
Member Author

@Alhadis there's no rush to release 2.0.0, I think it's a good opportunity to include other major/breaking changes also.

@Alhadis
Copy link
Member

Alhadis commented May 10, 2016

@DanBrooker I'm closing this in favour of a dedicated task-list, which will track all features related to v2.

@Alhadis Alhadis closed this as completed May 10, 2016
@raphaelokon
Copy link

Is this issue related to icons not being displayed (I can only see a rectangle instead of the icon).
I have my atom config folder ~/somepath/.atom fyi

And yes – I restarted my atom :-)

@Alhadis
Copy link
Member

Alhadis commented Jun 12, 2016

@raphaelokon Please file a separate issue if there's a problem. This doesn't seem related at all.

I'm locking this thread to avoid fragmenting future discussion on v2 or the API upgrade. Any further discussion should be held here so we're not running around checking different threads.

@file-icons file-icons locked and limited conversation to collaborators Jun 12, 2016
@Alhadis Alhadis added the enhancement Feature requests or suggested improvements. label Oct 16, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement Feature requests or suggested improvements.
Projects
None yet
Development

No branches or pull requests

5 participants