Olifante *'s Library tagged → View Popular
Javascript macro for named snippet insertion in Komodo
-
Tech support have been very responsive, and they came up with a macro
that inserts snippets almost the way I expect,komodo.view.setFocus();
try {
komodo.editor.vCHomeExtend();
var snippet = komodo.interpolate('%s');
var tmpl = komodo.findPart("snippet", snippet, "container");
if(tmpl) {
Snippet_insert(tmpl);
} else {
var msg = "no snippet found named " + snippet;
StatusBar_AddMessage(msg,"debugger",5000,true);
}
} catch(e) {
alert(e);
}Add this as a macro, bind it to a key (say ALT-=), and then add your
snippets to the same folder as the macro is in, name them
appropriately, and the type im the name hit ALT-= and the snippiet is
found and inserted, pretty neat.
open-source scripting environment Komodo Edit 4.3
"Komodo edit uses Scintilla for its editing component but offers a few unique twists... it comes with passable Vi and Emacs keybinding schemes. The Vi scheme doesn't just shift around a few key bindings, it completely changes the way the editor operates
H3RALD : A closer look at Komodo Edit
"Komodo Edit is an interesting editor which offers a lot of features which are normally only available in IDEs at a smaller memory footprint. [...] Its close attention to details and its ease of use make developing an even more pleasant experience"
Selected Tags
Related Tags
Sponsored Links
Top Contributors
Groups interested in komodo
Diigo is about better ways to research, share and collaborate on information. Learn more »
Join Diigo
