Fork me on GitHub
#emacs
<
2018-11-12
>
danielcompton07:11:59

Is there a way in Projectile to sort the files list by most recently used file? It seems to be sorted by a breadth first directory search?

danielcompton07:11:12

Or some similar alphabetical kind of sorting

danielcompton07:11:30

I guess there might be a perf impact to sorting these

pesterhazy08:11:48

@danielcompton not a direct answer to your question but I use this git alias to get a list of files under version control ordered by mtime: modified = !git ls-files -z | xargs -0 ls -tr

pesterhazy08:11:20

@richiardiandrea please let me know if it works for you

practicalli-johnny12:11:54

@danielcompton projectile sorts by most recent file open in Spacemacs (`develop` branch). From a quick search, I believe its this code that makes it work https://github.com/syl20bnr/spacemacs/blob/develop/layers/%2Bspacemacs/spacemacs-project/packages.el#L51

👍 4