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

util, enh: show scope information in xref buffer #75

Closed masatake closed 3 years ago

masatake commented 3 years ago

Signed-off-by: Masatake YAMATO yamato@redhat.com

AmaiKinono commented 3 years ago

Thanks!

I really like the idea of using @ for scope info. Maybe in the "interactively filtering" tool (that comes in the future), we can let the user type @string to filter tags whose scope contains string.

I have 2 more ideas:

But that's for the future. For now, thanks for your work!

masatake commented 3 years ago

Truncate the long __anon** parts in scope and typeref info.

Showing anon** in an xref buffer can be useful. You can do "M-." on anon** to jump to the definition.

AmaiKinono commented 3 years ago

Showing anon** in an xref buffer can be useful. You can do "M-." on anon** to jump to the definition.

I see. It's still useful for citre-jump and citre-peek though. We can have a switch for it.

AmaiKinono commented 3 years ago

I just tried the situation you described. I can jump to an anonymous tag by M-., but citre-peek will show me the definition of the line, not the symbol at point.

I'm thinking should we let citre-peek grab the symbol at point in annotations in xref buffer.