If I have syntax highlighting rules setup using conceal
to hide or change certain characters in a file, how do I search what is displayed, as opposed to what the buffer actually contains?
The concealed part may contain formatting markup, for example, which I wish to ignore.
I'd like a method that:
- doesn't rely on the specific rules used to create the concealed text.
- provides some level of compatibility with the traditional search operators like
n
,*
, etc.
Can this be done without re-implementing n
, *
and the like?
Related: