Re: [code][textadept] macro recording module

From: Gabriel Dubatti <gdubatti.att.gmail.com>
Date: Fri, 13 Jan 2017 09:08:17 -0300

El 12/01/2017 a las 20:22, Heck Fy escribió:
> hi, all!
>
> i've written a macro recording module for TextAdept:
>
> source code - https://github.com/shitpoet/ta-macro
>
> i used it for a while, it mostly works fine. hovere i noticed that
> sometimes there're some minor problems with whitespace handling.
>
> i dont know if there any other macro recording modles or functions for
> TextAdept in wiki. maybe my module can be useful for someone.
>
> another notice: this module assigns many basic commands to keys:
>
> ```
> keys.left = buffer.char_left
> keys.left = buffer.char_left
> keys.sleft = buffer.char_left_extend
> keys.cleft = buffer.word_left
> keys.csleft = buffer.word_left_extend
> . . .
> . . .
> . . .
> ```
>
> this is because the module is working at TextAdept level, not at
> Scincilla level (Scincilla has its own functionality to record
> macroses, if i remember well.)
>
> the specific keys are not important for the module to work, just that
> the assignment exists.
>
> so if you include the module at top of your `init.lua`, then there
> should be no problems with it and with your custom keybindings, as far
> as i understand.
Hi shitpoet,

(nice nickname :) )

You have the first line duplicated:
keys.left = buffer.char_left
keys.left = buffer.char_left

Nice work!, BTW

gabriel

-- 
You are subscribed to code.att.foicica.com.
To change subscription settings, send an e-mail to code+help.att.foicica.com.
To unsubscribe, send an e-mail to code+unsubscribe.att.foicica.com.
Received on Fri 13 Jan 2017 - 07:08:17 EST

This archive was generated by hypermail 2.2.0 : Sat 14 Jan 2017 - 06:29:18 EST