Skip to content

Feature Request: <filename>:@<symbol> Syntax to allow for jumping directly to file and symbol at the same time #214870

Open

Description

I do some documentation occasionally and found that using line number to be a bit inflexible when the code evolve that the line reference is no longer accurate.

Currently we can do <file>:<linenumber> but what would be nice is if you can also do <file>:<symbol>

I noticed you can do @<symbol> so if you are worrying about conflicting syntax, you could consider <file>:@<symbol>...

So you may type gguf.c:@gguf_context to jump to gguf.c and locate the closest symbol matching gguf_context.


Extra consideraton. Perhaps you can chain both the line number and symbol so that it will pick the symbol closest to the line number (this is still okay as long as there is not too much line number deviation...) <file>:<line>:@<symbol>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

Labels

feature-requestRequest for new features or functionalitymarkdownMarkdown support issues

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions