Feature: Conceal support for \cite commands#2002
Conversation
5a9e656 to
9804764
Compare
Thanks! One comment to your text: You should be aware of
The background is controlled by the Open question: What should the default configuration be? I think we should keep it enabled by default, but with the type set to brackets. Agreed? |
This is an older and already published paper, which uses
Yeah, figured that, and this only happens with one particular colour scheme I am using, which is older than the conceal feature itself. There definitely isn't any conceal setting in the theme file, so now I'm trying to hunt down which other Vim plugin I use set the style... It's set to some odd value:
Yeah, enabled, and maybe instead of the emoji the bracketed one is better. |
You should read this gist by romainl; essentially: augroup MyColors
autocmd!
autocmd ColorScheme * highlight Conceal ...
augroup END |
| 'icon' `\cite{x}` `📖` | ||
| 'brackets' `\cite{x}` `[x]` |
There was a problem hiding this comment.
Maybe it would be worth our while to replace x with xyz and show that the "brackets" concealment still shows the full key that's in there (as opposed to replacing \cite{arbitrary_long_identifier} with just [x].
|
Looks great! Maybe it's too late now since you just merged this PR, but the only feedback I have is that perhaps |
|
|
And it's never too late :) |
|
Great new feature! But I think it may be causing an issue (or there is one that is just coincidentally revealed here). When there is a concealed citation inside of another command like When the cite concealing is turned off, with Interestingly, the issue doesn't arise with the icon style concealment. These screenshots are on terminal Vim 8.2.2576 on macOS 11.2.3. I also found the same behaviour with neovim (0.5.0). |
Sorry about that, I think it is fixed now! :) |
Oh you're right, my bad! |




See #1965 for the current discussion.