Shougo / ddu.vim

Dark deno-powered UI framework for Vim/NeoVim
MIT License
295 stars 24 forks source link

Feature request: Pass `cwd` to terminal previewers #76

Closed ogaken-1 closed 1 year ago

ogaken-1 commented 1 year ago

The "termopen()" function can receive "cwd" as an opts, so I would like to be able to pass this to the terminal previewers.

This is useful when I want to run "git log" using the current buffer path, which has nothing to do with Vim's cwd.

Currently this can be done with "sh -c", but it doesn't work on Windows, which is a problem.

NOTE: git can exec with any cwd by "-C" flag.

ogaken-1 commented 1 year ago

This is already solved with 26b2c1da44942293d8633b2f937b9ccfe6d3db04.