mirror of
https://github.com/junegunn/fzf.git
synced 2025-07-30 19:52:00 -07:00
Implement --no-sort options with some fixes
This commit is contained in:
@@ -23,11 +23,11 @@
|
||||
|
||||
let s:exec = expand('<sfile>:h:h').'/fzf'
|
||||
|
||||
function! s:fzf(cmd)
|
||||
function! s:fzf(args)
|
||||
try
|
||||
let tf = tempname()
|
||||
let prefix = empty(a:cmd) ? '' : a:cmd.' | '
|
||||
execute "silent !".prefix."/usr/bin/env bash ".s:exec." > ".tf
|
||||
let prefix = exists('g:fzf_command') ? g:fzf_command.'|' : ''
|
||||
execute "silent !".prefix."/usr/bin/env bash ".s:exec." ".a:args." > ".tf
|
||||
if !v:shell_error
|
||||
execute 'silent e '.join(readfile(tf), '')
|
||||
endif
|
||||
|
Reference in New Issue
Block a user