mirror of
https://github.com/junegunn/fzf.vim.git
synced 2026-10-04 19:28:53 +08:00
[Files] Display relative path in prompt
This commit is contained in:
1 file changed
+1
-1
@@ -244,7 +244,7 @@ function! fzf#vim#files(dir, ...)
|
||||
let args.dir = dir
|
||||
let args.options .= ' --prompt '.shellescape(dir)
|
||||
else
|
||||
let args.options .= ' --prompt '.shellescape(pathshorten(getcwd())).'/'
|
||||
let args.options .= ' --prompt '.shellescape(pathshorten(fnamemodify(getcwd(), ':~:.')).'/')
|
||||
endif
|
||||
|
||||
return s:fzf('files', args, a:000)
|
||||
|
||||
Reference in new issue
Block a user