From: Kent, C. - e. <ck...@es...> - 2004-03-02 15:08:49
|
I don't think it's possible to do exactly what you want. there are a couple of options. you could use "incremental search for word" (A+,). this brings up the search bar with the current word (you don't have to select the whole word). enter takes you to each match for the word and escape takes focus back to the text area. or you could use a macro and bind a keystroke to it. this should do what you want: if (textArea.getSelectedText() == null || textArea.getSelectedText().length() == 0) { textArea.goToPrevWord(false); textArea.selectWord(); } SearchAndReplace.setSearchString(textArea.getSelectedText()); SearchAndReplace.setAutoWrapAround(false); SearchAndReplace.setReverseSearch(false); SearchAndReplace.setIgnoreCase(false); SearchAndReplace.setRegexp(false); SearchAndReplace.setSearchFileSet(new CurrentBufferSet()); SearchAndReplace.find(view); this macro selects the text for you so you just need to press F3 (or whatever you bind it to). Chris -----Original Message----- From: Kercso Jozsef [mailto:joz...@fr...] Sent: 02 March 2004 10:13 To: JEdit Users List Subject: [ jEdit-users ] Problems with searching Hi! I don't know, if the following is already done in jEdit, but I didn't found it anywhere: When I start searching a given text, I must to do the following: - select text, press Ctrl+F, then Enter for searching. Then F3, F3, ... for search next. What I want to do: - select text, then F3 for searching. Then F3, F3, ... for search next. I don't want to see the Searching dialog, I just want to jump to the next occurence of a string. How can I do that? An other thing what I have found has to do with HyperSearch: When I start a searching, I can continue typing, and I can do some other things too. But jEdit cannot refresh itself, that means, if I switch to another application and then back, I cannot do anything, because the whole window is gray. Is this a bug from jEdit or a bug of the HyperSearch plugin? And finally one more thing: HyperSearch is terrible slow. When I start searching in a directory, HyperSearch needs 4-5 minutes to finish the job. The same searching takes for TotalCommander less the 10 seconds. I know, that jEdit is slower because of java, but I don't think, that the difference should be so big. Or am I wrong? Regards, joco ------------------------------------------------------- SF.Net is sponsored by: Speed Start Your Linux Apps Now. Build and deploy apps & Web services for Linux with a free DVD software kit from IBM. Click Now! http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click -- ----------------------------------------------- jEdit Users' List jEd...@li... https://lists.sourceforge.net/lists/listinfo/jedit-users http://www.espeed.co.uk CONFIDENTIAL: This e-mail, including its contents and attachments, if any, are confidential. If you are not the named recipient please notify the sender and immediately delete it. You may not disseminate, distribute, or forward this e-mail message or disclose its contents to anybody else. Copyright and any other intellectual property rights in its contents are the sole property of eSpeed, Inc and its affiliates. This e-mail was issued by eSpeed International Limited ("eSpeed"). eSpeed is a limited liability company incorporated under the laws of England (company number 3809189 and VAT registration number 577 406809). eSpeed's registered office is at One America Square, London EC3N 2LS. For any issues arising from this email please reply to the sender. E-mail transmission cannot be guaranteed to be secure or error-free. The sender therefore does not accept liability for any errors or omissions in the contents of this message which arise as a result of e-mail transmission. If verification is required please request a hard-copy version. Although we routinely screen for viruses, addressees should check this e-mail and any attachments for viruses. We make no representation or warranty as to the absence of viruses in this e-mail or any attachments. Please note that to ensure regulatory compliance and for the protection of our customers and business, we may monitor and read e-mails sent to and from our server(s). |