mirror of
https://github.com/junegunn/fzf.vim.git
synced 2026-02-25 19:17:24 +08:00
Use shortened path name of current working directory as the prompt
This commit is contained in:
@@ -118,7 +118,7 @@ function! s:files(dir, bang)
|
|||||||
let args.dir = dir
|
let args.dir = dir
|
||||||
let args.options .= ' --prompt '.shellescape(dir)
|
let args.options .= ' --prompt '.shellescape(dir)
|
||||||
else
|
else
|
||||||
let args.options .= ' --prompt "./"'
|
let args.options .= ' --prompt '.shellescape(pathshorten(getcwd())).'/'
|
||||||
endif
|
endif
|
||||||
|
|
||||||
call s:fzf(args, a:bang)
|
call s:fzf(args, a:bang)
|
||||||
|
|||||||
Reference in New Issue
Block a user