Commit Graph

131 Commits

Author SHA1 Message Date
Kien N
93637eade6 Simplify ctrlp#rmbasedir() 2011-12-24 01:28:34 +07:00
Kien N
ea4c6021fc Improve :
* 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()
2011-12-23 20:41:52 +07:00
Kien N
b1665b2c38 Tweaks to buffertag.vim
* Shorten and simplify s:types, buffertag#accept().
* No new feature.
2011-12-22 15:30:59 +07:00
Kien N
7ccb62b28b Add BufferTag extension
First version of buffertag.vim extension.
* Enable: `let g:ctrlp_extensions = ['buffertag']`
* Command: ':CtrlPBufTag'
* Options:
  + g:ctrlp_buftag_ctags_bin
  + g:ctrlp_buftag_systemenc
  + g:ctrlp_buftag_types
2011-12-21 18:58:08 +07:00
Kien N
b22ebbee60 Detect same-root symlink
* Ignore symlinks pointing to a file or a dir inside the cwd,
  or to a parent dir of the cwd.
2011-12-21 12:12:33 +07:00
Kien N
2a598aeea9 Fix symlink following
* Broken by 64dca5ec
2011-12-21 09:08:14 +07:00
Kien N
64dca5ec79 Custom ignore and default command options
* 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.
2011-12-18 09:58:44 +07:00
Kien N
bf03741650 Filter the information tags
* Remove the pseudo-tags generate by ctags
2011-12-14 17:46:21 +07:00
Kien N
9bff726dd6 A few tweaks
* Fix `:CtrlP .` (thanks to @mattn)
* Enhance jump-to-open-buffer: jump to line number as well
* Close #39
2011-12-13 21:42:57 +07:00
Kien N
af22f30e39 Restore unnamed register
* Close #44
* Add help tags for extension's commands. Issue #43.
* Folding tweak.
2011-12-03 10:54:18 +07:00
Kien N
b1a8c3d21e Improve directory mode
* 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.
2011-12-01 16:36:21 +07:00
Kien N
c82ebb6b32 Faster tag.vim
* Discard all time consuming tasks when initializing tag.vim - #27.
2011-12-01 12:59:14 +07:00
Kien N
844e28dd93 Simple tag count finder
* Add a simple tag count finder. Continue #27.
2011-11-30 22:13:37 +07:00
Kien N
03f1d920da Directory extension
* Add directory extension.
* Merge fix for Migemo support, pull #42.
2011-11-30 16:42:19 +07:00
Kien N
8395436d7c Persistent caching for tag.vim
* 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.
2011-11-30 10:28:14 +07:00
Kien N
d37ab0da56 Preserve local 'tags' option
* 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.
2011-11-29 18:05:25 +07:00
Kien N
d6504d2eb5 Pass s:tagfiles to tag.vim
* Pass s:tagfiles and path of the current buffer to tag.vim
  to properly expand '.' in the 'tags' option. Continue #27.
2011-11-29 07:12:58 +07:00
Kien N
a4b8d4cd38 Get tag files with Vim's tagfiles()
Continue #27.
2011-11-28 22:36:13 +07:00
Kien N
ef9e072c5f Tag and Quickfix extensions
* New extensions for searching tag and quickfix.
* Option to update the results lazily. Close #37.
2011-11-28 19:52:28 +07:00
Kien N
052b48bff6 Option to follow symlinks
* Add an option to disable symlinks filtering.
* Simplify a few functions.
2011-11-22 13:38:26 +07:00
Kien N
6f2fb27b55 Use old ctrlp_cache if exists
* Continue #32
2011-11-14 16:00:44 +07:00
Kien N
9f255ab6b6 Use expand() on cache_dir
* Continue #32
2011-11-14 15:41:18 +07:00
Kien N
9da5b08e04 Add sorting by parent dir
* 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.
2011-11-14 13:58:09 +07:00
Kien N
0af1cdc791 Find root with '/' and '\'
* 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.
2011-11-12 22:00:50 +07:00
Kien N
ae6f1592b4 Some improvements
* More graceful degradation for 700, 701
* Simplify insertcache()
* Correct SetWorkingPath()'s behavior
* Reserve Open-Multiple-Files for built-ins
2011-11-04 22:35:26 +07:00
Kien N
9397e88de0 Some refactorings
* 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.
2011-11-04 14:29:10 +07:00
Kien N
0319703514 Support user extensions
* 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.
2011-10-23 17:38:03 +07:00
Kien N
c8d02c5902 Enhancements for prompt history and :CtrlP [start-dir]
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-^>.
2011-10-07 21:10:14 +07:00
Kien N
bfd98009ed Various changes:
* 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.
2011-09-18 18:33:37 +07:00
Kien N
d17beb03f9 bug fix and clean up 2011-09-08 04:01:08 +07:00
Kien N
fbcfec256e New feature: search most recently opened files 2011-09-07 21:41:43 +07:00