atom / tree-view

🌳 Explore and open project files in Atom
MIT License
561 stars 364 forks source link

Ability to explicitly refresh tree-view #133

Open stereosteve opened 10 years ago

stereosteve commented 10 years ago

When using with sshfs the tree and git status can get out of sync. Is it possible to add a key command to explicitly refresh the tree?

murphyslaw commented 10 years ago

Same issue with FileVault on Mavericks.

sudo fdesetup status # => FileVault is On.
probablycorey commented 10 years ago

There is no way to do this currently other than refreshing the entire window using the window:reload command.

lee-dohm commented 10 years ago

What I typically do when I need to refresh it is to collapse and expand the node that needs to be refreshed. If enough of them need it, then I collapse and expand the root node. That seems to do the trick for me when working with sshfs on OS X.

I haven't had any issue with needing refreshes when running File Vault 2. I don't know about File Vault 1 ... but it is highly recommended to upgrade to File Vault 2 if you're still using File Vault 1 anyway.

mdeboer commented 8 years ago

The tree also gets out of sync when using GIT if you change the gitignore file, a refresh button would be nice to fix this.

360art commented 8 years ago

I got out of sync when rename folder. Window:reload do the trick but it is time-consuming.

slikts commented 8 years ago

My files are on a Samba share, and the tree view periodically goes out of sync. It would be nice if there was a command to refresh the tree view, as Window: Reload is painful to use.

lnxg33k commented 8 years ago

The same thing in here when working with sshfs mount.

AndreHorst commented 7 years ago

Yes, deleting adding files in the GIT repo doesnt change the color code correctly!

mdeboer commented 7 years ago

I think with all the issues it should autorefresh really. Anyway, I found that collapsing and opening a folder fixes the issue so it appears you don't need to re-draw the whole tree.

AndreHorst commented 7 years ago

collapsing and re-collapsing is not working for me. However, toggling the treeview did the trick.

benjamingwynn commented 7 years ago

A button or even a command in the command palette would be nice. Just for peace of mind if nothing else.

jonilaserson commented 7 years ago

Yep, also having this issue. Quickly gets out of sync with sshfs and there is no ability to refresh other than file->reopen project.

mdeboer commented 7 years ago

Just a thought:

Atom is colouring my tree view files and directories with colours corresponding with their git status. This means that it is monitoring files and folders for changes or polling git status (I haven't checked). Is it me or would this mean there's functionality there to watch for changes and trigger an action e.g. refresh the tree?

ryanpatiency commented 6 years ago

Having same issue

exse2 commented 6 years ago

I had success by installing tree-view-auto-fold, binding this key in keymap.cson: 'f10': 'tree-view-auto-fold:toggle' and then toggling it off and on again.

abhijit113 commented 4 years ago

collapsing and re-collapsing is not working for me. However, toggling the treeview did the trick.

yeap....it worked