Open satishskamath opened 1 year ago
Sorry for the really late reply @xaizek . I was wondering how this can be approached? I thought of 2 functions and I am not sure if this can already be achieved in some way other than vifm or default netrw has something built in for this:
cwd
.cwd
. (https://wiki.vifm.info/index.php/How_to_set_shell_working_directory_after_leaving_Vifm may be using this option --choose-dir
and passing this on to the editor?)Yes, need to use result of --choose-dir
, specifically feed it into :cd
or :lcd
. The catch though is that plugin's code is a mess. Code-wise:
s:StartVifm
and s:HandleRunResults
.cd
for editcmd
parameter and upon detection, pass --choose-dir
instead of --choose-files
.s:HandleRunResults
should do exec cd <path>
after checking that there is only one path.
No, but it probably won't be hard to add.