Re: [hackers][vis][PATCH] Handle quote matching in its own function

From: Marc André Tanner <mat_AT_brain-dump.org>
Date: Thu, 18 Feb 2016 17:25:46 +0100

On Mon, Feb 15, 2016 at 06:22:58PM +0100, Silvan Jegen wrote:
> On Mon, Feb 15, 2016 at 05:50:12PM +0100, Marc André Tanner wrote:
> > On Mon, Feb 15, 2016 at 04:01:48PM +0100, Silvan Jegen wrote:
> >
> > [...]
> >
> > What would be more interesting is to add a way to define motions and
> > text objects in Lua. Integration with the LPeg based lexers should
> > then be relatively easy ...
>
> That would mean that you would call out to lua each time you want to
> use one of these motions/objects, if I understand correctly.

Yes. The latest commits add the necessary infrastructure to implement
motions and text objects as Lua functions. Documentation is currently
sparse, but there is an example "ii" is a text object based on syntax
tokens. Roughly speaking it should match everything that is colored the
same way as the current cursor position. Suggestions for a more suitable
key binding are also welcome ...

-- 
 Marc André Tanner >< http://www.brain-dump.org/ >< GPG key: 10C93617
Received on Thu Feb 18 2016 - 17:25:46 CET

This archive was generated by hypermail 2.3.0 : Thu Feb 18 2016 - 17:36:12 CET