Komodo Edit add-ons

Since “making the switch”:http://virtuelvis.com/archives/2007/03/editor-love to Komodo Edit, I’ve made a few customizations to it, to make my day-to-day editing of markup a bit easier. The files are “available through SVN”:http://svn.virtuelvis.com/Komodo/. Documentation follows.


h3. Snippets
These snippets are a remake of the example HTML snippets bundled with Komodo, and after adding mine, you might want to remove Komodo’s own. Download “HTML.kpz”:http://svn.virtuelvis.com/Komodo/Web.kpz and import it using Toolbox -> Import package. What it roughly will give you
dl. Any element:Ctrl-L, Ctrl-T – Create a non-empty element with the current word, or current text selection as tag name, and place the cursor inside the element.
Ordered List:Ctrl-L, O – Create an ordered list with the cursor in the first list element, using the current word or selection as contents of the first list element, and place the the cursor in the first list element.
Unordered List:Ctrl-L, U – Create an unordered list, using the current word or selection as contents of the first list element, and place the the cursor in the first list element.
List element:Ctrl-L, L – Create a list element, using the current word or selection as contents of the list element, and place the cursor inside the list element.
Emphasis:Ctrl-L, I – Emphasize the current word or selection, and place the cursor inside the @emphasis@ element.
Strong:Ctrl-L, B – Wrap the current word or selection in a @strong@ element, and place the cursor inside the element.
Paragraph:Ctrl-L,Ctrl-P – Create a paragraph, either using the current word or current selection as content, and place the cursor inside the paragraph.
Preformatted text:Ctrl-L,P – adds a @pre@ element.
Headers:Ctrl-1 - Ctrl-6 – @h1@ through @h6@ headers. This _might_ be in the original set of snippets, with the same shortcuts. Can’t remember
Code:Ctrl-L, C – Wrap the current word or selection in a @code@ element, and place the cursor inside the code element.
Move past next tag:Ctrl-. If you are right before an end tag, use this to move the cursor past the end tag.
Move past previous tag:Ctrl-. If you are right before an end tag, use this to move the cursor past the end tag.
Forward incremental search word under cursor:Ctrl-Shift-Down – Does a forward incremental search for the current selection or word under cursor.
Backward incremental search next word under cursor:Ctrl-Shift-Down – Does a backward incremental search for the current selection or word under cursor.
Escape:Ctrl+' – Escapes current selection, replaces @<@, @>@ and @&@ with their respective HTML entities.
Unescape:Ctrl+* – Unescapes current selection, replaces @<@, @>@ and @&@ with @<@, @>@ and @&@.
Open current selection as file:Ctrl-Alt-O – treats the current selection as a file name, and attempts to open the file. Resolves relative paths both locally and remotely.
h3. Opera-specific APIs
Drop “opera-object.js”:http://svn.virtuelvis.com/Komodo/opera-object.js and “widget-object.js”:http://svn.virtuelvis.com/Komodo/widget-object.js in a directory, and add this directory in Komodo’s Preferences -> Languages -> ->JavaScript preference to get autocomplete for the following methods:
* opera.addEventListener
* opera.buildNumber
* opera.defineMagicFunction
* opera.defineMagicVariable
* opera.getOverrideHistoryNavigationMode
* opera.popXSLTransform
* opera.postError
* opera.pushXSLTransform
* opera.removeEventListener
* opera.setOverrideHistoryNavigationMode
* opera.version
* widget.openURL
* widget.preferenceForKey
* widget.setPreferenceForKey

3 Comments

  1. A: Fixed, the document now resides at “http://svn.virtuelvis.com/Komodo/Web.kpz”:http://svn.virtuelvis.com/Komodo/Web.kpz — I added a couple of more shortcuts that aren’t HTML centric, so I decided to rename the toolbox

  2. A

     /  2007-04-12

    Thanks!