-
Notifications
You must be signed in to change notification settings - Fork 64
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 time, size, etc. #205
Comments
This seems to do the job: let s:DEFAULT_LS_FLAGS = "--directory --indicator-style=slash"
function! Sort(flag)
if &filetype != "dirvish" || !executable("ls")
return
endif
let dir = expand("%:h")
let cmd = printf("ls %s -%s %s/*", s:DEFAULT_LS_FLAGS, a:flag, dir)
execute printf("%%!%s", cmd)
endfunction The only problem with it is that conceallevel is set to zero because the buffer was modified. It would be nice to |
You could use: |
Using ls seems fragile. |
vim has builtin functions for this,
|
Is there a way to sort the list by item attributes other than the name such as modification time (the one I'm interested in), size, etc.?
The text was updated successfully, but these errors were encountered: