Skip to content. | Skip to navigation

Sections
Personal tools
You are here: Home News & views Making ZMI scripting less irritating with Tabinta

Posted Feb 18, 2009

Making ZMI scripting less irritating with Tabinta

by Eric Steele
— filed under:

I often find myself habitually hitting the <tab> key while writing scripts in the ZMI, only to find that I've gone and moved the focus away from the textarea and onto another form element instead of indenting like I'd intended. I recently came across the Firefox extension Tabinta. "Tabinta" is short for "Tab in textarea" and does exactly that and nothing more.

The plugin's preferences interface is somewhat lacking, only allowing you to assign the keystroke to use to insert tabs (I chose the obvious <tab>...). There are a few extra settings that hide under the hood though. Type "about:config" into your location bar, and then filter by "tabinta". I changed "tabinta.hard" to "false" and "tabinta.tab_width" to "4" to force it to insert 4 spaces instead of a tab character.

Unfortunately, Tabinta doesn't work with Kupu's normal interface, although it will insert tabs when you're in Kupu's HTML view, as well as any other plain textarea within Plone.

 

 

Document Actions
Need help now?

Immediate assistance is available during university work hours:

News & views…
Posted Oct 13, 2009 Portlets gone wild with ContentWellPortlets 2.0.1 This new release adds the ability to add portlets to the footer area. It also has 6 portlet managers per area. This means 20 total portlet managers including the 2 on the sides that ship with plone.
Posted Sep 17, 2009 Plone 4 – An interview with Zope News Jan Ulrich Hasecke interviews me for Zope News.
Posted Aug 31, 2009 Web Services API for Plone Alpha 3 Release Details the release of the wsapi4plone.core package and the plans for future releases. The final report of the AtomPub for Plone Google Summer of Code project.
Posted Aug 28, 2009 Content editing and creation in Plone is faster with archetypes.schematuning Some bench marks of content editing and creation in Plone with and without archetypes.schematuning installed.
More news & views…