Community
    • Login
    1. Home
    2. Popular
    Log in to post
    • All Time
    • Day
    • Week
    • Month
    • All Topics
    • New Topics
    • Watched Topics
    • Unreplied Topics

    • All categories
    • CoisesC

      Search++: A work in progress

      Watching Ignoring Scheduled Pinned Locked Moved Notepad++ & Plugin Development
      198
      7 Votes
      198 Posts
      60k Views
      guy038G
      Hi, @coises, I’ve just tested your new v.0.7.1 release ! Let’s suppose that we marked the occurrences of the word test in the text below, that you’ll paste in a new tab : bla blah This is the test to do bla blah test bla blah And that we checked the Bookmark lines when marking text (Shift: configure option, in the Tools menu => The line 4 and 7 are bookmarked and the two occurrences of the word test are marked In an old post, I said that, in order to get the complementary regex, we had to use the ^((?!test).)*$ regex as below : [image: 1791107802156-47217b17-e9ac-499b-9779-b14417deb58c-image.jpeg] Luckily, there’s no need to find out this complementary regex, anymore : First, mark all the occurrences of the word test. [image: 1791107259932-d77b5da7-0dfe-4d8f-a5a4-d8650672eb92-image.jpeg] Right-click within the bookmark margin of N++ and choose the Inverse bookmarks option. [image: 1791107420417-022b778b-1455-4dd8-85be-3938d80c0dcf-image.jpeg] Then, go to the Synchronize marks and bookmarks option of the Tools menu and choose the Mark all text in bookmarked lines and clear other marks option => You should get this snapshot : [image: 1791107447162-b7c6ec3a-3e72-4e1a-b229-52ee2bc7a638-image.jpeg] Which correctly bookmarked all the lines not containing the word test and then marked all contents of the bookmarked lines, including the EOLs, as well ! I tested, both : The Bookmark lines with marked text, and clear other bookmarks option VS the Add bookmarks to lines with marked text option The Mark all text in bookmarked lines, and clear other marks option VS the Add marks to all text in bookmarked lines option And, if I understand you correctly, you mean that the Synchronize marks and bookmarks sub-menu, in your future release, will look as below : Bookmark lines with marked text, and clear other bookmarks Bookmark visible lines, and clear other bookmarks Mark all text in bookmarked lines, and clear other marks Add bookmarks to lines with marked text Add bookmarks to visible lines Add marks to all text in bookmarked lines Yes, that’s totally coherent : The first three items do a clear operation whereas the last three items simply add bookmarks / marks to the existing layout ! Best Regards guy038 P.S. : Just a random question about regex. In the sample of text above : If I try to mark the \z regex with your plugin, I do get the bookmarkred line 10, which is the final empty line of the text If I mark all the occurrences of the (?-s)^((?!test).)*\R regex => All lines, but lines 4, 7, 10, are bookmarked and text with EOLs, in lines 1, 2, 3, 5, 6, 8, 9 is marked However, marking all occurrences of the ^(?-s)((?!test).)*\R|\z regex do not bookmark the final line 10, nor the (?-s)^((?!test).)*$\R? regex and nor the (?-s)^((?!test).)*(\R|\z) regex ! Not important, though. Do you have an explanation ?
    • deleeleeD

      Strange behaviour with find all in current document results

      Watching Ignoring Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
      4
      1
      0 Votes
      4 Posts
      313 Views
      deleeleeD
      @Alan-Kilborn said: @deleelee 9 is single digit and 12/14/22 are each two digits. Thank you, that’s exactly what it was.