When investigating code I like to take notes.
I have to manually copy references like:
- pathname of source file.
- Class
- Function
- Some relevant context text
I'd like a command in Slick to copy a HTML formatted link to the clipboard.
Then I could paste that link into something like Onenote, Word, email, etc.
When I click on the link it would activate Slickedit, goto that source file and location.
For example, when I manually create a link in Onenote, then copy it, the interesting bit that ends up on the clipboard:
<a href="file:///c:/foo/bar/blat.c">My Example Link</a>
That would be OK, better would include more:
<a href="file:///c:/foo/bar/blat.c?line=50&col=14">My Example Link</a>
of course, instead of "My Example Link" for the text, it should be something useful like
<a href="file:///c:/foo/bar/blat.c?line=50&col=14">class Thingy, function Thingy::doit( ... )</a>
I should be able to copy such a link from:
- The current cursor location.
- The current selection (and navigating with this link would recreate the selection).
- a bookmark.
- a break point.
- the entire bookmark stack!
- the contents of the left pane of "References"
- Search Results.
Ideally, instead of a simple line=#,col=#, Slick could include the context information that it normally includes with bookmarks and breakpoints - so that if the file changes a little the location could be corrected.