Sort by file extension in netrw?

166 views
Skip to first unread message

Ben Fritz

unread,
Mar 6, 2015, 11:45:18 AM3/6/15
to vim...@googlegroups.com
Is it possible to sort by file extension in netrw?

I cycled the sort sequence with 's' in my netrw tree and was surprised to see "by extension" is not in the various sort methods. Only name, time, and size.

I looked in the help found the g:netrw_sort_sequence but that just looks like a way to pull out specific file patterns and put them at the top. I did eventually accomplish the task I was trying to do using this option (actually using the 'S' mapping), by pulling the one set of files I wanted to the top, but I wonder in general if I can easily group all files by extension.

Charles Campbell

unread,
Mar 6, 2015, 12:36:11 PM3/6/15
to vim...@googlegroups.com
The g:netrw_sort_sequence is the current way to do sorting by
extension. I'll put a "exten" sort method on my to-do list.
FYI: the "*" pattern for g:netrw_sort_sequence allows one to control
where all non-matching files go, so its not necessarily just "put
[matching file patterns] at the top".

Regards,
Chip Campbell

Reply all
Reply to author
Forward
0 new messages