Support defining multiple user VCS commands with g:ctrlp_user_command
following this format:
let g:ctrlp_user_command = {
\ 'types': {
\ 1: [root_marker_1, listing_command_1],
\ n: [root_marker_n, listing_command_n],
\ },
\ 'fallback': fallback_command
\ }
Check the docs for a working example (:help ctrlp_user_command).
Refs #118
* Use :buffer commands when opening already opened files, all modes. Refs #97.
* Temporarily enable full-path if input has '/' or '\'. Close#98.
* Ignore possible empty return strings (from malformed tags). Close#99.
* Fix an incorrect cwd bug when opening multiple buffers with <c-o>.
Introduced by f1c2b7a. Refs #108.
* Default keymap can be disabled with `let g:ctrlp_map = ''`. Refs #103.
* Remove duplicate rts entries. Close#107.
Fix#86
Also:
* Make <F5> in MRU mode also remove excluded files.
* Make switching MRU and MRE an option. Close#87.
* Improve handling of some option vars.
* Add g:ctrlp_mruf_relative, an option to list only MRU files in the current
working directory. Close#81.
* Extend <c-y> to work with <c-z> to get a base dir to create the new file.
First stab at feature #77.
* Remove the hard limit for partial matching. Resolve#76.
* Merge custom_statusline. Close#80. Refs Lokaltog/vim-powerline#25.
* Remove active buffer from MRU listing. Close#66.
* Re-evaluate ctrlp_user_command when changing dir. Fix#69.
* Link to custom ctrlp_user_command config in the docs. Close#70.
* Allow running commands like `:diffthis` when opening multiple files.
* Add experimental extensions:
+ undo.vim (requires v7.3.005+)
+ rtscript.vim (find vimscripts in runtimepath)
* Include the workaround for <bs> and <c-h> for MS-Win. Resolve#62.
* Mention custom_ignore in readme and on the homepage. Resolve#63.
* Check the present of cwd in returned paths. Fix#64.
* Trigger Vim to remove cwd from display-names. Fix#65.
* Some internal changes and additions.
* Improve s:sanstail() and ':' input
* Shorten s:samerootsyml(), s:ispathitem()
* Add g:ctrlp_log, an option to write all output to .ctrlp_cache/ctrlp.log
* Fix an error with ctrlp#utils#glob()
* Extend jump-to-open-buffer to use <c-t> when jump_to_buffer = 2.
Only works for buffers opened in another tab. Suggested by @hail2u.
* Add g:ctrlp_default_cmd, option to reuse the default mapping for a
different command. Close#57.
* Add g:ctrlp_custom_ignore. Close#58.
* More mappings for different types of :cd
+ <cr> change the local working directory inside ctrlp.
+ <c-t> change the global working directory. (exit ctrlp)
+ <c-v> change the local working directory for the current window. (exit ctrlp)
+ <c-x> change the global working directory to |CtrlP|s current local working
directory (exit).
* Some clean up.
* Change the opening commands to the tag-matchlist commands.
* Stop using taglist() so we don't have to worry about &l:tags.
* Persistent caching for tags.
* Continue #27.
* Save and restore &l:tags when creating a new buffer,
workaround for easytags.vim changing the buffer's &l:tags
and allow using <c-x> <c-t> <c-v> and <cr> to open file.
* New caching method, remove the need for <F5>.
* Continue #27.
* Add a simple sorting algo giving more weight to files
with same parent dir. Close#31.
* Change g:ctrlp_cache_dir to accept full path. Close#32.
* Fix a bug with listdirs() introduced in previous commit.
* Submit '/' or '\' to find the project's root. Close#30.
* Add wig flag to glob() and globpath() in addition to expand().
* Make handling working directory less intrusive.
* Shave off some more lines.
* path_mode=2 no longer includes path_mode=1. Leave the choice to the user.
* Minor performance enhancement in regexp mode.
* Search for and perform actions on anything you want, not just files, buffers and MRU.
Check out the 'extensions' branch for more details and how-to.
* <F5> now also removes deleted files from MRU list.
* Slight sorting change.
Can now use <tab> to auto-complete the directory for the :CtrlP [starting-directory] command.
Prompt history: put last string into history as well (accepted or not).
Remove |g:ctrlp_persistent_input|, |g:ctrlp_live_update| and <c-^>.
* New option `g:ctrlp_live_update`: enable/disable the update-as-you-type functionality.
* New option `g:ctrlp_max_depth`: the maximum directory depth to recurse into.
* New command `ResetCtrlP`: reset all options and take in new values of the option variables.
* Various other changes and bugfixes.