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
      47
      4 Votes
      47 Posts
      2k Views
      guy038G

      Hi, @coises and All,

      @coises, I read carefully your last two posts and many thanks for all your explanations !

      Regarding your point #3 :

      You said :

      I’m questioning the sense of that now. I’m thinking that if the user specifies “in selection” or ”in marked text,” and there is none, the search should fail with a message like “No marked text to search”

      Indeed, it quite disturbing for example that, when no selection and no marked text exists, the Count in selection or Count in Marked Text options still return all the matches of current document ! Give it a try, searching for the insensitive word fix within the last change.log file ( You should get 32 matches ! )

      So I support your idea that, in this specific case, the search should fail with the message No marked text to search or No selection to search

      Regarding your point #1 :

      I totally understand your logic. This make sense !

      Regarding your point #2

      You began with :

      Mark commands that don’t specify a scope …

      Are we agree that you’re speaking about the Mark Before and Mark after options ONLY ? Presently, as you said, these two commands, not restricted to a scope, search throughout all file contents.

      Now, as expressed in your very last post, I do support your idea to avoid any command that do not include a scope ( in Selection, in marked Text and in Whole Document ). Thus, that should solve automatically this problem ;-))

      One question :

      Let’s suppose the v8.9.3 change.log in a tab

      Now, enter the regex (?si) 1.+?(?=^\R) in the Search dialog

      Click on the ▼, after the defeautl Find All option

      Run the Mark > Mark in Whole Document option

      => Message : Marked 4 matches

      Now, with the (?si) 1.+?(?=^\R) regex still present in the Find dialog

      Run the Mark > Mark in Marked Text option

      => We get the message No matches found in marked text. Is this coherent, @coises ?. To my mind, I was expecting the message 4 matches in marked text !

      Of course, I know that, normally, I should have changed the search, in between ! For example :

      Write the (?i)fix regex, in the Find dialog

      Run again the Mark > Mark in Marked Text option

      => The fix word, whatever its case, is now marked, from all the previous marked regions, ONLY !

      You’ll note that the fix string within all the lines beginning with Notepad++, which were not concerned by the previous search, are not marked, as expected !

      Regarding the Remove marks from all open documents and Remove marks from documents in this view options, in the Tools dialog :

      Could you move them to an other place of the Tools dialog, in order to not be close to the Remove marks from active document option, that we’ll probably use more often ?

      OR :

      Could you add a confirmation dialog for these two specific options ?

      Best regards

      guy038

    • R

      No-save buffer, for log barf I don't want to save

      Watching Ignoring Scheduled Pinned Locked Moved General Discussion
      2
      0 Votes
      2 Posts
      50 Views
      PeterJonesP

      @robstoddard ,

      Personally, I just have a file named Peter's Scratchpad.txt that’s always open, where I paste things like that (and, admittedly, things that started like that but have just stayed around in that file for a lot longer than originally intended). And if I save the “temporary data” in the file, who cares? I just delete the stuff out of the file that I don’t need anymore when I don’t need them anymore. That way, I can just Save All or use the Auto-Save plugin as much as I want, without having to ask for a specific feature to “not save this one thing”.

    • donhoD

      All the off-topic go here

      Watching Ignoring Scheduled Pinned Locked Moved Boycott Notepad++
      8
      3 Votes
      8 Posts
      6k Views
      guy038G

      Hello, @datatraveller1 and All,

      Many thanks for joining the Compare2Lists’s author and many thanks to Fatih Ramazan Çıkan which was able to get a quick new 1.7 version which fixes this annoying bug !

      I also tried this software on that real example that I proposed in this post, some days ago :

      https://community.notepad-plus-plus.org/post/105031

      You can download this file from my Google Drive account :

      https://drive.google.com/file/d/1aYOpKon4KYw_NXSdj4Tm4Ti_FrygC2ky/view?usp=sharing

      Before using it with the Compare Two Lists software :

      Delete the last column, which counts the number of records, with a column mode selection

      Delete all trailing blank characters with the Edit > Blank operations > Trim Trailing Space option

      Place all contents in the clipboard ( Ctrl + C )

      Now, open the Compare Two Lists software

      Paste all the resulting contents with the Paste button, associated with the List #1 panel

      Check that the Settings > Cas sensitive option, if necessary

      Click on the Remove Duplicates button, associated with the List #1 panel

      => You should see that it remains 50,822 records

      And this is exactly the results produced when you use the cases #3 or #4 of my post ;-))

      Best Regards,

      guy038