[TxMt] Re: "Go to last edit" keyboard shortcut

Hans-Jörg Bibiko bibiko at eva.mpg.de
Mon Oct 26 17:05:11 UTC 2009


On Oct 26, 2009, at 5:41 PM, Steve King wrote:

> On 25 Oct 2009, at 13:51, Alessandro Vernet wrote:
>
>> Alessandro Vernet wrote:
>>>
>>> It is funny that you should suggest that, because I tried doing  
>>> *exactly*
>>> that this morning. Unfortunately while doing undo/redo "by hand"  
>>> works
>>> fine, creating a macro that runs those commands doesn't do  
>>> anything for
>>> me.
>>>
>>> Here is the macro I recorded:
>>> http://www.nabble.com/file/p25932786/Go%2Bto%2Blast%2Bedit.tmMacro
>>> Go+to+last+edit.tmMacro
>>> Can see anything wrong with it?
>>>
>>
>> Anybody has an idea about this one?
>
> You're right, it looks like undo and redo can't be recorded in a  
> macro. I tried editing the macro file by hand to add them, but no  
> luck. Sorry, I don't have any other bright ideas.

Hi,

maybe try to record that macro :

ARROW_RIGHT →
ARROW_LEFT ←

or create a new tmcommand in the Bundle Editor:

Input: None
Output: Discard
Command:
open "txmt://open?line=$TM_LINE_NUMBER&column=$TM_COLUMN_NUMBER"

and bind it to any keystroke.

Cheers,

--Hans





More information about the textmate mailing list