codenav icon indicating copy to clipboard operation
codenav copied to clipboard

Possible to have it work on diff pages as well?

Open crazy2be opened this issue 9 years ago • 1 comments

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.

crazy2be avatar Jul 17 '14 19:07 crazy2be

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 :)

typpo avatar Jul 18 '14 01:07 typpo