justinmk / vim-dirvish

Directory viewer for Vim :zap:
Other
1.18k stars 64 forks source link

Add option for preamble before shdo scripts #200

Open idbrii opened 3 years ago

idbrii commented 3 years ago

I want all of my scripts to explicitly start in the current dirvish working directory, so I use the example from the doc: let g:dirvish_shdo_preamble = 'cd {}'

Other users may tend to create scripts with arguments, want their commands to be inside a function, or output some diagnostic data.

Using the same escaping that is applied on lines since that seems like the safest thing to do.