Re: [code] Filter through fmt

From: Mitchell <>
Date: Sat, 19 Apr 2014 09:49:44 -0400 (EDT)

Hi Carlos,

On Fri, 18 Apr 2014, Carlos Pita wrote:

> Hi all,
> when editing commit messages with textadept I often filter a text
> paragraph through fmt in order to reflow it constrained to a maximum
> number of columns.
> How can I configure a keyboard shortcut to automate this? That is, how
> can avoid typing the fmt command each time?

Put the following in your ~/.textadept/init.lua:

   keys['aa'] = {textadept.editing.filter_through, 'fmt'}

Typing Alt+A call on Textadept's "filter through" capabilities with the
'fmt' command. You can of course change the key and command to suit your

The manual has more information on key binding preferences[1] and
Textadept's `modules/textadept/keys.lua` has plenty more examples.



You are subscribed to
To change subscription settings, send an e-mail to
To unsubscribe, send an e-mail to
Received on Sat 19 Apr 2014 - 09:49:44 EDT

This archive was generated by hypermail 2.2.0 : Sun 20 Apr 2014 - 06:41:55 EDT