Skip to content

Commit 09485c1

Browse files
committed
Pass selection tempfile path to nnn command
Make select action of nnn's plugin(like chksum, diffs etc.) works in nnn.vim.
1 parent abf7001 commit 09485c1

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

autoload/nnn.vim

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -366,6 +366,7 @@ function! nnn#pick(...) abort
366366
let l:sess_cfg = ' '
367367
endif
368368

369+
let g:nnn#command = 'NNN_SEL='.shellescape(s:temp_file).' '.g:nnn#command
369370
let l:cmd = g:nnn#command.l:sess_cfg.' -p '.shellescape(s:temp_file).' '.(l:directory != '' ? shellescape(l:directory): '')
370371
let l:layout = exists('l:opts.layout') ? l:opts.layout : g:nnn#layout
371372

0 commit comments

Comments
 (0)