Menu

#246 F3 replaces the text after last search and replace

open
nobody
None
5
2012-09-26
2004-02-17
No

If you select some text and press for instance F3 then
the next disappears... imho I think this is unintuitive
since no other editor will do this. Just a couple of
mins ago I was fiddling with search and search-again
and I noted that its very easy to keep pressing F3 a
couple of times, and thus messing up the entire source
because search will mark stuff for you...

Discussion

  • Colin Laplace

    Colin Laplace - 2004-02-23

    Logged In: YES
    user_id=25510

    I don't really understand the problem. When i select texts and
    press F3, it selects the next matching text, without modifying
    any part of the file. Can you please rephrase your problem ?

    Colin

     
  • Marek Januszewski

    Logged In: YES
    user_id=609236

    to reproduce:
    if you have a source code like that:
    --
    int main(int argc, char** argv) {
    }
    --
    1. got to the top of the text (ctrl-home)
    2. ctrl-R - text to find "main", replace with "somethingelse"
    3. run search/replace
    4. undo replace (ctrl-z should do it)
    5. go to the top (ctrl-home)
    6. press F3

    Now the text is search AND replaced again,
    while it should just search and mark it if it's found.

     
  • Max TenEyck Woodbury

    Logged In: YES
    user_id=735003

    This surprised me the first time it happened, but it
    actually makes more sense than some of the alternatives I've
    seen.

    You may want to suggest a alternative rather than just
    complain...

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.