I really like the find options in Komodo Edit, but I was hoping to put together a couple of macros to make certain functionality activated by short-cut, namely Find All and Find All in Active Project.
So basically, I'd like to highlight a word or group of words etc..., hit Alt-F (or something) and have Komodo immediately find according to the selection with the results in the Find Results tab, depending on what I've coded.
Checking through the doCommand command ids I'm guessing that neither findAll or findAllInProject (or equivalent) are likely to exist at this point. Can that be confirmed?
If it's not possible, are functions like this going to become available within the API?
While I'm here asking questions, I'm wondering what is the best path to take if I want to code extensions and/or macros in Komodo Edit using things like XPCOM and XUL and - all the other stuff involved. ;)
I think by browsing some bits and pieces lying around I'm kinda getting an idea, but I want to make sure I'm not missing out on some obvious resources collected for this community somewhere. If I were to develop extensions I know I'd prefer to develop them in Python if that's possible - if not Javascript should be OK.
Regards
Caleb
Find in Project
There is a komodo command that does the Find in Project. Goto the Komodo "Editor->Key Bindings" preferences and the search for "find", you should then see the "Find: Find in Current Project..." command which you can assign whatever keybinding you wish. If you'd like to completely skip the find dialog and have the find system start search straight away, then you'll need to create your own customized macro for this. Merging some of the following code pieces would give you this:
http://grok.openkomodo.com/source/xref/openkomodo/trunk/src/chrome/komod...
http://grok.openkomodo.com/source/xref/openkomodo/trunk/src/chrome/komod...
Working with XPCOM and XUL
If you working with XPCOM, then either Python or JavaScript will work equally well, though Komodo will only provide XPCOM code completions for JavaScript code.
Most of the Komodo UI and user interaction is written in XUL/JavaScript. If your working with XUL and/or the DOM, then your only choice is to use JavaScript.
Hope that helps.
Cheers,
Todd