codenav
codenav copied to clipboard
Possible to have it work on diff pages as well?
First off, thanks for the great extension!
Do you think it would be possible/easy to get it to work on pull request/diff pages as well as pages for specific files? I can look at hacking at the source if you think it's possible.
It doesn't look like diffs are syntax highlighted, which complicates things a bit. The extension depends on Github's highlighting to parse out tokens. So we would need to tokenize things ourselves.
This is certainly possible, but I'd probably just do it with a regex on spaces and symbols, which won't be as reliable as with github's syntax highlighter. I'll put it on the todo list :)