You'd need to make an extension for this. You need to create an overlay, which adds a menu item to menupopup with id "editorContextMenu". Then using JS code you could get the word under the cursor:
var word = ko.interpolate.getWordUnderCursor(ko.views.manager.currentView.scimoz);
Then you need to add a watch variable, something with the debugger session tab manager I'd think...
Ah, I think I may have inadvertently given the impression that I know what I'm doing when I said "How would I create ...".
What I actually meant was "How would YOU create ...", given that I don't even know how to cook an Overlay, let alone catch one. Hoping that some kind soul would say "Here, load this". :)
However, I shall do my best to wrap my brain around building my first extension. It's time I learned, anyway, and I'm sure it will open up entire new worlds of Komodo possibilities.
I'm still banging my head on this one. I just don't seem to be able to find the XUL definitions for Komodo itself. Either the FAQ needs updating, or I'm having a serious brain burp!
You'd need to make an extension for this. You need to create an overlay, which adds a menu item to menupopup with id "editorContextMenu". Then using JS code you could get the word under the cursor:
Then you need to add a watch variable, something with the debugger session tab manager I'd think...
Cheers,
Todd
Ah, I think I may have inadvertently given the impression that I know what I'm doing when I said "How would I create ...".
What I actually meant was "How would YOU create ...", given that I don't even know how to cook an Overlay, let alone catch one. Hoping that some kind soul would say "Here, load this". :)
However, I shall do my best to wrap my brain around building my first extension. It's time I learned, anyway, and I'm sure it will open up entire new worlds of Komodo possibilities.
-- hugh, aka "A Bear of Very Little Brain"
OK, I give up. I did try, honest.
Maybe I might could get a little further if I could find the mysterious komodo.xul referred to in the "Extensions for Klutzes" FAQ at:
http://community.activestate.com/faq/komodo-4-0-extensions
It doesn't seem to exist in 4.2 ... ?
I was hoping thats where I'd find the definitions for the "debug session tab manager" you mentioned.
-- hugh
I'm still banging my head on this one. I just don't seem to be able to find the XUL definitions for Komodo itself. Either the FAQ needs updating, or I'm having a serious brain burp!
-- hugh
You will find all the xul files are zipped up into a komodo.jar, so you'll need to unzip it, i.e.:
Then you should see the "komodo/content/komodo.xul" file.
Mutter mutter jar-schmar xul-schmul mutter ...
[Smacks self in forehead]
Thanks!
-- hugh