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
      90
      5 Votes
      90 Posts
      9k Views
      guy038G
      Hi, @coises, I re-tested the supposed bug and I simplified the procedure which is necessary to trigger that bug ! If opened, close the Search++ plugin by clicking on the cross, at the far right A Re-open Search++ with the Plugins > Search++ > Search... option B Try to close the Search++ panel by clicking on the cross, at the far right => Nothing happens !? C After some trys, if you move slightly the mouse, you should be able to close the Search++ panel Sometimes, you’ll need to repeat the actions A ato C, up to 5 times consecutively, to trigger that bug. but this event may also occur at the first try ! I also noted that, when the bug occurs, any subsequent left click on the cross does nothing until I move very slightly the mouse, without any clicking, that is enough, then, to close the search++ panel by clicking againg onto the cross icon. Very strange, indeed !? As I suspected that the problem could be an hardware issue with my bluethooth mouse, I disabled it and installed a classical USB mouse, instead. But, unfortunately, results were identical as well as the uncertainty regarding the manifestation of the bug ! I have different portable versions of Notepad++, but the one which is concerned is the v8.9 release where I installed, both, your Columns++ and Search++ plugins Here is my Debug info : Notepad++ v8.9 (64-bit) Build time: Jan 10 2026 - 02:25:19 Scintilla/Lexilla included: 5.5.8/5.4.6 Boost Regex included: 1_90 pugixml included: 1.15 nlohmann JSON included: 3.12.0 Path: D:\890_x64\Notepad++.exe Command Line: Admin mode: OFF Local Conf mode: ON Cloud Config: OFF Periodic Backup: OFF Placeholders: OFF Scintilla Rendering Mode: SC_TECHNOLOGY_DIRECTWRITE (1) Multi-instance Mode: monoInst asNotepad: OFF File Status Auto-Detection: cdEnabledNew (for current file/tab only) Dark Mode: OFF Display Info: primary monitor: 1920x1080, scaling 125% visible monitors count: 1 installed Display Class adapters: 0001: Description - Intel(R) Iris(R) Xe Graphics 0001: DriverVersion - 32.0.101.7084 OS Name: Windows 11 Pro (64-bit) OS Version: 25H2 OS Build: 26200.7462 Current ANSI codepage: 1252 Plugins: mimeTools (3.1) NppConverter (4.7) NppExport (0.4) ComparePlus (2.2) ColumnsPlusPlus (1.3.1) NppUISpy (1.2) MultiReplace (4.6.0.33) Marginalize (1) Search++ (0.5.5) Finally, note that this portable version of N++ is installed on an USB drive Best Regards, guy038
    • Ricardo BarrosoR

      Search & Replace help "Swap numbers in middle of code"

      Watching Ignoring Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
      10
      0 Votes
      10 Posts
      543 Views
      guy038G
      ello, @ricardo-barroso, @peterjones, @terry-r and All, An other S/R could be : FIND (?-i)RequiredItem.+, \K\d+ REPLACE 0 The search regex means : First, find a string RequiredItem, with that exact case because of the leading part (?-i) Then find any NON-zero number of chars ( .+ ) till a comma followed with a space char Now, forget anything matched so far, due to the \K syntax And just match a non-zero list of digits ( \d+ ), which come next Finally, replace that number by 0 Remark : You must do a global S/R, using the Replace All button. Due to the \K syntax a step by step replacement, with the Replace button, would not work ! Best Regards, guy038
    • donhoD

      Notepad++ release 8.9.4

      Watching Ignoring Scheduled Pinned Locked Moved Announcements
      9
      3 Votes
      9 Posts
      4k Views
      donhoD
      @xomx said in Notepad++ release 8.9.4: @donho said in Notepad++ release 8.9.4: Add NPP_LANG property to install a specific localization file for MSI. (Fix issue reported in comment ) As is correctly noted in this GitHub comment, the lang info should be stored into Registry HKLM and not into HKCU. Fixed by: https://github.com/notepad-plus-plus/notepad-plus-plus/commit/09e50bad56c493a6dfd2d034d288b5271a656d96
    • Yellow FolderzipY

      Code Folding: Don't include the closing brace in the folded text for UDL or existing language

      Watching Ignoring Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
      9
      1
      1 Votes
      9 Posts
      374 Views
      Yellow FolderzipY
      @PeterJones Ah yah, I understand now. I suppose this is a fine solution, so thank you for that. This still requires some finesse to get in front of the 1st column versus just click+dragging inside the margin, but definitely better than before. 😎
    • arnaud deretteA

      Terminal window in a N++ tab

      Watching Ignoring Scheduled Pinned Locked Moved General Discussion
      8
      0 Votes
      8 Posts
      551 Views
      PeterJonesP
      @arnaud-derette said in Terminal window in a N++ tab: i think i get it : It does not handle correctly 4K screen. That does not surprise me. Notepad++ is still not great for high-DPI environments, and it’s been taking a long time to finish some of the last-remaining high-DPI issues. And if the main app, with lots of contributors, still has issues, then it should come as no surprise that the plugins, which usually only have one developer (if they remain interested), whose skillset usually focuses on the feature that their plugin implements, rather than on the generics of all the edge cases of modern win32 coding. (At least, I know that’s true for me on my plugin(s).) I don’t have a High-DPI environment, so I don’t know and can’t test for you, but maybe the NppExec plugin handles high-DPI better than NppConsole does (whether the original, or the intermediate fork)
    • S

      PythonScript: "New Script" not shown

      Watching Ignoring Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
      15
      0 Votes
      15 Posts
      1k Views
      Alan KilbornA
      @snafu423 said: since I use the “real” portable version it all works fine And this is the key point of this entire thread!
    • Louis WindsorL

      Facilities to create PostScript hotkeys

      Watching Ignoring Scheduled Pinned Locked Moved General Discussion
      7
      0 Votes
      7 Posts
      123 Views
      PeterJonesP
      @Louis-Windsor said in Facilities to create PostScript hotkeys: @PeterJones Sorry - POSTscript was a typo. I meant PythonScript… Response to your response from the AI Your AI is wrong. Please do not rely on it anymore. I cannot argue the points with the AI, as it is not capable of thought, but I will respond to one point: ❌ There is NO WAY to assign a hotkey to a PythonScript 3.x script. I literally used hotkeys in PythonScript 3.0.24 on near daily basis. It is obviously possible, as I do it. Based on its response, I am assuming you were giving it an argumentative prompt, and/or it was prompted by my use of “nonsense” to get defensive. That is unfortunate, as it is not helping you get the information you need. I hope I can explain to you how to do it, without using the FAQ – though I will personally be followinng the steps from the FAQ. At this point, please stop feeding my responses to the AI, and getting it to argue with me. Try the steps I outline, and show all of the same screenshots I do to confirm that you are getting different results when you follow the same instructions. Without your actual results, neither I nor anyone else can help you. (And obviously, the AI just wants to encourage you to fight with me, which is not helpful for anybody.) I will reword the instructions that I already wrote in the FAQ just to help you. This is how important it is to me to help you understand how to do this. I am testing these steps PythonScript 3.0.25, and will be following my own instructions that I am typing to you while I take the screenshots. These replicate the steps in the FAQ. My assumptions are: you already have PythonScript 3.0.x installed – hopefully 3.0.25, but the interface hasn’t changed since before PythonScript 2.0, so the screenshots should still match what you have. you already have created the script, and it shows up in Plugins > Python Script > Scripts These are the instructions I am following from the FAQ: [image: 1778087603629-810bd3a1-767c-4853-8478-30ecef125868-image.png] The instructions, with screenshots: First, here is confirmation that I’m running PythonScript 3.0.25, based on a screenshot of PythonScript ABOUT box: [image: 1778091322244-15d647cb-89f8-4e83-b4dd-2c509abe64a2-image.png] please show your ABOUT box if following these instructions do not work for you This shows I have already created the ProvidedScript.py, and it is in my scripts menu, but not in the main PythonScript menu. [image: 1778086909811-07dbf7c3-354c-4b8b-b93e-b7688e02174d-image.png] please show a screenshot of your Scripts submenu if these instructions do not work for you The FAQ instructions tell me to go Plugins >Python Script > Configuration…: I follow those instructions, and confirm the menu entry exists: [image: 1778087446845-a8e1b405-8a69-4cef-bdbd-51b624feca6d-image.png] When I click that menu entry, I see the following dialog: [image: 1778087489855-55116936-786f-4600-a6d7-ac2fdd2695cc-image.png] please show a screenshot of your Python Script Configuration dialog if these instructions do not work for you The FAQ instructions tell me to pick User Scripts next. That is already selected, as shown in screenshot for step 4 The instructions tell me to select ProvidedScript.py. I click that, so it’s now got a highlight/selection bubble around it: [image: 1778087766849-5557ddbd-3de3-48e8-9431-b9f767e01bdc-image.png] The instructions tell me to “Click the left Add to add the script to the Menu items table”. In this dialog, I see two Add buttons, so in the next step, I will click the left one: here is a screenshot with that button pointed to with a big green arrow. Do not click the one with the red arrow: [image: 1778087943186-2694be83-2f6f-4e6c-b3eb-e9113cfbc38f-image.png] I follow the instructions to click the left Add button. Now the dialog has changed, to include my script in the Menu items list: [image: 1778087997650-29a0a588-c9c5-41e7-8e54-31c7ed0609f8-image.png] The instructions next say to click OK. I won’t supply another screenshot, as that button is easily findable. The FAQ instructions tell me to “Exit Notepad++ completely and restart the application”. You have to do this in order for Notepad++ to be able to assign the keyboard shortcut. If you skip this step, the remainder of my instructions will not work. So I exit and restart Notepad++ (no screenshots) The FAQ next says, “Plugins > Python Script will now list ProvidedScript”: here is a screenshot showing that is true for me: [image: 1778088286467-5cfb3078-27cc-44c4-90b3-f1dc1c8e1024-image.png] The FAQ says to use Notepad++'s shorcut mapper using Settings > Shortcut Mapper. First, here is a screenshot of the menu, which includes that entry: [image: 1778088364025-410d5795-3467-481b-b6a4-6d08e833aebf-image.png] When I click that entry, I get the following dialog: [image: 1778088387214-10554875-a304-4b81-abc1-9e9a7002447c-image.png] As the FAQ says, I next “select the Plugin commands tab”. In that dialog, I see “Plugin commands” at the top, so I click it, and see: [image: 1778088596232-888bff07-7469-4297-9f46-5d9deca66fc9-image.png] As the FAQ says, I next “Filter = ProvidedScript”. I see the Filter box in the dialog, so I type ProvidedScript there, and now see [image: 1778088644389-6bce1beb-3275-486a-8b57-0d00ecfa3d58-image.png] Cool, I can see that ProvidedScript is available to the Shortcut Mapper with PythonScript 3.0.25 at this point. Making good progress. If following these instructions is not working for you, please change the Filter to PythonScript, and then show a screenshot of your Shortcut Mapper dialog The FAQ says, “Click on ProvidedScript in the list”, so I click on it. and can see that it’s been highlighted as active: [image: 1778088775827-63578c9d-38ae-40e2-927e-68aff5198ae4-image.png] The FAQ instructs me to Modify, so I click that button, and a new dialog pops up: [image: 1778088815926-6080b175-299c-4230-97e7-fe9c855b3477-image.png] The FAQ next says, “and set the shortcut as desired”, so I pick Ctrl+Alt+Shift+P: [image: 1778088857075-86f26c35-2605-44b4-b3d2-2480faceb334-image.png] if following these instructions is not working for you, please share the screenshot here, if you made it this far The FAQ tells me that OK is next, so I click that, and it goes back to the full Shortcut Mapper dialog, which now shows that Ctrl+Alt+Shift+P is the shorcut: [image: 1778088894397-2d0f869e-5cd5-4dd7-a622-8c98429d17e1-image.png] At this point, the FAQ tells me that I can Close the dialog, so I do. To check, I look at the Plugins > PythonScript menu again, and see that it now lists the shortcut next to ProvidedScript. Cool: [image: 1778089142657-fec726a2-1e55-49a7-93ad-bef9224411a8-image.png] Finally, I do Ctrl+Alt+Shift+P, and it runs my script. This was all with PythonScript 3.0.25. But it will work with any of the recent 3.0.x versions. And, in fact, it would even work with PythonScript 2.1, because those dialogs are essentially unchanged between the versions. At this point, I have confirmed that PythonScript 3.0.25 allows me to use Notepad++'s Shortcut Mapper to set a keyboard shortcut (“hotkey”) for a script in PythonScript. Follow these instructions, and it should work for you. If you have difficulty, provide the screenshots requested. Don’t bother feeding these into the AI. It won’t help you. Just try the instructions, and if they don’t work, provide the data so we can help you figure out why it’s not working. update: Since I know the instructions work, I am guessing that you probably missed step 10 – exiting Notepad++ completely and restarting the application. Without that step, Shortcut Mapper will not see the script. Given the implications of your original post, this seems like the most likely thing to have gone wrong update 2: aside from the screenshots requested, if you have problems, make sure you also go to the Notepad++ ? menu, and share the Debug Info results, in their entirety
    • O

      Cannot open text files in Adminitrative mode from network shares in Win11

      Watching Ignoring Scheduled Pinned Locked Moved General Discussion
      7
      1
      0 Votes
      7 Posts
      408 Views
      xomxX
      @Olyfant22 There really are substantial differences in between the Win10 & Win11 in this area. I know about 2: SMB signing enforcement in 24H2+ and stricter token isolation (the later one should be solvable by that mentioned “EnableLinkedConnections”)
    • Ronald BesdanskyR

      Line number issues

      Watching Ignoring Scheduled Pinned Locked Moved Help wanted · · · – – – · · · line number
      7
      0 Votes
      7 Posts
      396 Views
      Ronald BesdanskyR
      @Ronald-Besdansky Hi Terry Deleting that plugin fixed the issue. Thanks.
    • donhoD

      Notepad++ release 8.9.3

      Watching Ignoring Scheduled Pinned Locked Moved Announcements
      12
      7 Votes
      12 Posts
      9k Views
      donhoD
      @hknet said in Notepad++ release 8.9.3: as usual with a lots of other MSIs we take to the softwareinstallation in the GPO editor, then select “new - package”, select the current npp.8.9.3.Installer.x64.msi file from our GPO deployment path, open it, then select to deploy the package in a customized version (German: Erweitert), but tried all three options in the meantime, all end with the GPO editor reporting that adding the package to the GPO went wrong because the deploymentinformation can not be read (from the package) and we should check if we got the correct softwarepackage… It’s likely that Windows has placed a “Zone.Identifier” alternate data stream on it, marking it as untrusted. If not, please check the network share where npp.8.9.3.Installer.x64.msi is stored has Read permissions for both “Domain Computers” and “Authenticated Users” (or at least your specific admin account).
    • I

      Hopefully Notepad++ can display correctly ...

      Watching Ignoring Scheduled Pinned Locked Moved General Discussion
      6
      -3 Votes
      6 Posts
      325 Views
      CoisesC
      @Samir-Sumantlal-Shah said in Hopefully Notepad++ can display correctly ...: GujaratiMT Searching suggests that “Gujarati MT” is a Apple system font that is not available elsewhere. Are you by any chance using the new MacOS port of Notepad++? That port is not maintained or endorsed by the creator of Notepad++. You would have to raise issues with it in its own repository. We’re not going have a clue here.
    • S

      autoupdater and XMLDSig

      Watching Ignoring Scheduled Pinned Locked Moved Security
      6
      0 Votes
      6 Posts
      442 Views
      S
      I will check out donho’s other project xmlSigner as suggested by @xomx and will update this thread with the results.
    • Alain SavardA

      New feature: Allow additional line on each search results

      Watching Ignoring Scheduled Pinned Locked Moved General Discussion
      5
      0 Votes
      5 Posts
      244 Views
      CoisesC
      @Alan-Kilborn said in New feature: Allow additional line on each search results: @Coises I can’t tell if you’ve considered this, but one way to do it would be in conjunction with hiding lines. You could hide lines that don’t meet the criterion of -M through +N, where M would be a user-chosen number of lines before the hit, and N a user-selected count of lines after the search match. At first thought, I believe that would be significantly easier to implement than doing it in the search results window. As a plus, it (or a close approximation) could even be available after the search with something like an “expand visible blocks” command. The downside is that Show commands only work on the current document; you can’t show in all open documents (and it wouldn’t even make sense for find in files, whenever I finally get that done). At present, my use of hidden lines (using Scintilla’s function directly) and Notepad++’s way of doing it (keeping its own internal table, inaccessible to plugins, of what ranges are hidden) are at odds with one another, which causes any changes my plugin has made to hidden lines to be lost when any other tab is switched into the view. Thus far, I have not been able to devise any solution to this.
    • U

      Very small problem

      Watching Ignoring Scheduled Pinned Locked Moved General Discussion
      5
      3
      0 Votes
      5 Posts
      199 Views
      U
      @Uwo222777 Of course, the program itself should return the encoding to its original form, but… it doesn’t do this.
    • guy038G

      Enhancement of the COLUMN EDITOR feature

      Watching Ignoring Scheduled Pinned Locked Moved General Discussion
      5
      0 Votes
      5 Posts
      285 Views
      guy038G
      Hi, @alan-kilborn and All, Of course, I could use your method to achieve my goal but that is just the reason why I wanted this enhancement which should avoid any further operation !! BTW, this idea occured to me while I was writing this other post : https://community.notepad-plus-plus.org/topic/27511/surprising-regular-expression In the meanwhile, I’ve found out a nice work-around to realize that goal ! Let’s imagine that you want to do a list of 743 empty lines exactly ( I chose that number as it’s a prime number ). Then : Open a new tab Within N++ Hit the Enter key just once Open the Replace dialog ( Ctrl + H ) Uncheck all box options Check the Wrap around option ONLY Select the Regular expression search mode FIND \R REPLACE $0$0 Click 10 times on the Replace All button => You should get a total of 1,025 lines ( Note that, after each replacement N, the number of lines increases to the value 2 × N + 1 ) The trick is to repeat the process up to the first number which is greater than 743 ! Now, open the Search > Go to... option ( Ctrl + G ) Search for the line 744 ( so 743 + 1 ) Then, select to the very end of file with the Ctrl + Shift + End shortcut And finally, hit the Delete key => It should remain the expected 743 lines ! I readily admit that all the different tasks of my work-around do not take long. However, I still think that a new field Total insertion number, in the Column Editor dialog, filled with the value 743, would have been more elegant and straightforward ! Best Regards, guy038
    • C

      Libcurl in update is version 8.15.0, which is flagged with CVE-2025-14819 / CVE-2025-14017, but the GUP uses version 8.19.0?

      Watching Ignoring Scheduled Pinned Locked Moved Security
      5
      0 Votes
      5 Posts
      458 Views
      donhoD
      @xomx Thank you for pinging! https://github.com/notepad-plus-plus/notepad-plus-plus/commit/2c1abe0784543e78dbba0f259b0948cf3a08b8cb
    • Barry RodgersB

      Unable To Save To OneDrive Folder

      Watching Ignoring Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
      5
      0 Votes
      5 Posts
      310 Views
      mathlete2M
      I also find that OneDrive folders aren’t always turned on when you first log in/start up; that’s why I preferred using network drives over OneDrive. When you first open a OneDrive folder in File Explorer, there should be a button somewhere that toggles the drive.
    • pbarneyP

      Virtual Key Codes Update

      Watching Ignoring Scheduled Pinned Locked Moved General Discussion
      4
      1 Votes
      4 Posts
      300 Views
      pbarneyP
      @PeterJones Thanks for the quick update to the manual! Maintaining technical documentation across versions is a major undertaking when there’s an integrated development team within major corporations; I can’t imagine how herculean that job must be when you’re not side-by-side with a lone developer, so thank you for the excellent work on it. I really do appreciate your speedy response and update. I tried to post the second part of my list yesterday, but I was delayed by the “time between posts” counter, and unfortunately had to leave before it reset. However, you might want to double check your list against the FAQ, to let us know if the FAQ is missing any. I’ll go ahead and do that. Thanks again!
    • Giuseppe Aiosa 0G

      View only searched lines

      Watching Ignoring Scheduled Pinned Locked Moved General Discussion
      4
      0 Votes
      4 Posts
      277 Views
      CoisesC
      @Giuseppe-Aiosa-0 said in View only searched lines: is there any function or existing plugin to view/extract only those line which match the tezt search? If you like to experiment, I am working on a plugin for search which includes a Show command that hides all lines and then shows just the ones with matches. It’s still a work in progress, but everyone is welcome to try it and offer bug reports, suggestions and complaints. See this thread for ongoing discussion; go here to find the latest version.
    • ModelsRUsM

      missing config.xml file?

      Watching Ignoring Scheduled Pinned Locked Moved General Discussion
      3
      0 Votes
      3 Posts
      134 Views
      ModelsRUsM
      Thank you Peter. Makes perfect sense. Much appreciated!