Comments (5)
I did a little research, and it looks like the tree-view code is depending on the order that's returned by atom.Directory.getEntriesSync
1 function. There doesn't appear to be a way to change that function's sorting behavior.
We could add a method that sorts the directory entries as they are loaded. My guess is that would best go in the Directory.reload
function, which I've linked to below.
Relevant source locations:
- https://github.com/atom/tree-view/blob/master/lib/directory-view.coffee#L40
- https://github.com/atom/tree-view/blob/master/lib/directory.coffee#L80
- https://github.com/atom/tree-view/blob/master/lib/directory.coffee#L129
from tree-view.
+1
from tree-view.
Would also like the option to sort by date. My use case is note-taking, where it is convenient to display the most recently updated notes at the top (like Notational Velocity).
from tree-view.
@damiendr, could you please open another issue for this? The directory/file sorting functionality that seems to be the main point of this issue has been fixed.
from tree-view.
@50Wliu done, just opened #343 for that.
from tree-view.
Related Issues (20)
- Doesn't detect subfolder as repos
- One more time about this file deleting issue HOT 1
- [RFE] Request for an option to prevent the 'Project' pane from opening on startup HOT 60
- file-icons does not work in Electron 9 HOT 1
- A config to disable always show tree view HOT 2
- Can't disable tree-view (Project Pane) on startup HOT 1
- Uncaught TypeError: Cannot read property 'parentElement' of null HOT 1
- 11
- File-Icons package bug
- aqhua
- Hide VCS Ignored/Settings getting reset to default
- Navigate to file in tree
- The following file couldn't be moved to the trash
- Probleme
- Any option to mute horizontal scroll ?
- Improve horizontal scrolling to maxime view of the selected region
- Type-ahead search in tree view
- `getPath of undefined`
- Hidden on Startup option doesn't work HOT 2
- Git repo in a git repo grayed out HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from tree-view.