Search - end of file



  • Hi
    in general I like using notepad++ - except that search ends at end of file. Is there setting possible, to continue search at beginning (or at end, when “backwards” mode)? Turning backwards on and off all the time is annoying. Jörg



  • @Jörg-Läuftschreib

    what you are looking for is called wrap around



  • @Ekopalypse

    Seems really obvious to me; maybe it is really obscure translated into Jorg’s language by Notepad++??



  • @Alan-Kilborn

    to be honest, I had the same problem.
    As I started I asked my self what wrap around could mean.
    Thinking about wraps, the things to eat, I thought what should be wrapped?
    Took some time to figure out that this means search from current position to end and start from beginning to current position.
    But I don’t know of a better wording either.



  • @Ekopalypse

    I asked my self what wrap around could mean.

    I had no such problem; the editor I used for a long time previously used similar verbage for the feature. But…maybe it is not a common usage.

    this means search from current position to end and start from beginning to current position.

    Or…search from the current position to the beginning and then from the end back to the current position (if doing “backward” search).

    Curiously, internally Notepad++ conducts two searches, not one, when doing this “wrap”, if no match is found in the first part (stopping it). Of course user only sees one search. Hmmm, maybe not so curious. But, this is only when it is user interactive…when wrap is specified and user-interactivity is not needed (ex. Replace All), Notepad++ just starts at the top and works thru til the end. :)



  • @Alan-Kilborn said:

    editor I used for a long time previously used similar verbage for the feature.

    I just pulled up the IDE for the proprietary programming environment I use, circa 2005, and it uses “wrap” for the search as well. Maybe it’s an English (or American English) idiom which has worked its way into the official Computer-ese jargon.

    @Ekopalypse :

    Thinking about wraps, the things to eat, I thought what should be wrapped?

    The food gets its name from the verb “to wrap”, which in the Peter Standard Dictionary might be defined as “to surround (often snugly) with something”. In the food, you are “wrapping” the tortilla around the innards of the sandwich; for the search, you are “wrapping” the search position snugly around the whole document.

    The wiktionary entry’s item#7 in the verb definition is probably more where the search-wrap came from: “To (cause to) reset to an original value after passing a maximum.”.


Log in to reply