[TxMt] Re: Bug in enclose selection with multi-key characters using US-International keyboard layout
Allan Odgaard
mailinglist at textmate.org
Sat Sep 20 08:17:19 UTC 2014
On 19 Sep 2014, at 17:28, Eduardo Francos wrote:
> After some searching […]
It occurred to me that you might get your desired behavior by binding a
custom action to the key for the case where there is a selection.
E.g. make a snippet with: ${0:´$TM_SELECTED_TEXT´}
Set the key equivalent to (assuming US keyboard): ⌥E
Set the scope selector to: dyn.selection
After this, pressing ⌥E with a selection wraps the selection in acute
accents (and keeps it selected).
If there is no selection, it should insert ´ (as “marked”, allowing
you to e.g. type E to make it é).
More information about the textmate
mailing list