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
      48
      5 Votes
      48 Posts
      2k Views
      CoisesC

      @guy038 said in Search++: A work in progress:

      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.

      It applies to the plain Mark command, too. If there is a non-empty selection (that’s “large enough” per Settings), Mark will perform Mark in Selection (not possible for Mark Before and Mark After). But none of the three will perform Mark […] in Marked Text; that has to be selected explicitly. The same isn’t true for Select; if there is an existing selection (large enough), Select will perform Select in selection. What I was thinking is that perhaps this difference between Mark and Select should be “explained” by having an additional setting for each action, enabled only when Automatically search within {selections | marked text} is checked, that controls whether the matching command is an exception (that is, Select doesn’t perform Selection in Selection, or Mark doesn’t perform Mark in Marked Text). The current behavior would have the “except Select” box unchecked and the “except Mark” box checked.

      It comes down to: What do you want to do when you say Select and there’s already a selection, or you say Mark and there’s already marked text? Do you replace the existing selection or marks? add to them? or search within them?

      And when I put it that way… I have to think this through some more. From a user’s perspective, the Settings I have are too difficult to figure out. I’m having trouble getting a clear picture of what settings make sense with what other settings and I wrote the damn thing. :-(

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

      It would get rid of some of the problem, but not all of it. Where I’m stuck is that I really want there to be “adaptive” commands (the plain Count, Find All, etc.) that recognize when the user would want to search in a selection or in marked text, so they can be the one-click action on a button. Alas, there’s that fundamental design flaw in all computers thus far produced: the RUM (“read user’s mind”) instruction was never implemented. It could be that making an appropriate guess is hopeless. But I really don’t want an oversized, cluttered interface with a matrix of 20 buttons, and I really don’t want users to have to select operations they use often or repeatedly from button menus. So, at least for a while, I’m going to keep trying.

      I appreciate your feedback on these issues very much. Anything you, or anyone, can tell me about what works smoothly and what is difficult to use or doesn’t work as expected is helpful.

      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 !

      I did document this, but it’s easily missed:

      For a regular expression search, each run of marked text is searched independently; the search in any span of marked text cannot “see” outside that span. This affects the behavior of assertions (including word boundaries, lookaheads and lookbehinds, ^ and $).

      The search in Columns++ has the same limitation. I couldn’t figure out a practical way to make it work other than this way.

      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 ?

      I will work out something so they won’t be easily clicked by accident.

    • Joe 0J

      Archive of Notepad++ versions

      Watching Ignoring Scheduled Pinned Locked Moved General Discussion archiving
      4
      0 Votes
      4 Posts
      194 Views
      PeterJonesP

      @George-0 said in Archive of Notepad++ versions:

      I checked this link but it is not that relevant.

      Why do you think that? The README that @Murray-Sobol-1 linked to starts with,

      You can find all the old Notepad++ releases - from the very first version 1.0 up to v6.9.2 - here

      That’s 100% relevant to the original question “does any people have an notepad++ installers from version 1.0-4.x.x?”

      And if you then follow the link in that README to the Releases page, there are a few pages of releases. The first page has all the v1 installers/downloads, all the v2 installers/downloads, all the v3 installers/downloads, all the v4 installers/downloads (split into groups), and all the v5 installers/downloads (split into groups). And clicking to the second page gives all the v6 installers/downloads (split into groups). If that’s not relevant, then there is no answer to the original question that is relevant. Fortunately, it is obviously relevant: I was quite happy that the Developer listed to the feedback of the users, and re-published all those old installers so that people can still go grab the older copies of the application. He didn’t have to, and I appreciate that he did.

    • 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
      57 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