Friday, March 6, 2015

Re: Sort by file extension in netrw?

Ben Fritz wrote:
> 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.
>
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

--
--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

No comments: