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
      156
      6 Votes
      156 Posts
      49k Views
      guy038G
      Hello, @coises, Preamble : What prompted me to suggest another solution is that you seemed really frustrated with how your plugin works, since you said, among other things : What bothers me is that before you click the button, it’s not obvious what the current default scope will be and also : I don’t like any of my ideas. (For that matter, I don’t like my scope and extent icons, either. The arrows are OK, but as for the rest, I tried everything I could come up with and I still think they’re obscure, confusing, ugly and hard to read.) Even though I’ve been using Notepad++ for at least 15 years, I’m just a former retired technician with some knowledge of Unix and Microsoft QBasic. So, if I took the liberty of suggesting another solution, it was solely because of your own dissatisfaction ! Otherwise, I wouldn’t have written this post, since you’re surely better equipped to figure out how to improve your Search++ plugin ! That said, I’ll try to address some of your points. You said : Dialogs are even more of an interruption than menus. It would also defeat the purpose of a docking dialog Now that I think about it, I actually agree with you ! And, indeed, I forgot to consider the Docking dialog ! Now, regarding the mandatory buttons in this new dialog, we could, of course, add a Define and Run button. Then, any of the four buttons Define, Run, Define and Run and Cancel would close that new dialog and run the chosen action if you have clicked on the Run or on the Define and Run button Anyway, as you said, menus seem preferable. However, I still think that a layout with the six buttons Find, Count, Find All, Select, Mark and Show could be easier to use ( Personally, I’m ready to test a forked version, if you think it’s worth it ) This would simplify the number of menus : The Find, Count, and Replace All menus would stay unchanged I would suppress the last Do not jump to next match option, in the Replace menu as well as its sub-menu. To my mind, it’s rather a global way of searching which can be previously chosen in the Tools dialog with the Jump to next match after Replace option ( Ctrl + J ) Thus, a click on the Replace button would just show this menu : ------------------------------------------- Replace Replace backward ------------------------------------------- Replace in Selection Replace in Marked Text Replace in Whole Document ------------------------------------------- Replace Backward in Selection Replace Backward in Marked Text Replace Backward in Whole Documen ------------------------------------------- A click on the new Find All button would only show this menu : ------------------------------------------- Find All Find All in Open Documents Find All in Documents in this View ------------------------------------------- Find All in Selection ------------------------------------------- Find All in Marked Text Find All Before in Marked Text Find All After in Marked Text Find All in Marked Text in Open Documents Find All in Marked Text in this View ------------------------------------------- Find All in Whole Document Find All Before in Whole Document Find All After in Whole Document ------------------------------------------- A click on the Mark button would show this menu : ------------------------------------------- Mark Mark in Open Documents Mark in Documents in this View ------------------------------------------- Mark in Selection ------------------------------------------- Mark in Marked Text Mark Before in Marked Text Mark After in Marked Text Mark in Marked Text in Open Documents Mark in Marked Text in this View ------------------------------------------- Mark in Whole Document Mark Before in Whole Document Mark After in Whole Document ------------------------------------------- A click on the Select button would show this menu : ------------------------------------------- Select ------------------------------------------- Select in Selection ------------------------------------------- Select in Marked text Select Before in Marked text Select After in Marked text ------------------------------------------- Select in Whole Document Select Before in Whole Document Select After in Whole Document ------------------------------------------- A click on the Show button would show this menu : ------------------------------------------- Show ------------------------------------------- Show in Selection ------------------------------------------- Show in Marked Text Show Before in Marked Text Show After in Marked Text ------------------------------------------- Show in Whole Document Show Before in Whole Document Show After in Whole Document ------------------------------------------- You said, at the end of your post : Additionally, in the Settings dialog you can uncheck Default commands automatically search within selections. and Default commands automatically search within marked text. to disable the adaptive mechanism, so that default scope is always Whole Document and even if you select a plain command (Find, Count, etc.) Search++ will never infer anything other than Whole Document. But, even though I unckecked, both, the Default commands automatically search within selections and the Default commands automatically search within marked text options and valid the new settings with the OK button, after selected some text containing ONLY one occurrence of the search, the Count in Selection still give 1 match only and not the totality of the matches of the current file Then, using the Add Selection to Marked Text option to mark all the selection raange ( Ctrl + M ), again, the Count in Marked Text returns 1 match, instead of the totality of the matches. Is this expected or a bug as the scope should be Whole Document ? Best Regards, guy038
    • donhoD

      New built-in Plugin Admin (Plugin Manager) is ready

      Watching Ignoring Scheduled Pinned Locked Moved Notepad++ & Plugin Development
      117
      5 Votes
      117 Posts
      197k Views
      Peter McLeanP
      More news. After getting 24 32-bit Plug-ins working on Windows 7, I renamed the Program Files>Notepad++ folder on XP to “Notepad++ Org”, copied the whole Program Files>Notepad++ folder tree structure to XP from my Windows 7 box, and got 21 of the 24 Plug-ins to work on XP. The only problem is now, that I do not have a “Plug-in Manager” or “Plug-in Admin” that works on XP with Notepad++ V7.6.4. I can technically only install “Plug-in Manager” on XP, whereas I cannot even install “Plug-in Admin” on XP. However even if I install “Plug-in Manager”, “Plug-in Manager” cannot manager the Plug-ins running under Notepad++ V7.6.4, since V7.6.4 uses a different installation configuration. So my option now is to install the 32-bit Plug-ins on the Windows 7 box and then copy same to the XP box, and if they work then great, if not then bad luck hey? All you have to do, if the 32-bit Plug-ins do not work on XP, is to answer yes when asked if you wish to remove for compatibility reasons, or delete the incompatible Plug-in name folder under the Program Files/notepad++\plugins folder, e.g. C:\Program Files\Notepad++\plugins\csvquery to remove the 32-bit “csvquery” Plug-in. I hope that what I have learned is of some help to someone. Cheers from Aussie mate and happy Notepad++ing hey? :-)
    • wisemike2W

      Fix corrupted txt file (NULL)

      Watching Ignoring Scheduled Pinned Locked Moved Help wanted · · · – – – · · · corrupted fix text null file
      116
      2 Votes
      116 Posts
      258k Views
      Mark OlsonM
      @Alexander-Vorobyov It will be easier for others on the forum to help you if you share debug info (?->Debug Info from the Notepad++ main menu). I seem to recall that the specific problem of Notepad++ overwriting files with a lot of NUL characters was fixed a long time ago, but I’m not super familiar with this topic.
    • Gilles MaisonneuveG

      Perl language syntax highlighting troubles (bug or limitation ?)

      Watching Ignoring Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
      112
      2 Votes
      112 Posts
      144k Views
      PeterJonesP
      For those being directed here by other links from the forum, @Ekopalypse has a newer version available at his github, here.
    • Paweł SzmajdaP

      It's time for UI update!

      Watching Ignoring Scheduled Pinned Locked Moved General Discussion dark interface modern windows10
      101
      17 Votes
      101 Posts
      297k Views
      PeterJonesP
      @bombitup , The contents of your “That said” paragraph were nearly identical to the quoted text from 2015. And those claims haven’t been true for years, because when Notepad++ v8.0 came out in 2021, the whole GUI – not just the editor panels – were given the ability to Dark Theme Your post sounds like something that would be said if you posted the original 2015 post as a prompt into an older generative AI and asked it to reply to that post. Just so you know, posts created by generative AI are not allowed in this forum – it’s a Community of Users of Notepad++, and, by definition, generative AI are not users of Notepad++. Any further posts like this, and you will be banned. The Sep 2024 revival post sounded like generative drivel (and, like yours, rephrased the original 2015 complaint); your post was slightly better generative drivel (it at least wrapped it in mindless wrapper paragraphs), but it was still junk. Getting posts every few years that try to “reply to” or “reword” the original, outdated post add nothing to the forum. Since this Topic has become a “honeypot” for AI nonsense, and since all the original points from 2015 have been addressed over the last decade of improvements, I am locking the discussion. Admin update: that individual has been banned for spam posts, in addition to the AI nonsense posts. Sorry for their waste of bandwidth.
    • donhoD

      Notepad++ 7.6 & new Plugins Admin

      Watching Ignoring Scheduled Pinned Locked Moved Announcements
      94
      2 Votes
      94 Posts
      202k Views
      senselockeS
      I found a fix, at least for my PC. On a Win7x64 system using 32-bit N++, I had the same problem with every post-7.6 version I had installed. None of them ever had the Plugins install correctly. I got it working, finally, with 7.8.9, but it’s likely the same issue as prior versions. I’m replying to this because it seems to have the most information/discussion. The problem was that the GUP.exe file in the notepad++/updater/ folder wasn’t ever starting. I watched my Task Manager and checked windows error logs… it never started. So I had a hunch, anc ran the GUP.exe program directly, and Windows popped up its UAC nag window ('Open File - Security Warning). I unchecked “Always ask before opening this file” to clear it with the UAC, clicked ‘Run’, and it showed the standard Notepad++ Available Update message. I clicked ‘no’. I then re-opened Notepad++, used the Plugins Admin to install a plugin, and it WORKED. Hopefully this will help others with the same problem, which was (for clarity) that selecting to install a plugin through the ‘Plugins Admin’, click ‘Yes’ to restart, and NPP closes but never re-opens on its own. When opened manually, nothing was installed.
    • donhoD

      You've a lot of reasons to hate Notepad++

      Watching Ignoring Scheduled Pinned Locked Moved Boycott Notepad++
      92
      5 Votes
      92 Posts
      185k Views
      F
      作者的大黑几把干的我豪爽。啊啊啊啊啊要去了。
    • Bas de ReuverB

      [New Plugin] CSV Lint

      Watching Ignoring Scheduled Pinned Locked Moved Notepad++ & Plugin Development
      83
      1
      6 Votes
      83 Posts
      169k Views
      A
      I had sent a comment before this one which is not yet visible to me. Just wanted to let you know it seems solved. Other plugins struggled as well so I completely uninstalled npp and started from scratch. Now it works for me as a normal user.
    • C

      survey: Incremental search usefulness

      Watching Ignoring Scheduled Pinned Locked Moved General Discussion
      82
      1 Votes
      82 Posts
      74k Views
      William4565W
      @PeterJones sure.
    • Lycan ThropeL

      FunctionList Confused

      Watching Ignoring Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
      82
      1
      0 Votes
      82 Posts
      140k Views
      Lycan ThropeL
      @guy038 , Thank you. Now, I will have to look at your code, but while I was signed out, I had another one of those epiphany things. :-) Figured it out with the reduced complexity by allowing everything after the this and stopping before the \) with the lookahead, by using this regex: \Kthis\.\K(.+)(?=\)) By doing this I was able to remove the longer more complex one that only went 3 levels deep, and reducing my or construct by one or level. This is what I can get now: [image: 1641951576189-flobjectlistsuccess2.png] I think I have a problem with overthinking things. :-) I was looking for the one you showed up there, and I might still be able to use it, somewhere else, so thanks. Lee
    • Thomas KnoefelT

      [New Plugin] MultiReplace

      Watching Ignoring Scheduled Pinned Locked Moved Notepad++ & Plugin Development
      81
      3 Votes
      81 Posts
      85k Views
      Thomas KnoefelT
      MultiReplace 6.1 is out and will land in Plugin Admin with the next Notepad++ release. The focus of this release is Replace All in One Pass, running the whole list in a single left-to-right sweep instead of one full pass per entry, together with a reworked Find/Replace in Files and a handful of list and UI improvements. Several new options live under Plugins > MultiReplace > Settings. Download: Latest build Key Features & Improvements Replace All in One Pass: Runs the whole list in a single pass instead of one full Replace All per entry, so results build on each other left to right. With cat → dog and dog → cat, sequential mode turns “cat dog” into “cat cat”, one pass turns it into “dog cat”. Much faster on large documents. Toggle per tab, right-click the list tab. Use Open Documents: Find/Replace in Files can now work on files already open in Notepad++ as the live document, unsaved changes included, instead of the copy on disk. New checkbox in Settings. Skip Binary Files: New option for Find/Replace in Files (on by default), same detection as ripgrep and VS Code. Also adds UTF-16 detection without a BOM, and skipped files are always reported, broken down by reason. CSV Header Rows: Find/Replace now always searches header rows too. “Header rows to exclude” only protects sorting and duplicate detection. Collapse to File List: New Search Results dock option folding every search block down to just file names and hit counts. Ctrl/Shift-click works in the fold margin, same as Notepad++'s own Search Results panel. Library Mode: “Keep list always visible” can now be switched right from the Use List button’s context menu, no detour through Settings. Add New Row: Takes over the dialog’s current search options instead of starting all off. Find/Replace text still starts empty. Duplicate Row Reporting: A list row that exactly duplicates an earlier enabled one is skipped as before, but the status line now tells you how many rows were skipped. [image: 1789296944806-e15a9d23-6db6-4411-a694-d44fc95300e5-image.jpeg] Issues or suggestions: GitHub. Happy replacing!
    • donhoD

      Notepad++ 7.6.1

      Watching Ignoring Scheduled Pinned Locked Moved Announcements
      80
      6 Votes
      80 Posts
      135k Views
      Jan ČernostaJ
      @Jan-Černosta Any progress in choosing proper codepage ANSI? Thanks, Jan
    • donhoD

      New Plugins Home (where Notepad++ will load from)

      Watching Ignoring Scheduled Pinned Locked Moved Notepad++ & Plugin Development
      79
      7 Votes
      79 Posts
      169k Views
      donhoD
      This thread is locked. Please check here for the renewed information: https://notepad-plus-plus.org/community/topic/16996/new-plugins-home-round-2
    • donhoD

      Notepad++ v7.9.2 Released

      Watching Ignoring Scheduled Pinned Locked Moved Announcements
      78
      4 Votes
      78 Posts
      78k Views
      Alan KilbornA
      @damianos133eu See HERE.
    • donhoD

      Support for Plugins Admin & NppPluginList

      Watching Ignoring Scheduled Pinned Locked Moved Notepad++ & Plugin Development
      75
      1 Votes
      75 Posts
      157k Views
      ThosRTannerT
      I’ve been footling around with my plugin a bit to try and generate a PR automatically when a new version is released. So - is the layout of the json files significant. Most of the entries look like \t\t\t{ \t\t\t"folder-name": "Linter++", \t\t\t"display-name": "Linter++", \t\t\t"version": "1.0.3.0", \t\t\t"npp-compatible-versions": "[8.7.5,]", \t\t\t"id": "F56573351010B62BFC75039725496C8687D53E82A3F47074F1F1B629A37A92C1", \t\t\t"repository": "https://github.com/ThosRTanner/notepad-pp-linter/releases/download/1.0.3/plugin_dll_ARM64.zip", \t\t\t"description": "Allows realtime code check against any checkstyle-compatible linter: jshint, eslint, jscs, phpcs, csslint, and many others.", \t\t\t"author": "Tom Tanner", \t\t\t"homepage": "https://github.com/thosrtanner/notepad-pp-linter" \t\t\t}, So I thought i could do my updater in python, just load up the json file, modify my entry, and dump it back, then commit One entry (just one) uses spaces instead of tabs. So my question is is there an official layout for these files? Is any valid json permissible (all on one line for instance), or is it expected to be formatted as 1 line per key and indented with tabs? Would converting those spaces to tabs as part of my PR be frowned upon, or should I just read the file and modify the lines appropriately?
    • P

      sort file removing duplicates possible?

      Watching Ignoring Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
      75
      0 Votes
      75 Posts
      99k Views
      Vasile CarausV
      ^([A-Z])([a-z]+)\R(?i:\1)\2$
    • EkopalypseE

      Little Dialog-wrapper for PythonScript

      Watching Ignoring Scheduled Pinned Locked Moved Notepad++ & Plugin Development
      74
      3 Votes
      74 Posts
      76k Views
      PeterJonesP
      @Bruno-Bonaspetti , Have a little patience. You already asked that question yesterday here. This is not paid support that is guaranteed to get a reply in 5 minutes or your money back; this is a Community of fellow users of Notepad++, and as such, any who read here regularly and answer questions do so solely on their free time, and they might not always have time to answer a specific question – especially one that might take more knowledge of a specific sub-tool of Notepad++. Furthermore, this topic, “Little Dialog-wrapper for PythonScript” is focused on the Dialog Wrapper library for the PythonScript plugin; it briefly mentioned a script that was using that wrapper to help with the user interface, but the translation is not the focus of this discussion. Your original question was in the right place. This question was not. I will try to give a brief answer in the other topic.
    • Bas de ReuverB

      [c#] Adding a custom styler or lexer in C# for scintilla/notepad++

      Watching Ignoring Scheduled Pinned Locked Moved Notepad++ & Plugin Development
      70
      0 Votes
      70 Posts
      80k Views
      Bas de ReuverB
      @Ekopalypse thanks for the answer. 🤔 Adding listeners for the BufferActivated event and manually setting the style each time the user switches to a different tab adds a lot of code and possibilities for bugs, for something that the user typically only does once… Honestly I think I’ll undo the new code and go back to just asking the user to restart Notepad++ after they change the default color set.
    • CoisesC

      [New plugin] Columns++

      Watching Ignoring Scheduled Pinned Locked Moved Notepad++ & Plugin Development
      69
      9 Votes
      69 Posts
      80k Views
      Pete RunP
      @Coises said in [New plugin] Columns++: @Pete-Run said in [New plugin] Columns++: So my request would be an option to “Elastically Ignore” lines with no tabs. Columns++ | Profile… | Do not allow text following the last tab on a line to span columns. should not be checked for the example given. AhHa, I am not sure that I understand “Do not allow text following the last tab on a line to span columns” but that works niceley, thanks. I still don’t quite understand your use case. What is it you are trying to do that would be easier if elastic tabstop positions were shown only for selected lines? I only occasionally use NPP for NPP shortcuts.xml, some Lua, AHK etc. I was brought up on IBM mainframe early Text editors and JCL etc, so I am at home with text editors so am happy to use it for text manipulation, especially when Ms Word macros are lacking. My main gripe with tabs in textual situations is that they can “mess up/misalign” when copied between applications, hence my desire to sometimes use monospace fonts with spaces rather than tabs and of course in tables a word processor, but many situations do not afford tables. So, thanks again for your Columns++ and Elastic Tabs which helps keep my text aligned in different scenarios.
    • donhoD

      Notepad++ v6.9.2 released

      Watching Ignoring Scheduled Pinned Locked Moved Announcements
      68
      0 Votes
      68 Posts
      212k Views
      Faust JonsonF
      hi everi one