From 1f894c6e81657daaa884494aea6ef1146b816d46 Mon Sep 17 00:00:00 2001 From: Kien N Date: Sun, 4 Mar 2012 01:53:34 +0700 Subject: [PATCH] Deprecate the old commands --- doc/ctrlp.txt | 11 +++++++---- plugin/ctrlp.vim | 6 +++++- 2 files changed, 12 insertions(+), 5 deletions(-) diff --git a/doc/ctrlp.txt b/doc/ctrlp.txt index 88ff892..e069a9a 100644 --- a/doc/ctrlp.txt +++ b/doc/ctrlp.txt @@ -417,9 +417,9 @@ COMMANDS *ctrlp-commands* :CtrlPClearAllCaches Delete all the cache files saved in |g:ctrlp_cache_dir|. - *:CtrlPReset* -:CtrlPReset - Reset all options and take in new values of the option variables. + *:CtrlPReload* +:CtrlPReload + Load new values for the option variables. ------------------------------------------------------------------------------- The following commands ignore the current value of |g:ctrlp_working_path_mode|: @@ -802,6 +802,9 @@ CHANGELOG *ctrlp-changelog* Before 2012/03/02~ + Rename: + *ClearCtrlPCache* -> |CtrlPClearCache| + *ClearAllCtrlPCaches* -> |CtrlPClearAllCaches| + *ResetCtrlP* -> |CtrlPReload| *g:ctrlp_regexp_search* -> |g:ctrlp_regexp|, *g:ctrlp_dont_split* -> |g:ctrlp_reuse_window|, *g:ctrlp_jump_to_buffer* -> |g:ctrlp_switch_buffer|. @@ -872,7 +875,7 @@ Before 2011/09/29~ Before 2011/09/19~ - + New command: |ResetCtrlP| + + New command: ResetCtrlP + New options: |g:ctrlp_max_files|, |g:ctrlp_max_depth|, g:ctrlp_live_update diff --git a/plugin/ctrlp.vim b/plugin/ctrlp.vim index 7d59e49..162a055 100644 --- a/plugin/ctrlp.vim +++ b/plugin/ctrlp.vim @@ -20,7 +20,11 @@ com! CtrlPMRUFiles cal ctrlp#init(2) com! CtrlPClearCache cal ctrlp#clr() com! CtrlPClearAllCaches cal ctrlp#clra() -com! CtrlPReset cal ctrlp#reset() +com! CtrlPReload cal ctrlp#reset() + +com! ClearCtrlPCache cal ctrlp#clr() +com! ClearAllCtrlPCaches cal ctrlp#clra() +com! ResetCtrlP cal ctrlp#reset() com! CtrlPCurWD cal ctrlp#init(0, 0) com! CtrlPCurFile cal ctrlp#init(0, 1)