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
    • Thomas KnoefelT

      [New Plugin] MultiReplace

      Watching Ignoring Scheduled Pinned Locked Moved Notepad++ & Plugin Development
      94
      3 Votes
      94 Posts
      101k Views
      guy038G
      Hi, @thomas-knoefel and All, First of all, I’d like to apologize for not congratulating you for this important release, in my previous post ! I confirm that, with your new build, the search does go though all the matches and not only to the first hit of the lines. Nice ! You said in your last post :: A double-click jumps to the hit you click on, and F4 / Shift+F4 go on from there. After a new search, F4 starts with its hits. And in your documentation, you also said : Additionally, three navigation commands are available from the Plugins > MultiReplace menu and can be assigned to custom keyboard shortcuts via Settings > Shortcut Mapper > Plugin Commands: But adding the F4 and Shift + F4 shortcuts for your two commands, Next Search Results and Previous Search Results, via the Shortcut Mapper has the drawback of triggering the message CONFLICT FOUND Could you, like @coises, to insert these shortcuts within your code ? For example, with the Search++ plugin : After you ran the Plugins > Search++ > Search... option, then the Ctrl + F shortcut opens the Search in Files window of the plugin But if you switch to the current document, the Ctrl + F shortcut opens the usual Find dialog Using this way allows simultaneous shortcuts in both plugin and native N++. No need to use the Shortcut Mapper ! You said : The option is now called “Find All, Replace All, Mark: start at cursor”. A (?) next to it says when it applies … In this new build, I did see the (?) indication which shows the calltip Only when 'Wrap around' is off and not for runs over open documents of files. However, I did not see the new mane of the option Find All, Replace All, Mark: start at cursor but still the old name Find: Search from cursor position Note that I downloaded the MultiReplace-Release-x64.zip archive. I don’t know if this matters ! To my mind, the best is to always check this option in MultiReplace > Settings... > Search and Replace dialog. In this case : When the Wrap around option is not checked, process goes from cursor position to end of file When the Wrap around option is checked, process goes from the beginning of current file to its end You can verify this assumption, using the regex (?s)^xyz.+|^abc.+ against this text : This is a test abc with some text to see xyz if everything works properly Place the caret at beginning of the 5th line to see When the Wrap around option is OFF, a Replace All action, with Notepad++ or MultiReplace, deletes the third last lines ONLY When the Wrap around option is ON, a Replace All action, with Notepad++ or MultiReplace, deletes everything from string abc in 1 replacement This clearly shows that the process goes from the very start of file when the Wrap around option is checked ! If the process would have started from current position, then started again from beginning of file, once the end reached, we shoud have gotten the N++ message : Replace All: 2 occurrences were replaced in entire file ( first, using the (?s)^xyz.+ regex and then, using the (?s)^abc.+ regex ) Best Regards, guy038
    • K

      Notepad++ context menu removal

      Watching Ignoring Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
      2
      0 Votes
      2 Posts
      73 Views
      PeterJonesP
      @KitMcGuire , The User Manual “Right Click Context Menu” (Shell Extension) section at https://npp-user-manual.org/docs/shell-extension/#manual-installation--registration has the instructions on how to “unregister” the DLL that provides that context menu entry
    • CoisesC

      Search++: A work in progress

      Watching Ignoring Scheduled Pinned Locked Moved Notepad++ & Plugin Development
      229
      7 Votes
      229 Posts
      115k Views
      guy038G
      Hello, @coises and All, Could you enlighten me of a weird behaviour within your two plugins ColumnsPlusPlus and Search++ ? we’ll try to use the (?s)^xyz.+|^abc.+ regex against this text, pasted in a new tab : This is a test abc with some text to see xyz if everything works properly Place the caret at beginning of the 5th line to see Use the Replace All After in Whole Document option => The third last lines are deleted => OK Now, use the Replace All Before in Whole Document option => Message No match found before current position ! Why ? to my mind, the (?s)^xyz.+|^abc.+ regex should have matched the 3 lines : abc with some text to see Of course, if we use, instead, the Replace All in Whole Document option, it does delete these three lines ! A similar behaviour occurs with the ColumnPlusPlus plugin. I use this layout : [image: 1796111675502-35f2aab7-60eb-48cc-be10-7ab68e9458f8-image.jpeg] Place the caret at beginning of the 5th line to see Use the Replace After option => The third last lines are deleted, all the remaining text is colored with the custom style and the message One replacement made is displayed => OK Now, use the Replace Before option => we get the message No match found, with all text still in custom style [image: 1796111704342-34368dea-f211-416d-a596-bf2328335155-image.jpeg] Of course, if we use, instead, the Replace All option it does delete the three lines from string abc Best Regards, guy038 P.S. : See also the end of this post : https://community.notepad-plus-plus.org/post/106889
    • Jack SkiJ

      Suggestion: change color on toolbar!

      Watching Ignoring Scheduled Pinned Locked Moved General Discussion
      4
      0 Votes
      4 Posts
      359 Views
      L
      I get why you’d want it, but I agree with PeterJones here, plain text just has nowhere to store a colour. What I do instead is use the Style Configurator to set up a theme I like, and for marking bits of text I use the bookmark feature or just add a short comment line. Not the same as coloured text, but it keeps everything in the file itself, which is the whole point of a text editor for me.