[TxMt] Re: Code folding questions
fabian.zeindl at gmail.com
Mon Aug 22 09:33:51 UTC 2016
> On 22.08.2016, at 11:15 , Allan Odgaard <mailinglist at textmate.org> wrote:
> You can create a macro that first does the selection, then executes a command, e.g..
Awesome, this works.
> This though leaves your insertion selected, there are other options, like asking for caret to be after insertion, but you probably want to keep the caret where it was.
Right now I'm outputting a snippet, since I need proper indentation and as far as I know that's only possible with a snippet? I'll set the cursor with $0 then.
What do I have to set in the macro to get the indentation?
Also: Is it possible to programmatically change the output type in ruby commands, like "exit_discard" and so on?
More information about the textmate