universal-ctags / citre

A superior code reading & auto-completion tool with pluggable backends.
GNU General Public License v3.0
326 stars 26 forks source link

Show the raw tag entry #108

Open masatake opened 2 years ago

masatake commented 2 years ago

Sometimes, I would like to see the raw (original) tag entry in the xref buffer; there are cases that kind and scope are not enough.

AmaiKinono commented 2 years ago

I think the best we can have is such a command: when you call it in an xref buffer, it cycles through basic display, extended display and raw display.

Basic display is what we have now.

Raw display is like what you described. Or another way may be to parse all the fields of tags, and show basic display + all other fields not in the basic display. I think we can make it looks a little more compact this way.

Extended display is basic display + fields that the user wants. These can be stored in an user option. In this mode, we can show what the user cares and avoid showing super long tagline directly.

Currently I don't have an idea how to implement this, though. I think It'll be a huge hack.