Commit Graph

341 Commits

Author SHA1 Message Date
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
Kien N
2fb98098c3 Some minor refactorings 2011-10-19 19:00:08 +07:00
Kien N
f3edbfbe56 fix :str$ and toggling modes 2011-10-12 04:48:37 +07:00
Kien N
976a1025e0 keep cwd if reached max depth 2011-10-11 16:49:36 +07:00
Kien N
a7dbff85d2 fix for issue #18 2011-10-10 16:16:40 +07:00
Kien N
7d8b4d8f78 fix an issue with sign unplace 2011-10-09 16:27:23 +07:00
Kien N
6ee4410612 Improve Open Multiple Files
Try not to open a new tab when using <c-o> to open marked files.
Option to move the match window to top of screen.
2011-10-09 09:30:16 +07:00
Kien N
000742dc0f Use VCS's list commands
:help g:ctrlp_user_command
2011-10-09 02:26:36 +07:00
Kien N
b7d87e1cfb Smarter OpenMulti() action 2011-10-08 21:42:18 +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
1a2c3ee8d2 Open Multiple Files
Use <c-z> to mark/unmark files and <c-o> to open them. You can enter new input strings and continue to mark more files. The list of marked files will be cleared upon exiting CtrlP.
2011-10-03 03:04:43 +07:00
Kien N
e47d7c3947 don't touch &ea 2011-09-30 13:23:15 +07:00
Kien N
056b60b0e1 fix broken <cr>'s behavior 2011-09-30 12:10:51 +07:00
Kien N
7d7e74b008 set history=0 to disable prompt's history 2011-09-29 20:49:07 +07:00
Kien N
0158e6406a <c-n>, <c-p> next/prev string in prompt's history 2011-09-29 19:15:33 +07:00
Kien N
32854b4056 escape % and # in filename 2011-09-29 06:59:03 +07:00
Kien N
a5396ff11a <c-y> creates a new file and the parent dirs 2011-09-28 21:53:55 +07:00
Kien N
97f797821f fix issue #13 on github 2011-09-28 20:42:52 +07:00
Kien N
d488423408 fix a var type error 2011-09-18 18:55:41 +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
dd582ee9e0 update docs and some clean ups 2011-09-15 04:57:51 +07:00
Kien N
a07e9ffc3a correctly open split; fix arrow keys in term 2011-09-14 21:38:37 +07:00
Kien N
e311264c38 update docs on using wildignore 2011-09-14 00:17:20 +07:00
Kien N
c360f2db47 sorting and escaping 2011-09-13 08:27:27 +07:00
Kien N
719df0ec79 fix filename highlighting 2011-09-12 21:13:22 +07:00
Kien N
08a20d460a switch to file/buffer if already opened 2011-09-12 16:57:49 +07:00
Kien N
1470144bcd update docs on using custom command 2011-09-12 04:26:18 +07:00
Kien N
ff56395a8f various changes 2011-09-11 23:53:32 +07:00
Kien N
7dbf68e96b option to clear cache uponexiting Vim 2011-09-11 01:54:07 +07:00
Kien N
fe5af5807f some clean up 2011-09-10 21:22:14 +07:00
Kien N
ff2d7781ed fix persistent_input's behavior 2011-09-10 20:21:53 +07:00
Kien N
467b194d4b <c-w> correctly deletes inner word 2011-09-10 19:51:49 +07:00
Kien N
6fd7065d9e small performance increase 2011-09-10 17:07:48 +07:00
Kien N
7c4669c537 small changes 2011-09-10 15:27:04 +07:00
Kien N
c36e2d2f10 include dotfiles in search 2011-09-10 07:32:08 +07:00
Kien N
7a9425c6c3 escaping the tilde ~ 2011-09-10 04:05:26 +07:00
Kien N
fab7db07cd !empty() 2011-09-10 03:02:30 +07:00
Kien N
afef48719d sanitize user input for :\d 2011-09-10 02:50:03 +07:00
Kien N
8569c1257a don't sort MRU files 2011-09-09 22:28:40 +07:00
Kien N
ea9b342125 small cosmetics changes 2011-09-09 22:02:39 +07:00
Kien N
23b2722444 some clean up 2011-09-09 21:39:13 +07:00
Kien N
df2622f294 update readme with new .. input 2011-09-09 20:49:50 +07:00
Kien N
1fecf8bc3f .. input format and some refactorings 2011-09-09 19:55:24 +07:00
Kien N
945f3928d5 redraw statusline after refreshing 2011-09-09 13:19:47 +07:00
Kien N
253ccf9d82 remove unneeded Renderer() 2011-09-09 11:09:01 +07:00
Kien N
7679b622e4 add a loading progress indicator 2011-09-09 10:30:18 +07:00
Kien N
ba50429f33 some clean up 2011-09-09 06:45:27 +07:00
Kien N
72e172db01 fix for previous commit 2011-09-09 06:06:24 +07:00
Kien N
1daeb3291d properly support wildignore 2011-09-09 04:39:59 +07:00
Kien N
6339308c72 some clean up 2011-09-09 01:16:12 +07:00
Kien N
d8ca2990d2 refresh match window 2011-09-08 22:50:57 +07:00
Kien N
da079ef2ba more clean up 2011-09-08 08:56:41 +07:00
Kien N
d17beb03f9 bug fix and clean up 2011-09-08 04:01:08 +07:00
Kien N
194d78dede no mru if disabled 2011-09-08 00:47:31 +07:00
Kien N
8f9e9b598e small fix 2011-09-08 00:22:56 +07:00
Kien N
30410f1605 statusline indicators 2011-09-08 00:12:44 +07:00
Kien N
fbcfec256e New feature: search most recently opened files 2011-09-07 21:41:43 +07:00
Kien N
d18b692359 users markers take precendence 2011-09-06 20:15:19 +07:00
Kien N
8d1ec536d3 optional root markers 2011-09-06 20:03:31 +07:00
Kien N
5ae7572934 rename SelectJump() 2011-09-06 19:01:15 +07:00
Kien N
f823efefee some small edits 2011-09-06 06:30:54 +07:00
Kien N
8d6406fe88 remove an if...endif 2011-09-05 23:16:40 +07:00
Kien N
4ca1ab9e37 some small changes 2011-09-05 21:59:18 +07:00
Kien N
c51b7ecbfc add find buffers 2011-09-05 18:05:04 +07:00
Kien N
b6f15390b8 various changes 2011-08-22 09:14:00 +07:00
Kien N
224b504c3d done rewriting the prompt.vim module 2011-06-21 08:21:58 +07:00