Open
Description
openedon Jun 11, 2024
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