parent
0102255dce
commit
f0458d7026
@ -937,6 +937,11 @@ fu! s:ToggleKeyLoop()
|
|||||||
en
|
en
|
||||||
endf
|
endf
|
||||||
|
|
||||||
|
fu! s:ToggleMRURelative()
|
||||||
|
cal ctrlp#mrufiles#tgrel()
|
||||||
|
cal s:PrtClearCache()
|
||||||
|
endf
|
||||||
|
|
||||||
fu! s:PrtSwitcher()
|
fu! s:PrtSwitcher()
|
||||||
let [s:force, s:matches] = [1, 1]
|
let [s:force, s:matches] = [1, 1]
|
||||||
cal s:BuildPrompt(1)
|
cal s:BuildPrompt(1)
|
||||||
|
@ -126,6 +126,10 @@ fu! ctrlp#mrufiles#bufs()
|
|||||||
retu s:mrbs
|
retu s:mrbs
|
||||||
endf
|
endf
|
||||||
|
|
||||||
|
fu! ctrlp#mrufiles#tgrel()
|
||||||
|
let {s:re} = !{s:re}
|
||||||
|
endf
|
||||||
|
|
||||||
fu! ctrlp#mrufiles#cachefile()
|
fu! ctrlp#mrufiles#cachefile()
|
||||||
if !exists('s:cadir') || !exists('s:cafile')
|
if !exists('s:cadir') || !exists('s:cafile')
|
||||||
let s:cadir = ctrlp#utils#cachedir().ctrlp#utils#lash().'mru'
|
let s:cadir = ctrlp#utils#cachedir().ctrlp#utils#lash().'mru'
|
||||||
|
@ -572,6 +572,9 @@ Example: >
|
|||||||
Set this to 1 to show only MRU files in the current working directory: >
|
Set this to 1 to show only MRU files in the current working directory: >
|
||||||
let g:ctrlp_mruf_relative = 0
|
let g:ctrlp_mruf_relative = 0
|
||||||
<
|
<
|
||||||
|
Note: you can use a custom mapping to toggle this option inside the prompt: >
|
||||||
|
let g:ctrlp_prompt_mappings = { 'ToggleMRURelative()': ['<F2>'] }
|
||||||
|
<
|
||||||
|
|
||||||
*'g:ctrlp_mruf_default_order'*
|
*'g:ctrlp_mruf_default_order'*
|
||||||
Set this to 1 to disable sorting when searching in MRU mode: >
|
Set this to 1 to disable sorting when searching in MRU mode: >
|
||||||
|
Loading…
x
Reference in New Issue
Block a user