Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove BufAdd hook for mrufiles.vim:record() #677

Open
wants to merge 112 commits into
base: master
Choose a base branch
from
Open

Remove BufAdd hook for mrufiles.vim:record() #677

wants to merge 112 commits into from

Conversation

gywn
Copy link

@gywn gywn commented Oct 1, 2015

&buffertype is define after BufAdd event. Hooking record() onto BufAdd
will make getbufvar(..., '&bt') return empty string even for a help
buffer.

drn and others added 30 commits September 16, 2013 17:02
Prefers grouping words together, examples:

app/assets/javascripts/common
---                    ------
> app/common

app/models/group_user.rb
--- ------       ----
> appmodelsuser
Make README screenshot narrower so it fits on the GitHub project home page

The current screenshot as displayed on https://github.com/kien/ctrlp.vim is squished to fit within 722px, introducing aliasing and making the screenshot hard to read. This updated image is 720px, so it will fit, and provide a better first impression of ctrlp.vim to people visiting the project page.

I produced this screenshot in Photoshop by effectively deleting some of the empty space in the middle. The window in the image might not be a realistically-sized one – its width might not be a multiple of the character cell width – but nobody will notice.
Buffer tags supported includes traits, methods, types, classes, objects, packages. In order to use this with Exuberant Ctags, the following needs to be added to ~/.ctags:

--langdef=Scala
--langmap=Scala:.scala
--regex-scala=/^[ \t]*((abstract|final|sealed|implicit|lazy)[ \t]*)*(private|protected)?[ \t]*class[ \t]+([a-zA-Z0-9_]+)/\4/c,classes/
--regex-scala=/^[ \t]*((abstract|final|sealed|implicit|lazy)[ \t]*)*(private|protected)?[ \t]*object[ \t]+([a-zA-Z0-9_]+)/\4/c,objects/
--regex-scala=/^[ \t]*((abstract|final|sealed|implicit|lazy)[ \t]*)*(private|protected)?[ \t]*case class[ \t]+([a-zA-Z0-9_]+)/\4/c,case classes/
--regex-scala=/^[ \t]*((abstract|final|sealed|implicit|lazy)[ \t]*)*(private|protected)?[ \t]*case object[ \t]+([a-zA-Z0-9_]+)/\4/c,case objects/
--regex-scala=/^[ \t]*((abstract|final|sealed|implicit|lazy)[ \t]*)*(private|protected)?[ \t]*trait[ \t]+([a-zA-Z0-9_]+)/\4/t,traits/
--regex-scala=/^[ \t]*type[ \t]+([a-zA-Z0-9_]+)/\1/T,types/
--regex-scala=/^[ \t]*((abstract|final|sealed|implicit|lazy)[ \t]*)*def[ \t]+([a-zA-Z0-9_]+)/\3/m,methods/
--regex-scala=/^[ \t]*((abstract|final|sealed|implicit|lazy)[ \t]*)*val[ \t]+([a-zA-Z0-9_]+)/\3/l,constants/
--regex-scala=/^[ \t]*((abstract|final|sealed|implicit|lazy)[ \t]*)*var[ \t]+([a-zA-Z0-9_]+)/\3/l,variables/
--regex-scala=/^[ \t]*package[ \t]+([a-zA-Z0-9_.]+)/\1/p,packages/
In Windows, some users set the Cygwin shell as their Vim shell, consider
this before rewriting `cd` calls. Checking if `shellcmdflag` contains a
backslash should catch all true windows shells.

You can also check if &shell contains `sh`, but this seems more robust.
Added support for custom ancestors: g:ctrlp_custom_ancestors.
Make README screenshot narrower to fit
This creates the ability to add custom highlighting to CtrlP signs/marks
if someone wishes to change them. It links back to the Search group to
maintain backwards compatibility.
Translate documentation to Chinese
Check shell in Windows before assuming cmd.exe
Update URLs in README to point to new repo
Support ordered processing of multiple g:ctrlp_working_path_mode specifications
Clarify g:ctrlp_working_path_mode semantics in readme.md
Add ability to specify a custom ignore function, instead of just patterns
Support ctrlp_custom_ignore as function ref
walt and others added 30 commits February 27, 2015 13:12
added option g:ctrlp_line_prefix. Default: '> '
Allows to manipulate the user's input string just before it is used
with the matching algorithm.
Starting with commit 83397bd, when possible Ctrlp tries to autoselect
a tag from from the `tselect` menu.

This has a significant flaw though, as it does not select the correct tag
when there are multiple tags with the same name in the same file, instead
preferring to always use the last tag from that file.

By matching not just on filename of the selected tag, but also on the
tagaddress (generally a regex or linenumber), we ensure that the correct
tag is always selected from the tselect prompt.
…into ggVgc-auto_open_single

Conflicts:
	autoload/ctrlp.vim
Add function s:isneovimterminal
translate recent help doc changes
Add support for terminal buffers on neovim
Fix auto selection of tag from tselect menu for tags in the same file.
Documentation for ctrlp_line_prefix and ctrlp_open_single_match
Fix buffer mode to handle neovim terminal buffer properly (#106)
Add support for ant and tex files in buffertag
Add buffertag support for dosbatch, matlab and vhdl
&buffertype is define after BufAdd event. Hooking record() onto BufAdd
will make getbufvar(..., '&bt') return empty string even for a help
buffer.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.