From: SourceForge.net <no...@so...> - 2008-02-14 18:30:23
|
Bugs item #1725202, was opened at 2007-05-24 14:09 Message generated for change (Settings changed) made by ezust You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=100588&aid=1725202&group_id=588 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: search and replace Group: normal bug Status: Open Resolution: None Priority: 5 Private: No Submitted By: kelby (kelby) >Assigned to: Alan Ezust (ezust) Summary: Incremental search bar shows clipboard not selection Initial Comment: Jedit version 4.3 pre9 Java 1.5.0_06 Operating System: Windows 2000 If I have a selection and then invoke the Incremental search bar (C+comma)the search string field is my clipboard from last copy or cut command. A normal find seem to work okay, ie if I invoke the Find command (C+F) with a selection the search string field is the selection, not the clipboard. The user guide states: Search>Incremental Search Bar (shortcut: C+COMMA) displays the search bar if necessary, and gives it keyboard focus. If this command is invoked while there is a selection, the selection is placed in the search string field. ---------------------------------------------------------------------- Comment By: n13e144 (elvez671) Date: 2008-02-14 00:58 Message: Logged In: YES user_id=1768417 Originator: NO I don't know what the originally intended behavior was. But the more intuitive behavior, imho, would be for Ctrl-comma (Cmd-comma on Mac) to simply display the Search Bar without affecting the current search string, and for Alt-comma (Ctrl-comma on Mac) to display the Search Bar AND, in addition, to change the search string to the selected text. Indeed, the method responsible, quickIncrementalSearch() in the View class, looks to have been coded this way. Given the above, I would just change the docs instead of the functionality. Something like this: Search>Incremental Search Bar (shortcut: C+COMMA) displays the search bar if necessary, and gives it keyboard focus. Search>Incremental Search for Word (shortcut: A+COMMA) behaves like the above command except that: 1) if this command is invoked while there is a selection, the selection is placed in the search string field; or 2) if there is no selection, it places the word at the caret in the search string field. ----------------- jEdit 4.3pre13 Java 1.5.0_13 Mac OS X 10.5.1 ---------------------------------------------------------------------- Comment By: Robert Schwenn (rschwenn) Date: 2008-02-05 13:00 Message: Logged In: YES user_id=1486645 Originator: NO This is still an issue. When invoking the incremental search (not "for word") while there is a selection, the selection *never* appears as the search text. Instead, somtimes the text from the clipboard is placed in the search string field, sometimes it is empty. jEdit version 4.3pre12 SUN JRE 1.6.0_03 Windows XP SP2 ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=100588&aid=1725202&group_id=588 |