mirror of
https://github.com/nmasur/dotfiles
synced 2024-11-23 01:05:38 +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
|