[Geany] selecting text between brackets (was revisiting keybindings)

Enrico Tröger enrico.troeger at xxxxx
Fri Sep 7 16:06:06 UTC 2007


On Thu, 6 Sep 2007 15:13:11 -0400, "John Gabriele" <jmg3000 at gmail.com>
wrote:

> In another thread, Nick wrote:
> > John wrote:
> >
> > > * Shift-Alt-B -- select text between innermost matching brackets
> > > (**who snuck this in here? ;)**). It does seem to go rather well
> > > with Shift-Alt-{W,L,P} though...
> >
> > I'm thinking of adding something like 'select scope' which uses the
> > current fold level. Or did you mean () brackets for selecting e.g.
> > an argument list for a function?
> 
> Not sure what you mean by "fold level". I meant "brackets" in the
> general sense ( [], {}, () ). That is, you've got text that looks
> like:
> 
> {
>     [
>         hello
>         func(foo bar baz)
>     ]
>     bye
> }
> 
> and you've got your cursor on the "bar", then you hit Shift-Alt-B and
> get "foo bar baz" selected. For extra geek points for Geany, if you
> hit Shift-Alt-B again, the selection would expand to get "func" and
> "hello" also (including the parentheses) -- and tap it again to get
> the "bye" (and square brackets) in there too.
I guess you mean something like "Select block" from Jeff's great Lua
scripts ;-).


Regards,
Enrico

-- 
Get my GPG key from http://www.uvena.de/pub.key
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: <http://lists.geany.org/pipermail/users/attachments/20070907/3eee4590/attachment.pgp>


More information about the Users mailing list