Browse Source

FZF should respect the sorting of the MRU file (sorted by recency) while typing and refreshing the query results (#48)

* FZF should respect the sorting of the MRU file (sorted by recency) in its results while typing.

* Fix tab/spaces.
ranelpadon 4 years ago
parent
commit
a2eb43d40b
1 changed files with 3 additions and 2 deletions
  1. 3 2
      plugin/mru.vim

+ 3 - 2
plugin/mru.vim

@@ -1035,8 +1035,9 @@ func s:MRU_FZF_Run() abort
     return
   endif
   call fzf#run(fzf#wrap({'source' : s:MRU_files,
-	\ 'sink' : function('s:MRU_FZF_EditFile'),
-	\ 'down' : g:MRU_Window_Height}, 0))
+    \ 'options' : '--no-sort',
+    \ 'sink' : function('s:MRU_FZF_EditFile'),
+    \ 'down' : g:MRU_Window_Height}, 0))
 endfunc
 command! -nargs=0 FZFMru call s:MRU_FZF_Run()