-
-
Notifications
You must be signed in to change notification settings - Fork 487
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
feature request: apply conceal on tagbar. #79
Comments
This could be an interesting idea, but I'm not sure how easy it would be to generate the conceal patterns on the fly. Also, how should function signatures be treated? How much of them should be shown? Do you have any concrete ideas for that? I'll have to think about that and give it a try once I have a bit more time. |
=> On [2012-06-10 00:18:25 -0700]:
(Talk about the "on-the-fly", maybe re-display all tags and apply conceal will The function signature length should depend on what kinds type you display and
[ stardiviner ] ^^&^^ {I hate all of you ! Leave me alone} |
I'm not entirely sure how this would work in practice either. But I am a big fan of unicode symbol conceal in vim. functions could use the unicode symbol LATIN SMALL LETTER F WITH HOOK: |
I love unicode symbol too. very much. I like this solution. hope you can implement this quickly. waiting for it. |
I think classes should not use |
I think class should choose from http://www.fileformat.info/info/unicode/char/c.htm |
Could you give a few concrete examples of how exactly you would want this to be displayed? Where should the symbol go? Before the tag? And if yes, before or after the visibility symbol? Or after the tag? I'm a bit worried that it may make the display look too crowded or confusing, but I'm wiling to give it a try. |
example
|
And I checked the tagbar source code, I find python has |
I may suggest different approach. I've being patching tagbar to support Elixir, because default functionality does not enough. So that I came up with - vimscript function that allows to rewrite tag information completely. It was because I had same functions parsed into two different kinds (which is technically correct, because they are just ordinary funcitons, but some of names have specific meaning in Erlang/OTP). Also I wanted to avoid having several entries like following - which is specifics of language, you can have several clauses of same funciton and they look exactly the same in tag file.
This is a filtering part, just to throw functions away.
instead
So I would suggest that may be function name rewrite can be done in vimscript, just after loading tag file. And any kind of complex logic can be implemented there. Patched version of tagline + example how to define transform function is here |
@gasparch Your fork is interesting on it's own apart from addressing this particular issue. Would you consider refactoring in such a way that the changes can be contributed back upstream? If I would suggest copying your current fork branch to a new one, then opening a GitHub PR opened in Draft mode, then we can muck around with rebasing it and figure out what would need to adapt both ends. |
Sometimes, those names, variables, function or class names are too long (if the whole vim window is not a enough width). So apply conceal on tagbar is a good idea to save space.
for example:
Function:
functionXXXXXXname1
functionXXXXXXname2
after conceal:
func
name1name2func
The text was updated successfully, but these errors were encountered: