mirror of
https://github.com/nmasur/dotfiles
synced 2024-11-10 04:02:55 +00:00
7 lines
257 B
Fish
7 lines
257 B
Fish
function recent --description "Open a recent file in Vim"
|
|
set vimfile (fd -t f --exec stat -f "%m%t%N" | sort -nr | cut -f2 | fzf)
|
|
and set vimfile (echo $vimfile | tr -d '\r')
|
|
and commandline -r "vim $vimfile"
|
|
and commandline -f execute
|
|
end
|