I've recently moved from ultraedit to geany and so far love it. There is however one thing I really miss.
- In ultraedit, you can highlight a work and then search on it using the search key f3. Then you can replace the word using ctrl v and press continue your search using f3.
In geany:
- You can highlight the word and search on it using f3. Then you can replace the work using ctrl v and that's where the problem arises, you can no longer continue with the search you were doing.
Is there any way to change this behavior? I really really miss it.
On 21 September 2010 09:41, Vineet Jain vinjvinj@gmail.com wrote:
I've recently moved from ultraedit to geany and so far love it. There is however one thing I really miss.
- In ultraedit, you can highlight a work and then search on it using
the search key f3. Then you can replace the word using ctrl v and press continue your search using f3.
In geany:
- You can highlight the word and search on it using f3. Then you can
replace the work using ctrl v and that's where the problem arises, you can no longer continue with the search you were doing.
Hi,
I presume you have f3 bound to find selected. To continue you need to use find next for the second and subsequent finds. In the default Geany thats bound to Ctrl-G so the sequence is:
highlight f3 Ctrl-V Ctrl-G Ctrl-V Ctrl-G Ctrl-V etc
You can of course bind find-next to whatever you want.
Cheers Lex
Is there any way to change this behavior? I really really miss it. _______________________________________________ Geany mailing list Geany@uvena.de http://lists.uvena.de/cgi-bin/mailman/listinfo/geany
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
On 21 September 2010 15:27, Vineet Jain vinjvinj@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@uvena.de http://lists.uvena.de/cgi-bin/mailman/listinfo/geany
On Tue, 21 Sep 2010 15:56:31 +1000 Lex Trotman elextr@gmail.com wrote:
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 don't think they should be the same keybinding because you may want to repeat the last search even though you have text selected. Lex's solution is good though.
Hear is a quick and dirty patch.
Committed a similar change.
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.
I put it in search.c. utils.c should be for general C stuff, non-GUI.
Regards, Nick
Committed a similar change.
I just installed a nightly build (built on or after Sep 22 2010) with svn release 5250. I've mapped F3 to Find Next Selection.
Now if a highlight a word -> f3 -> ctrl c and ctrl v to replace -> f3 will now search the the word that I copied and replaced.
preferred behavior ->
Now if a highlight a word -> f3 -> ctrl c and ctrl v to replace -> f3 -> ctrl c and ctrl v to replace -> f3
Am I doing something wrong?
On Wed, 22 Sep 2010 11:39:16 -0400 Vineet Jain vinjvinj@gmail.com wrote:
Committed a similar change.
I just installed a nightly build (built on or after Sep 22 2010) with svn release 5250. I've mapped F3 to Find Next Selection.
Now if a highlight a word -> f3 -> ctrl c and ctrl v to replace -> f3 will now search the the word that I copied and replaced.
preferred behavior ->
Now if a highlight a word -> f3 -> ctrl c and ctrl v to replace -> f3 -> ctrl c and ctrl v to replace -> f3
Am I doing something wrong?
I don't think I changed the behaviour from Lex's patch.
Why this doesn't work as you want is because the Find Selected functions use the current word if there is no selection.
Regards, Nick
Hi. maybe I misunderstand but I find it very convenient to just press a key (e.g. F3) on a word without having to select it and travel from word to word in the document by repeatedly pressing F3. Geany is in my eyes the editor I was looking for a long time. Switched to Geany a couple of weeks ago and I am more than happy with it. Any change in behavior of especially this, will have others come up and ask for changing it back. Me for instance. :) ... If there is a way to configure that individually (even more than already possible) fine with me. But changing, as you said such an important area, would need a vote of more than one user in the majority's interest.
there is hope for everybody's likes and dislikes - Geany's plugin system
best
Stefan
P.S. Hey, Geany Core-Team, great piece of work !
On Wed, Sep 22, 2010 at 6:57 PM, Vineet Jain vinjvinj@gmail.com wrote:
Why this doesn't work as you want is because the Find Selected functions use the current word if there is no selection.
Is there any way to change the behavior? Having to switch keys from find selected to find next is painful, when you should be able to just use one key. _______________________________________________ Geany mailing list Geany@uvena.de http://lists.uvena.de/cgi-bin/mailman/listinfo/geany
On Wed, 22 Sep 2010 12:57:28 -0400 Vineet Jain vinjvinj@gmail.com wrote:
Why this doesn't work as you want is because the Find Selected functions use the current word if there is no selection.
Is there any way to change the behavior? Having to switch keys from find selected to find next is painful, when you should be able to just use one key.
I think you only have to switch once, then keep using the Find Next binding. After a while it becomes automatic.
Anyway, I added a hidden pref to customize the behaviour partly because Find Selection also uses the X selection outside Geany, and I think this is confusing behaviour by default if the user expects it to use the current word.
So to just repeat the last word, update Geany and add this to your geany.conf under [geany]: find_selection_type=2
Regards, Nick
On 23 September 2010 02:54, Nick Treleaven nick.treleaven@btinternet.com wrote:
On Wed, 22 Sep 2010 11:39:16 -0400 Vineet Jain vinjvinj@gmail.com wrote:
Committed a similar change.
I just installed a nightly build (built on or after Sep 22 2010) with svn release 5250. I've mapped F3 to Find Next Selection.
Now if a highlight a word -> f3 -> ctrl c and ctrl v to replace -> f3 will now search the the word that I copied and replaced.
preferred behavior ->
Now if a highlight a word -> f3 -> ctrl c and ctrl v to replace -> f3 -> ctrl c and ctrl v to replace -> f3
Am I doing something wrong?
I don't think I changed the behaviour from Lex's patch.
Why this doesn't work as you want is because the Find Selected functions use the current word if there is no selection.
Yes, you're right, fooweey, tested it on numbers didn't I :-)
In which case I can't see a simple way of allowing for what Vineet wants without changing existing behavior.
Cheers Lex
Regards, Nick _______________________________________________ Geany mailing list Geany@uvena.de http://lists.uvena.de/cgi-bin/mailman/listinfo/geany