[TxMt] repetition of inputinputinputinput

David Lee david at davelee.com.au
Sun Nov 27 11:10:54 UTC 2005


FWIW, to underline a word, use the following as a command with  
Input : selected text || line, output: replace.

"${TM_RUBY:=ruby}" -e '
txt = ENV["TM_SELECTED_TEXT"].gsub(/\n/,"")
puts txt + "\n" + ("-" * txt.length)
'

cheers,
David


On 27/11/2005, at 8:38 PM, David Lee wrote:

> Hi.
>
> wondering if I'm missing something, or else how I'd go about this.
>
> in vim / emacs one can specify a 'repeat count' for input, so i  
> could easily insert 80 '-'s by typing (in vim) 80i-<esc>
>
> which is far less boring than holding the key down, and maps well  
> to instances where a more complex repeated sequence is needed.
>
> can we do something like this in TM, as a built-in ? I mean in the  
> general sense, though if there are commands to 'underline words'  
> etc I'm still interested in those.
>
> cheers,
> David
>
>
>
> ______________________________________________________________________
> For new threads USE THIS: textmate at lists.macromates.com
> (threading gets destroyed and the universe will collapse if you don't)
> http://lists.macromates.com/mailman/listinfo/textmate




More information about the textmate mailing list