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

sort by modification date #90

Closed
XedMada opened this issue Sep 14, 2011 · 12 comments
Closed

sort by modification date #90

XedMada opened this issue Sep 14, 2011 · 12 comments

Comments

@XedMada
Copy link

XedMada commented Sep 14, 2011

would be very handy for some uses. e.g. notational velocity replacement.

@jrdmcgr
Copy link

jrdmcgr commented Sep 22, 2012

+1. I've been trying to figure out how to do this for the very same reason. I need a good console NV replacement.

@x2es
Copy link

x2es commented Sep 2, 2014

+1
I am using sorting by date everywhere and it is very useful for me.

@Xuyuanp
Copy link
Contributor

Xuyuanp commented Sep 3, 2014

I tried to do this by myself. But I found it was almostly impossible after I read the source code.

@tebeka
Copy link

tebeka commented Nov 8, 2016

+1

2 similar comments
@xinxingzhao
Copy link

+1

@hiberabyss
Copy link
Contributor

+1

@AndrewRadev
Copy link
Contributor

I created a fork of the plugin that enables sorting by access time: https://github.com/AndrewRadev/nerdtree/tree/sort-by-atime. The instructions on how to enable it and toggle it on or off, are at the top of the README.

I'm not making a PR, because it's a bit hacky. If Scrooloose wanted to implement the feature, I imagine he'd make a setting for a sorting callback or something, but I just toggle it with a global variable. It's also slow for large directories, since every single file needs to get stat-ed to get the access time, which means an extra shell-out. But, depending on your use case, you might find it useful.

@tadassce
Copy link

@AndrewRadev it's exactly what I needed, thanks!!!

@rizjoj
Copy link

rizjoj commented Mar 8, 2017

+1

1 similar comment
@xbot
Copy link

xbot commented Jul 29, 2017

+1

@seanw2020
Copy link

seanw2020 commented Mar 19, 2018

Here's my workaround for NERDTree's lack of "timestamp sort":

:Ex /some/path/ (alternatively :Ve for vertical split or :Se for horizontal split)
s (to sort by time)
r (reverse order -- look for "Sorted by time reversed")
Enter (open your file)
:NerdTreeFind (navigates NERDTree to the currently open file)

@PhilRunninger PhilRunninger added PR Under Review Coding is finished, and a pull request has been created and is being reviewed. and removed PR Under Review Coding is finished, and a pull request has been created and is being reviewed. labels Oct 22, 2018
@PhilRunninger
Copy link
Member

Implemented by #901

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests