This patch adds two new items to the search menu: "Find Selected" and "Find Prev Selected"
NEdit and Bluefish both have this feature, and it's hard for me to live without it!
For this implementation, the general idea is:
Search the document for the next match of the current "selection" For X11 based systems, this will try to use the system-wide x-selection first. If it doesn't find anything suitable in the x-selection (or if we are on Win32) it will try to use the scintilla selection or current token instead. If the selection is multiline or empty, it is silently ignored. Search flags are always zero. Default key bindings are the same as NEdit, "Ctrl+H" (forward) and "Ctrl+Shift+H" (backward)
I tweaked the glade files by hand, but hopefully they should work anyway.
BTW, Much thanks for accepting my last patches, and congratulations on the fedora-extras thing!
- Jeff
On Sun, 21 Jan 2007 00:48:41 -0600, "Jeff Pohlmeyer" yetanothergeek@gmail.com wrote:
Hi,
This patch adds two new items to the search menu: "Find Selected" and "Find Prev Selected"
NEdit and Bluefish both have this feature, and it's hard for me to live without it!
Thanks, great patch. I'm still unsure whether we really need this and it blows up the search menu a bit. Perhaps this feature can be merged with Find next and Find previous. And I don't like the keybinding Ctrl+H because it is used for help. Perhaps we should change this before committing.
Nick what do you think?
Regards, Enrico
-- Get my GPG key from http://www.uvena.de/pub.key
On 01/21/2007 06:48:41 AM, Jeff Pohlmeyer wrote:
This patch adds two new items to the search menu: "Find Selected" and "Find Prev Selected"
Thanks, applied in SVN r1222 with separators.
Default key bindings are the same as NEdit, "Ctrl+H" (forward) and "Ctrl+Shift+H" (backward)
I disabled those default keybindings due to the Help conflict (GNOME standard shortcut), but of course the user can set their own. Unfortunately Ctrl-F3 is a common window manager shortcut (switch to workspace 3 on XFCE). We are running out of available key combinations what with GNOME partial compatibility, window managers and Scintilla default keys.
I tweaked the glade files by hand, but hopefully they should work anyway.
Just FYI, it's best not to do this. (There was a minor issue when I regenerated from geany.glade.)
BTW, Much thanks for accepting my last patches, and congratulations on the fedora-extras thing!
Thanks for writing all the patches!
Regards, Nick