Re: Concatenate two performed actions into one (to make it repeatable by '.' and undoable at once)

2014-04-09 Fir de Conversatie Dmitry Frank
2014-04-06 23:09 GMT+04:00 Bram Moolenaar b...@moolenaar.net: Ben Fritz wrote: On Sunday, April 6, 2014 6:42:35 AM UTC-5, Bram Moolenaar wrote: The problem is that there will not be a standard way how to apply those two changes. If it's just two inserts after another it would be

Re: Concatenate two performed actions into one (to make it repeatable by '.' and undoable at once)

2014-04-06 Fir de Conversatie Andrew
Rather than joining several actions, a different approach might be to allow the repeat register to be set explicitly, as if it were a macro. Being able to read it would already be somewhat useful. See this reddit thread:

Re: Concatenate two performed actions into one (to make it repeatable by '.' and undoable at once)

2014-04-06 Fir de Conversatie Bram Moolenaar
Ben Fritz wrote: On Saturday, April 5, 2014 2:02:23 PM UTC-5, Bram Moolenaar wrote: You can record into a register and replay that. This is not an option for the desired use case, of creating a plugin to automatically insert closing parentheses and the like as you type the

Re: Concatenate two performed actions into one (to make it repeatable by '.' and undoable at once)

2014-04-06 Fir de Conversatie Ben Fritz
On Sunday, April 6, 2014 6:42:35 AM UTC-5, Bram Moolenaar wrote: The problem is that there will not be a standard way how to apply those two changes. If it's just two inserts after another it would be possible, but in general the cursor would have moved somewhere else and perhaps

Re: Concatenate two performed actions into one (to make it repeatable by '.' and undoable at once)

2014-04-06 Fir de Conversatie Bram Moolenaar
Ben Fritz wrote: On Sunday, April 6, 2014 6:42:35 AM UTC-5, Bram Moolenaar wrote: The problem is that there will not be a standard way how to apply those two changes. If it's just two inserts after another it would be possible, but in general the cursor would have moved somewhere else

Re: Concatenate two performed actions into one (to make it repeatable by '.' and undoable at once)

2014-04-05 Fir de Conversatie Ben Fritz
On Saturday, April 5, 2014 2:02:23 PM UTC-5, Bram Moolenaar wrote: You can record into a register and replay that. This is not an option for the desired use case, of creating a plugin to automatically insert closing parentheses and the like as you type the opening character. For that we

Re: Concatenate two performed actions into one (to make it repeatable by '.' and undoable at once)

2014-04-05 Fir de Conversatie Bram Moolenaar
Ben Fritz wrote: On Saturday, April 5, 2014 2:02:23 PM UTC-5, Bram Moolenaar wrote: You can record into a register and replay that. This is not an option for the desired use case, of creating a plugin to automatically insert closing parentheses and the like as you type the opening

Re: Concatenate two performed actions into one (to make it repeatable by '.' and undoable at once)

2014-04-05 Fir de Conversatie Benjamin Fritz
On Sat, Apr 5, 2014 at 4:09 PM, Bram Moolenaar b...@moolenaar.net wrote: Ben Fritz wrote: On Saturday, April 5, 2014 2:02:23 PM UTC-5, Bram Moolenaar wrote: You can record into a register and replay that. This is not an option for the desired use case, of creating a plugin to

Re: Concatenate two performed actions into one (to make it repeatable by '.' and undoable at once)

2014-04-04 Fir de Conversatie Christian Brabandt
On Do, 03 Apr 2014, Dmitry Frank wrote: Consider a simple example: say, I just typed foo, then pressed Left key, and typed bar. Now I have fobaro. When I press . key, only bar part is repeated, and the same is with undo. So I want the whole fobaro to be repeated when I press ., and to be

Re: Concatenate two performed actions into one (to make it repeatable by '.' and undoable at once)

2014-04-04 Fir de Conversatie Dmitry Frank
2014-04-04 16:04 GMT+04:00 Christian Brabandt cbli...@256bit.org: On Do, 03 Apr 2014, Dmitry Frank wrote: Consider a simple example: say, I just typed foo, then pressed Left key, and typed bar. Now I have fobaro. When I press . key, only bar part is repeated, and the same is with undo.

Re: Concatenate two performed actions into one (to make it repeatable by '.' and undoable at once)

2014-04-03 Fir de Conversatie Ben Fritz
On Thursday, April 3, 2014 10:33:38 AM UTC-5, Dmitry Frank wrote: Consider a simple example: say, I just typed foo, then pressed Left key, and typed bar. Now I have fobaro. When I press . key, only bar part is repeated, and the same is with undo. So I want the whole fobaro to be