mcchrish / nnn.vim

File manager for vim/neovim powered by n³
BSD 2-Clause "Simplified" License
645 stars 24 forks source link

Pass selection tempfile path env to nnn command #105

Closed lclrc closed 3 years ago

lclrc commented 3 years ago

Because nnn.vim uses a temp selection file with random_name and nnn's plugins use selection=${NNN_SEL:-${XDG_CONFIG_HOME:-$HOME/.config}/nnn/.selection} to get which files are selected, so nnn.vim should pass NNN_SEL env to nnn command.

Make select action of nnn's plugin(like chksum, diffs etc.) also works in nnn.vim.