[Geany] Another request from a new user

Lex Trotman elextr at xxxxx
Tue Sep 21 05:56:31 UTC 2010


On 21 September 2010 15:27, Vineet Jain <vinjvinj at gmail.com> wrote:
>> highlight f3 Ctrl-V Ctrl-G Ctrl-V Ctrl-G Ctrl-V etc
>
> Find selected and find next can not be bound to the same key.
> Unfortunately, I really miss this functionality. It might seem small,
> but is a huge usability thing. when you start with one keybinding (in
> my case f3) and then have to switch to another key binding to do find
> next.
>
> IMHO, find and replace is such a core component of a text editor, it
> has to be done right. Both find selected and find next should be the
> same key. If something is selected then pressing the find key should
> search for it. If nothing is selected, it should search for the word
> that was last time time highlighted and searched for.
>
> I'm so used to the following key strokes
>
> find -> highlight word -> f3, f3, f3 (do some stuff) f3....
>
> Replace -> highlight word -> f3 -> ctrl v -> f3 -> ctrl v -> f3
>
> With geany:
>
> find -> highlight word -> f3 -> ctrl g -> ctrl g (do some stuff) ->
> ctrl g (I don't understand what changing the key stroke buys you)
>
> replace -> highlight word -> f3 -> ctrl v -> ctrl g -> ctrl v -> ctrl g

Hear is a quick and dirty patch.

Someone might consider if making find_again in callbacks.c global is
the right way to go or if it should be in a utils_... file instead.

Cheers
Lex



> _______________________________________________
> Geany mailing list
> Geany at uvena.de
> http://lists.uvena.de/cgi-bin/mailman/listinfo/geany
>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: search.diff
Type: text/x-patch
Size: 597 bytes
Desc: not available
URL: <http://lists.geany.org/pipermail/users/attachments/20100921/0c36c3c6/attachment.bin>


More information about the Users mailing list