Hi.
I often use PN to edit xml-like files. An option to auto-close tags is nice, but not sufficient if you already have a text which must be enclosed in tags. I could use text-clips for that, but I would like to be able do that with keyboard like this:
- Select text.
- Press some key (e.g. CTRL+SHIFT+T) → dialog with an input appears.
- Write tag name (and optional attrs after space).
- Press ENTER → tag is inserted around selected text.
Similar script in JS:
http://pl.wikipedia.org/wiki/Wikipedysta:Nux/htag.js
(look for "htag.insert" function)
Extra:
Recognition of short tags:
case 'img':
case 'meta':
case 'link':
case 'br':
case 'hr':
case 'input':
Optional autocomplete for tags in the input would be great.
I'm not very Python friendly, but maybe some has something like that already (or can do it based on JS)?