Commit Graph

215 Commits

Author SHA1 Message Date
Kien N
3453b0d473 Fix console dialogs being hidden
Close #136
2012-02-09 20:58:11 +07:00
Kien N
370ac18b3b Fix jumping to a line
Close #135
2012-02-09 17:13:37 +07:00
Kien N
75e31e9341 Make highlight groups overridable 2012-02-09 17:13:21 +07:00
Kien N
ec31fa8bb8 More highlight groups
Add some highlight groups for the text in the prompt. Refs #127.
2012-02-04 20:28:03 +07:00
Kien N
2e5e5041ec Add some highlight groups
* Add a few ctrlp specific highlight groups to make customization easier.
* Document the highlight groups ctrlp uses.

Close #127
2012-02-04 18:41:27 +07:00
Kien N
167ad5341a Disregard 'langmap' option
Make typing in the ctrlp prompt work like typing in Insert mode
for people with 'langmap' set.

Close #125
2012-02-03 16:25:52 +07:00
Kien N
ece04926b0 More silent executions
* Silently continue execution of commands regardless of errors
  which are prone to happen with Vim's customizability.
* Remove ctrlp#msg() as it's no longer needed.

Fix #95 and prevent similar issues.
2012-02-02 03:18:04 +07:00
Kien N
afa9158132 Correctly identifying buffers
Close #121
2012-02-01 18:08:06 +07:00
Kien N
5e04bfaeed Some internal changes 2012-01-30 23:03:30 +07:00
Kien N
6a9f1e3a46 Support multiple user commands
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
2012-01-30 08:54:06 +07:00
Kien N
2d90da985d Some bugfixes
* Remove \zs, \ze as regexp-mode auto-triggers.
* Fix #116. Remove the full-path auto-switching feature. Refs #98.
* Proper caching for rtscript extension.
* Add <PageUp>, <PageDown> keymaps (used for quickfix and undo).
2012-01-29 00:29:09 +07:00
Kien N
d0714ff6fd Selection movement fix
* Vim 7.0 and 7.1 can't parse the syntax {dict}[key]
* Update vim.org version since this is critical.
2012-01-26 17:28:09 +07:00
Kien N
a126be38ef Hide line prefix in terminal
Close #113
2012-01-26 17:11:07 +07:00
Thibault Duplessis
f170a5f9b0 Don't try to create an existing directory
Because this sets v:errmsg to E739, making other plugins fail.
2012-01-26 10:27:01 +01:00
Kien N
99542d295b Bump version to 1.6.9
* Some minor internal changes.
* Update vim.org version.
2012-01-24 09:13:51 +07:00
Kien N
a13d90fd2a Change default cache dir to ~/.cache/ctrlp
* Revert previously reverted change that uses ~/.cache/ctrlp. Refs #105.
* Improve CreateNewFile(). Refs #77.
2012-01-22 22:51:08 +07:00
Kien N
17772fa8d8 Fix cache directory creation
Revert some changes in 6fe1e50. Refs #109.
2012-01-22 19:52:11 +07:00
Kien N
6fe1e509c2 Version 1.6.8
* Ignore `\` as a full-path trigger in regexp mode. Refs #98.
* Stop using $XDG_CACHE_HOME. Refs #109.
* Shorten paths wherever possible.
* Bump version to 1.6.8. Update contributors list.
2012-01-22 19:20:27 +07:00
Kien N
e7b08a3223 Resolve a few issues
* 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.
2012-01-22 11:48:44 +07:00
Piet Delport
2797fb8e9a Change default cache directory to ~/.cache/ctrlp
Details: http://standards.freedesktop.org/basedir-spec/basedir-spec-latest.html
2012-01-20 23:23:41 -05:00
Kien N
d0191b86e8 Small fix for CreateNewFile()
Refs #77
2012-01-19 19:46:54 +07:00
Kien N
affe9e557f Fix a globing problem with MacVim
Reverts the change in v1.6.7 that splitted '.*\|*' to '.*' and '*'
2012-01-19 18:33:59 +07:00
Kien N
f1c2b7a741 Use :. modifier to shorten bufnames
Refs #96
2012-01-19 16:08:12 +07:00
Kien N
ecbcf5eb25 Shorten buffer names in buffer list
Clost #96
2012-01-19 14:02:23 +07:00
Kien N
e42bb4cca0 Correctly stripping root dir on Windows
Fix #91
2012-01-19 00:58:15 +07:00
Kien N
f1db1253ec Improve <tab> completion
Refs #77
2012-01-18 20:56:18 +07:00
Kien N
d1a64232ad Only ignore &wig and &su for v7.2.0.51+
Fix #88
2012-01-18 03:38:19 +07:00
Kien N
4110144ae4 Don't save and restore &tags option
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.
2012-01-17 23:13:39 +07:00
Kien N
b3b8f7beae Version 1.6.7
Add directory <tab> completion to the prompt. Refs #77.
2012-01-16 20:14:09 +07:00
Kien N
faaaf519a6 Remove ctrlp#exit() call 2012-01-16 03:51:04 +07:00
Kien N
8c945dbb6b Use ctrlp#acceptfile() for buffertag.vim 2012-01-16 03:36:30 +07:00
Kien N
ed2acba947 Some enhancements
* 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.
2012-01-16 00:42:14 +07:00
Kien N
eae302f869 Add custom statusline option
* Add an option to allow user to rebuild the statuslines:

  let g:ctrlp_status_func = {
    \ 'main': 'function_name_1',
    \ 'prog': 'function_name_2',
    \ }

  See https://gist.github.com/1610859 for a working example.
2012-01-14 16:53:42 +07:00
Kien N
420174fc53 Ignore filename and context of tags
Fix #76
2012-01-13 23:02:17 +07:00
Kien N
418a22859c Further extending ctrlp_open_multi 2012-01-13 10:42:15 +07:00
Kien N
34aa84e6db Rewrite s:OpenMulti()
* Simplify s:OpenMulti() and extend ctrlp_open_multi. Close #71.
* Add g:ctrlp_arg_map option.
* Some internal changes.
2012-01-13 09:13:39 +07:00
Kien N
f04196941a Resolve some issues
* 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.
2012-01-10 05:58:59 +07:00
Kyo Nagashima
34a2cae6c6 call CreateNewFile() when there is no match entry 2012-01-09 14:16:05 +09:00
Kien N
bcc55dabc9 Check if haslocaldir() exists 2012-01-07 16:00:12 +07:00
Kien N
969075718a Version 1.6.6
* 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.
2012-01-06 13:22:55 +07:00
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
9e88a8c0fc Add :CtrlPDir autocomplete 2011-12-22 16:24:27 +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
72e3aba0e2 Tweak Files() and MatchIt()
* Improve Files() and MatchIt().
* Fix #60.
2011-12-20 15:59:16 +07:00
Diego Viola
790dcb27dc fix arrow keys for linux tty 2011-12-20 04:34:13 -03:00
Zak Johnson
348e25644d Fix c-up binding typo 2011-12-18 14:20:51 -08: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
Kyo Nagashima
0eff020886 enable jump-to-open-buffer feature when trying to open buffer in tab 2011-12-16 22:22:20 +09: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
mattn
c90a61f36d fix behavior ':CtrlP .' 2011-12-13 21:43:06 +09:00
Kien N
f7322b3d12 Fix match window position option
* Breaks returning to previous window if set to 0.
2011-12-05 19:34:15 +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
7821160be9 Update main scripts 2011-12-01 13:02: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
15c8c25d4e Fix str and cmd order 2011-11-30 16:51:33 +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
mattn
5f788e1910 only works in regexp mode. 2011-11-30 18:16:08 +09:00
mattn
53c83b158a treat multiple pattern for migemo. 2011-11-30 18:15:32 +09:00
Kien N
416978f80c Update docs with use_migemo option 2011-11-30 11:11:14 +07:00
Kien N
bd95edb8c7 Use Migemo to match Japanese filenames
* Thanks to Yasuhiro Matsumoto <github.com/mattn>
* Close $41.
2011-11-30 10:45:46 +07:00
Kien N
8807669cef Merge branch 'migemo' of https://github.com/mattn/ctrlp.vim 2011-11-30 10:30:33 +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
mattn
61c237ca51 enable migemo search. 2011-11-30 10:47:00 +09:00
mattn
6167a1f7da use silent! to graceful redraw. 2011-11-30 10:25:37 +09: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
c3b316a5a1 Change 'updatetime' handling
* Only change 'updatetime' if lazy_update is enabled.
  Continue #27 and #37.
2011-11-28 21:02: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
dee2f5a998 Hide active buffer
* Don't show active buffer in buffer list
* Remove compword()

Patches by Simon Ruderich
2011-11-23 01:38:21 +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
dffd8692d8 Fix path when creating new file
* Overlooked after changing from :chd to :lcd. Close #34.
2011-11-14 21:23:11 +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
72b7ab4883 Correct normcmd()'s behavior
* Broken if nosplit is empty
2011-11-09 19:57:34 +07:00
Kien N
faff324fb7 Extend the nosplit option
* Accept filetypes in addition to bufnames.
2011-11-09 19:29:08 +07:00
Kien N
b028010343 Option to replace special buffers
* Add an option to open files in windows with a special buffer. Close #28.
2011-11-09 18:07:54 +07:00
Kien N
b6764d7c0a Fix sorting by match length
* Broken by previous commit.
2011-11-09 01:55:59 +07:00
Kien N
2f4d281eed Preserve neighboring windows' height
* Save the window heights and restore them later,
  prevent ctrlp from nudging the bottom (or top)
  windows when it opens.
* Escape whitespaces in path. Close #26.
2011-11-09 01:30:53 +07:00
Kien N
087c64efcd Handling modified buffer
Always split a new window instead of prompting for saving.
Continue #25.
2011-11-07 03:24:48 +07:00
Kien N
8c8e24e151 Add a save dialog
Close #25
2011-11-07 01:44:02 +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
9dcef3db12 Remove :botright
Remove :botright from default opening commands. Let user decides how to move the newly created window, if needed.
Close #24
2011-11-04 20:49:51 +07:00
Kien N
d24ed9c5a9 Restore clearcache() 2011-11-04 18:53:15 +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
b44a699d22 Some refactorings
* Shave off a few lines
* Extend `g:ctrlp_jump_to_buffer`
* Update docs
2011-10-22 21:57:29 +07:00
Kien N
1d85258cbc Add an option
An option to toggle the `jump-to-open-buffer` feature. Disabled by default.
2011-10-22 17:19:04 +07:00
Kien N
c785656628 Some refactorings 2011-10-21 08:27:48 +07:00
Kien N
8d99466502 Add a warning
`:e` cmd fails when buffer's been changed and user doesn't use `set autowriteall` or `set hidden`.
2011-10-20 17:54:39 +07:00
Kien N
eefc3cd4e1 clear foldcolumn 2011-10-20 04:09:44 +07:00