Commit Graph

363 Commits

Author SHA1 Message Date
mattn
59aa11f49f Avoid to start on cmdwin. 2012-05-03 02:22:34 +09:00
Kien N
dc12e57ded Tweak tags filter 2012-05-02 03:25:30 +07:00
Seth Fowler
f8f8f56fae Fixed an issue that caused a large number of errors in the 'tag' plugin if a tagfile was empty. 2012-05-02 02:45:28 +07:00
Kien N
e61e7d5b80 Ver bump 2012-04-22 08:43:02 +07:00
Kien N
93ab44a31d Some clean ups 2012-04-22 08:42:05 +07:00
Kien N
9f5e949d66 Default behavior for arg_map 2012-04-22 02:10:48 +07:00
Kien N
d4e658caa9 Better option handling 2012-04-22 02:08:18 +07:00
Kien N
4852c3214b Silently open files 2012-04-21 13:58:02 +07:00
Kien N
269a3f1350 Only when using globpath() 2012-04-21 13:03:36 +07:00
Kien N
5dfe7f245b One mapping...
...to rule them all, one mapping to find them,
One mapping to bring them all and in the darkness bind them.
2012-04-21 08:38:29 +07:00
Kien N
008ad743e9 Hint and default ignores 2012-04-20 22:28:50 +07:00
Kien N
5292020781 Lower raw length's priority 2012-04-20 09:08:12 +07:00
Kien N
2e590e3b02 Fix var type 2012-04-20 07:35:45 +07:00
Kien N
60b9d44313 Expand default input if is string 2012-04-20 07:21:54 +07:00
Kien N
aca1f9db97 Don't sort 1, 2 if prompt's empty 2012-04-20 07:20:50 +07:00
Kien N
fa2d745b5d Get lines from buffers first 2012-04-19 17:53:45 +07:00
Kien N
d39b7b014d Insert filename under the cursor (like gf) 2012-04-19 16:38:52 +07:00
Kien N
c747af3ae6 Tweak MRE buffer sorting 2012-04-19 10:59:56 +07:00
Kien N
75ef943c35 Option to disable sorting in MRU mode
Close #177
2012-04-18 03:29:47 +07:00
Kien N
0b3173e021 Tweak mru and buffer sorting 2012-04-16 23:06:23 +07:00
Kien N
b41dbb68ba Don't need to check pathmode 2012-04-16 13:09:48 +07:00
Kien N
b3d9e480c8 Save bookmarks before exiting 2012-04-16 11:41:26 +07:00
Kien N
93414deb65 Use a few curly braces variables 2012-04-16 11:40:21 +07:00
Kien N
863996ce26 Change bookmarkdir's cache 2012-04-15 02:00:06 +07:00
Kien N
43915113db Check matchlist's result 2012-04-14 13:44:05 +07:00
Kien N
f534dab9bd Skip non-existent files 2012-04-14 13:20:54 +07:00
Kien N
aba33190b6 Allow remarking regular lines if needed 2012-04-14 13:10:22 +07:00
Kien N
d1ad73559e Use sorting functions selectively 2012-04-14 12:31:50 +07:00
Kien N
eddd3091c9 Map <MiddleMouse> to paste-from-clipboard action
Refs #176
2012-04-14 03:41:37 +07:00
Kien N
c8fbd773b4 Give last-modified-time higher priority in MRU mode
Refs #177
2012-04-14 03:41:37 +07:00
Kien N
ccf90bfd8c Nuke the ControlP buffer before leaving 2012-04-13 17:54:08 +07:00
Kien N
d6e5c56b04 Add BookmarkDir extension
Literally the only thing I was still using NERDTree for, so figured I'd bring it to CtrlP.
2012-04-13 14:30:36 +07:00
Kien N
e94a5e78e7 Allow using F7 in extensions 2012-04-13 09:58:37 +07:00
Kien N
13cf37f106 Apply case sensitivity option when deleting 2012-04-13 09:58:24 +07:00
Kien N
9cf53d959b Add a few local vars 2012-04-11 01:19:10 +07:00
Kien N
cb25e84cce Limit default input to path related modes 2012-04-09 01:21:50 +07:00
Kien N
1dfd1e1b84 Downgrade CtrlPLastMode 2012-04-08 22:56:07 +07:00
Kien N
349e5afc4f Generalize getting extension vars 2012-04-08 12:08:01 +07:00
Kien N
194987f331 Fix last entered sorting 2012-04-08 08:18:53 +07:00
Kien N
6863e650d4 Use bufnr directly 2012-04-08 07:33:04 +07:00
Kien N
9c88549e8b Version bump 2012-04-08 06:42:54 +07:00
Kien N
ba7c2048a2 Get a separate buffer list 2012-04-08 06:33:05 +07:00
Kien N
f1dd272388 Revert "Keep s:mrufs separated"
This reverts commit fec6cf52ef.
2012-04-08 05:08:35 +07:00
Kien N
59f64d698b Preset ext_vars 2012-04-07 18:55:23 +07:00
Kien N
9f0cd39ea9 Add buffer_func option 2012-04-07 18:42:31 +07:00
Kien N
a14bbe0737 Reorganize syntax stuff 2012-04-07 09:01:06 +07:00
Kien N
c62259c201 Add buffers into the mix 2012-04-07 07:58:44 +07:00
Kien N
2cedde3400 Only read from cache when necessary 2012-04-06 22:00:10 +07:00
Kien N
b1a688fc2f Use s:dyncwd more 2012-04-06 04:42:05 +07:00
Kien N
045b66a6ab Remix when MRU list changes 2012-04-06 00:18:13 +07:00
Kien N
dfd54e1d33 Pass str directly when match_func is used 2012-04-05 09:23:33 +07:00
Kien N
fec6cf52ef Keep s:mrufs separated 2012-04-05 05:15:03 +07:00
Kien N
dee21e1873 Save a few bytes 2012-04-05 04:28:37 +07:00
Kien N
51f325a108 More relevant sorting 2012-04-04 10:37:33 +07:00
Kien N
97f955c89c Rewrite MRU mode
+ Delay saving MRU list to disk.
+ Remove g:ctrlp_mruf_last_entered and make the setting a default feature.
2012-04-04 10:35:35 +07:00
Kien N
c4a3c3953e Command to open ctrlp in the last accessed mode 2012-04-04 09:03:02 +07:00
Kien N
7cda4083de Add mixed files + mrufiles mode
Close #101
2012-04-04 08:58:04 +07:00
Kien N
dbc40ca3be Use more s:var's instead of passing arguments around 2012-04-04 08:51:28 +07:00
Kien N
5457a71de7 Regroup some functions 2012-03-31 13:05:43 +07:00
Kien N
49e7018a61 Expose extension commands 2012-03-31 12:51:33 +07:00
Kien N
7c67b3bde6 Workarounds for older Vims 2012-03-31 12:11:36 +07:00
Kien N
8b5bb1a6dd Allow extensions to disable sorting
Close #170
2012-03-31 01:58:51 +07:00
Kien N
2e45d6cc5e Option to use an initial input string
Close #169
2012-03-30 14:40:57 +07:00
Kien N
535b13a82d Move getenv stuff to each extension 2012-03-29 08:53:00 +07:00
Kien N
c4fe304565 Use :undolist for older Vim versions 2012-03-24 11:58:01 +07:00
Kien N
3ee411cdea missing # 2012-03-23 23:52:22 +07:00
Kien N
23d15b5f88 Version bump 2012-03-23 15:15:48 +07:00
Kien N
3d5eef8b4e Reinit autocmds 2012-03-21 02:53:04 +07:00
Kien N
cbbf03921e Reopen unlisted buffers 2012-03-19 10:14:34 +07:00
Kien N
fbdd0fa10a Handling arbitrary ext_vars 2012-03-17 22:00:47 +07:00
Kien N
af2847a65d Add ctrlp#switchtype() 2012-03-16 16:48:16 +07:00
Kien N
9dfda30843 Tweak MRU mode's autocmds 2012-03-16 03:11:55 +07:00
Kien N
a82a75c134 Merge branch 'mre_buffers' 2012-03-15 09:56:46 +07:00
Kien N
17f697a1cb Merge branch 'narrowing' 2012-03-15 09:56:35 +07:00
Kien N
1ed632f101 Fix bugs related to ctrlp#buffers() 2012-03-15 09:52:10 +07:00
Kien N
fbc61b0d3e Use MRE sorting for buffers
Close #156
2012-03-15 08:15:54 +07:00
Kien N
4a728842a6 Narrow the item list when adding characters
Close #157
2012-03-15 08:14:04 +07:00
Kien N
607cc29d81 Add some highlight groups 2012-03-13 16:20:56 +07:00
Kien N
b8c16c71a7 Make line, undo, and changes official 2012-03-12 15:34:40 +07:00
Kien N
01910d3bb6 Add g:ctrlp_match_func 2012-03-12 08:58:01 +07:00
Kien N
5ed0cba954 Add changes.vim
Close #154
2012-03-10 10:05:58 +07:00
Kien N
dd832abfff Relax the condition to reuse a window
Close #155
2012-03-10 06:49:16 +07:00
Kien N
ac56d68249 Hide the current file from the results 2012-03-07 07:45:55 +07:00
Kien N
64ff51ffc9 Version 1.7.2 2012-03-03 22:32:19 +07:00
Kien N
8dde6d0f7c Update docs 2012-03-03 22:31:50 +07:00
Kien N
fcd20d1c94 Rename and tweak g:ctrlp_open_multi 2012-03-01 18:48:03 +07:00
Kien N
6285f507a3 Deprecate a few options 2012-03-01 18:33:35 +07:00
Kien N
247bd4835e Tweak version conditional statements 2012-02-27 19:45:37 +07:00
Kien N
0e34ecefd2 Don't use earlier fnameescape() 2012-02-27 19:27:51 +07:00
Kien N
3dfb4b444c set imdisable nomousefocus 2012-02-27 17:56:10 +07:00
Kien N
8048e5220b Change to :badd and :redraws 2012-02-26 11:08:35 +07:00
Kien N
ce17f507b5 Add filename comparison into the mix 2012-02-26 01:46:46 +07:00
Kien N
f0d2ce1be7 Add keypad mappings
Close #147
2012-02-24 01:19:44 +07:00
Kien N
92b8c399dd Support of per buffer working path mode
Close #145
2012-02-22 00:41:08 +07:00
Kien N
7dbf7f2be9 Truncate long paths
Close #134
2012-02-20 19:06:47 +07:00
Kien N
ea0eef6d44 Allow deleting MRU entries marked by <c-z> with <F7>
Close #122
2012-02-20 14:58:03 +07:00
Kien N
93cb20dbfb Fix :CtrlPLine and :CtrlPBufTagAll 2012-02-12 18:50:15 +07:00
Kien N
0110b7b129 Remove duplicate MRUFs created by ssl switching
Close #138
2012-02-11 21:54:27 +07:00
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