nvimdev / dashboard-nvim

vim dashboard
MIT License
2.36k stars 193 forks source link

pwd is home #9

Closed p00f closed 4 years ago

p00f commented 4 years ago

When opening recent files, pwd is home (/home/chinmay) instead of the directory of the current file

How to reproduce: Select any file from "recently opened" menu, then do :pwd Expected: pwd is the directory of the opened file

glepnir commented 4 years ago

what fuzzyfind plugin do you used? vim-clap or fzf?

glepnir commented 4 years ago

image

p00f commented 4 years ago

what fuzzyfind plugin do you used? vim-clap or fzf?

vim-clap

glepnir commented 4 years ago

what do you expect? only show the old files in current folder?

p00f commented 4 years ago

Video: https://imgur.com/rYkIEOP

I expect the output of :pwd to be /home/chinmay/.config instead of /home/chinmay image

glepnir commented 4 years ago

I think it's not problem with dashboard-nvim. because you open vim in ~ path.

p00f commented 4 years ago

@glepnir vim-startify works correctly: https://imgur.com/p7ykiMo

glepnir commented 4 years ago

Ok. I will look at it.

glepnir commented 4 years ago

@PitcherTear22 The startify will do the lcd command when you open file in startify. dashboard-nvim use the command of fuzzyfind plugins. so we can check what should we do in vim-clap command Clap history.

glepnir commented 4 years ago

Can you test it with latest commit?

p00f commented 4 years ago

Can you test it with latest commit?

Ok just a minute

p00f commented 4 years ago

It is fixed, thanks!

glepnir commented 4 years ago

@PitcherTear22 But it will has a problem with defx. because it change the pwd to current file dir not work dir.

p00f commented 4 years ago

Can you make it a config option then ? Like g:dashboard#change#pwd (which defaults to 1)

glepnir commented 4 years ago

@PitcherTear22 What file explorer do you used?

glepnir commented 4 years ago

new option called let g:dashboard_change_to_dir default is 0 ,enable is 1

p00f commented 4 years ago

ok

p00f commented 4 years ago

@PitcherTear22 What file explorer do you used?

I don't understand?