• Notepad++ 8.8.9 release candidate

    Pinned Announcements
    9
    1 Votes
    9 Posts
    213 Views
    donhoD

    @Murray-Sobol-1
    Sorry for the inconvenience.
    Could you show me the content of folder plugins?
    Also, could you provide the config.xml, stylers.xml & langs.xml in %APPDATA%\Notepad++\ ?

  • v8.8.9 and ConfigUpdater plugin

    Notepad++ & Plugin Development
    6
    0 Votes
    6 Posts
    61 Views
    Snabel42S

    @donho said in v8.8.9 and ConfigUpdater plugin:

    @PeterJones

    It’s already fixed in the GitHub, but I didn’t make the plugin list cutoff deadline.

    Are you talking about it?
    https://github.com/notepad-plus-plus/nppPluginList/pull/999

    It’s in the current PluginList in RC normally.

    I ran:

    Plugins > ConfigUpdater > Reset Validators Plugins > ConfigUpdater > Update Config Files

    The open tab with ConfigUpdater.log no longer shows any errors

  • 0 Votes
    4 Posts
    54 Views
    xomxX

    @KingRustamus

    I’ve encountered such stuff before and it was caused by the Windows ransomware protection “Controlled folder access” in action. (build in Notepad.exe works in such a case because all the Microsoft own signed binaries have a build-in exception).

    So check (try to set temporary off or add a new Notepad++.exe exception there) the Windows Settings > Privacy & Security > Windows Security > Virus & threat protection > Ransomware protection > Controlled folder access.

    If it doesn’t help, I can prepare a testing build of the notepad++.exe binary showing us exact system error code (and it’s not the ERROR_ACCESS_DENIED for sure, otherwise in the v8.8.6+ you saw the UAC-elevation prompt 1st) leading to this SaveFailed N++ messagebox.

  • 0 Votes
    11 Posts
    287 Views
    CoisesC

    @fml2 said in Set current directory to default if no real file is open:

    I’ve created two feature requests: one in Notepad++ and another in the Python Script plugin (and cross referenced them), since I don’t know where this feature would be better impemented.

    https://github.com/notepad-plus-plus/notepad-plus-plus/issues/17246 https://github.com/bruderstein/PythonScript/issues/401

    I commented to your Notepad++ issue with a UI/design suggestion; hopefully no one will mind me repeating it here.

    What would you and others think of this idea?

    At Settings | Preferences… | Default Directory, indented beneath the bottom radio button (where you can specify a default directory), add a checkbox labeled Apply only to Open/Save on new tabs; otherwise follow current document.

    The behavior when that box is checked would be as follows:

    When the active tab already has a file on disk associated with it, behavior is the same as Follow current document: Open…, Save As… and Save a Copy As… open a file dialog in the directory that contains the file, and Save just saves the file in place.

    When the active tab is new — does not have a file on disk associated with it — Open… and Save open a file dialog in the designated default directory. Save As… and Save a Copy As… behave as Follow current document does now: they open a file dialog in the directory corresponding to the most recently active tab that was associated with a file on disk.

    That way you can still save new files in the directory in which you are already working by using Save As…, or in the default directory by using Save. Opening a file when the active tab has a file on disk would start the open dialog in the same directory, while opening the first file in a session would go to the default directory without the need to modify the Start In property of the Notepad++ shortcut.

  • 0 Votes
    2 Posts
    37 Views
    PeterJonesP

    @Sinsearach ,

    Just updated after quite a long while,

    So that means it wasn’t just v8.8.8 that you had the problem with. Please only use the “Notepad++ x.y.z release” announcement topics for changes between immediately-previous version and this version. For example, that v8.8.8 topic should only mention regressions that changed behavior between v8.8.7 and v8.8.8. Any other problems you find when you jump from v8.1.5 (for example) to v8.8.8 should go in “help wanted” (where I put this duplicate discussion), and if can be confirmed as a bug in Notepad++, we will direct you on where to put in the official bug report. But it’s not an immediate regression with v8.8.8, so doesn’t belong in that discussion.

    TextFX (NppTextFX2) plugin

    mumble mumble… I wish the person who had done the conversion to make it compatible with N++ v8+ had renamed the menu and About box, not just the underlying DLL. (Not your fault, I know… but if someone accidentally just calls it TextFX, we are led to believe it’s the out-of-date incompatible plugin. So thanks for at least putting the real name in parentheses.)

    plugin will not work (appear at all), whether installed manually or through plugin admin,

    Weird. I just took portable v8.8.8 on my Windows 11 machine, and used Plugins Admin to install NppTextFX2 1.4.1, and it installed just fine. When N++ restarted, the TextFX menu was there, and I tried a couple random commands, and they did what was expected.

    I would be very much surprised if this were a Windows 10-vs-11 thing, because NppTextFX2 hasn’t changed recently, and N++ itself is tested on both Win10 and Win11…

    Yes I ran as admin.

    when did you run as admin? when you installed the plugin? or when you tried to run the plugin? or both? Because if you’ve got a portable Notepad++, it should be in a directory where you have full write access… and you shouldn’t need to Run as Admin (in fact, since v8.8.6, you probably shouldn’t need to Run As Admin for just about anything; it will individually ask for permission when writing files in protected directories). But if you installed it as Admin, maybe it broke the permissions of your portable directory

    In your portable 64-bit (you shouldn’t need to use 32-bit in modern OS): please do the following:

    go to ?-menu, and share your Debug Info with us show us a recursive directory listing of your portable Plugins directory, so that we can see that the directory hierarchy is correct (dir /S from a cmd.exe prompt, or powershell equivalent)
  • Notepad++ 8.8.8 release

    Pinned Announcements
    21
    1 Votes
    21 Posts
    6k Views
    PeterJonesP

    @Sinsearach said in Notepad++ 8.8.8 release:

    Just updated after quite a long while, and on Windows 10, TextFX (NppTextFX2) plugin will not work …

    It might be that it was caused specifically by Notepad++ v8.8.8… but more likely, it’s a setup issue on your side, or a bug in the plugin as it relates to your setup and v8.8.8.

    But there needs to be some debug work, so I will duplicate your post to a separate Topic in Help Wanted (I will crosslink this post to there in a few minutes: new post here), and the discussion can happen there, until we can prove whether it’s really a bug/regression in v8.8.8, or whether it’s just something that should be handled by fixing something on your side, or by fixing something in the plugin itself.

    Update: Wait, you said “after quite a long while”, so that means it wasn’t just v8.8.8 that you had the problem with. Please only use the “Notepad++ x.y.z release” announcement topics for changes between immediately-previous version and this version. For example, this v8.8.8 topic should only mention regressions that changed behavior between v8.8.7 and v8.8.8. Any other problems you find when you jump from v8.1.5 (for example) to v8.8.8 should go in “help wanted”, and if can be confirmed as a bug in Notepad++, we will direct you on where to put in the official bug report. But it’s not an immediate regression with v8.8.8, so doesn’t belong in this discussion.

  • 0 Votes
    2 Posts
    22 Views
    PeterJonesP

    @Arp-Rip said in How to copy and paste large line ?:

    I want to copy and paste from line 234566 to 6573242.

    Due to it is pretty large line, I can not push the mouse left key and pull.

    What kind of effective method that I can do this ?

    Ctrl+G then 234566 to go to first line, and place the caret wherever you want to start on that line Edit > Begin/End Select (or keyboard shortcut equivalent) Ctrl+G then 6573242 to go to final line, and place the caret wherever you want to end the selection on that line Edit > Begin/End Select (or keyboard shortcut equivalent) Everything between the Begin and End will be selected
  • 1 Votes
    10 Posts
    1k Views
    PeterJonesP

    I think what is really needed, are 2 new keyboard shortcuts to:
    (a) move to/from 1st and last tab

    View > Tab > 1st Tab already has a default shortcut of Ctrl + Numpad1 View > Tab > Last Tab doesn’t have a default shortcut, but Shortcut Mapper can assign one quite easily (Settings > Shortcut Mapper > Main menu, Filter = last, click on Last Tab and Modify to set to whatever keyboard shortcut you would prefer) Notepad++ has hundreds of menu commands (a thousand? probably pretty close). They cannot all come with default keyboard shortcuts, and the user is expected and encouraged to customize the shortcuts to match their individual needs.

    (b) move to/from previously selected tab.

    If Settings > Preferences > MISC page’s Document Switcher section has both ☑ Enable and ☑ Enable MRU behavior turned on, that’s exactly what Ctrl+TAB does. If you don’t hold down the Ctrl, it just toggles between the current tab and the previously-used tab. And if you hold down the Ctrl, it allows you to navigate through in order from most recent (top of list) to least recent (bottom of list).

    So all three features you mentioned already exist, and 2 out of the 3 have default keyboard shortcuts already defined. So to get everything you want, you just have to use the Shortcut Mapper to assign a key to the Last Tab command (which might naturally go to Ctrl + Numpad0, to align with the the Ctrl + Numpad1 for the 1st Tab).

    Useful References Document Switcher feature: https://npp-user-manual.org/docs/user-interface/#document-switcher Document Switcher preferences: https://npp-user-manual.org/docs/preferences/#misc
  • -2 Votes
    5 Posts
    147 Views
    PeterJonesP

    @Todd-Marshall ,

    Some comments, based on your two most recent posts:

    We had no way to know how exactly you used the AI – it could have been either of the following: you prompted it to “take a common problem found in Notepad++ and propose a solution” This version was why I suggested it might have been hallucination Since you didn’t say earlier, I had no way to know this wasn’t what had happened. you prompted it with "brace matching is not working for me in Notepad++, with details X, Y, Z. could you re-write this as a “proposal for improvement” This version was why I suggested that it was bad data fed into the prompt (ie, that you were wrong) This turned out to be closer to the truth, as you described. Both in regards to what you actually asked the AI to do, and with regard to the fact that you were wrong or incomplete in your description to the AI This was a lot of extra effort on your part. Instead of explaining to the AI what you wanted to say, and then have it re-write your text in its own words, you could have just explained it to us in your own words. And it would have been better, because it wouldn’t have introduced the AI-garbage uncertainty. And you wouldn’t have been violating the forums rules for posting. So it would have been better all around. Your posts don’t even match the AI text you posted. In your two most-recent posts, you claim you suggested Ctrl+D, but your AI text actually suggested Ctrl+] … that’s two different keystrokes. So by going through the AI intermediary, you didn’t even know what you posted. Re: Documentation: I have no idea what you mean by “mired in COIK” As the primary maintainer of the Notepad++ documentation, if you have concrete examples of how the Online User Manual is “poorly organized”, feel free to create an issue in the user manual repo with concrete descriptions… but understand that the basic structure is pretty set-in-stone at this point. But if you really meant, “I have been burned by other documentation before, so I don’t bother reading any documentation”, the onus is still on you to give each new application’s documentation a chance before rejecting it out-of-hand. I really don’t care about how good or bad the documentation for a major corporation’s huge flagship product is, and you basing your decision on whether or not to read any documentation based on a bad experience with a huge, gigantic application like that is rather unfair of you to any other documentation Re: the root cause being mismatched braces: you cannot really expect a feature that says “go to matching brace” to work as you described you wanted when the braces aren’t matching. And, in fact, the way that Notepad++ does work helps to indicate that the braces are mismatched, now that you know what that symptom means.

    To sum up: don’t post AI-generated content in a Community of human Users of Notepad++; it’s not allowed, and it didn’t work well for you when you did.

  • THE game of the summer !

    Blogs
    2
    3 Votes
    2 Posts
    6k Views
    Tomas VirginT

    Talking about “the game of the summer,” it’s always interesting to see how different communities interpret “fun” — for some that’s about building an in‑game world, for others it’s just kicking back and enjoying downtime.

  • autoupdater and connection temp.sh

    Security
    12
    0 Votes
    12 Posts
    4k Views
    donhoD

    @SammyBolt said in autoupdater and connection temp.sh:

    Regarding the WinGup fix in v8.8.8, Was the temp.sh (or similar) exfiltration vector reported in v8.8.4 possible on a clean, official installation of Notepad++?

    The temporary fix prevents the hijacking attempts that redirect to the domain other than github.com. However, it cannot protect against malware that is hosted on github.com.

    The full fix will be included in the upcoming version, as mentioned below.

    You mentioned the fix landed in v8.8.8, but can you confirm if this vulnerability was introduced specifically in v8.8.4 (due to changes in the updater), or were versions prior to 8.8.4 (like 8.8.2/8.8.3) also susceptible to this specific gup.exe hijacking technique? What about 8.8.5-8.8.7?

    We still cannot determine the exact method used by the attacker. But it is not a case of “a vulnerability introduced in version X”.

    For users currently running v8.8.4 who want to verify they haven’t been impacted before updating: Aside from monitoring network traffic for temp.sh, are there specific things we can check for, like modifications to the update xml file or other modified files/logs in the program directory?

    I do not have complete information to provide specific advice. However, here’s an article from a security expert who appears to have investigated this issue:
    https://doublepulsar.com/small-numbers-of-notepad-users-reporting-security-woes-371d7a3fd2d9

    My suggestion is download & install v8.8.8 manually from the official website.
    The upcoming release v8.8.9 will be available in a few days. In this release the code signing certificates will be verified on the downloaded binary before update installation.
    Then please update to v8.8.9, in which the vulnerability is fully addressed.

  • Display in NPP

    Help wanted · · · – – – · · ·
    23
    1 Votes
    23 Posts
    4k Views
    mtnessM

    @mpheath
    Thank you very much, adding these lines to the startup.py did indeed solve the problem og not correctly highlighted brackets with modern css selectors!

  • Find / Replace All Behavior Change

    General Discussion
    10
    0 Votes
    10 Posts
    114 Views
    PeterJonesP

    @Matt-Brown said in Find / Replace All Behavior Change:

    @PeterJones Thank you! Probably my own bone-headed oversight. I know it updated recently and afterwards I noticed the behavior…I’ve never intentionally touched the “wrap around” checkbox. It was unchecked. I appreciate the explanation.

    That happens. Glad you figured it out.

    (I deleted my intervening post, which was made before your post got approved in the post queue)

  • 0 Votes
    4 Posts
    155 Views
    It'sAWonderfulLifeI

    @PeterJones

    Thanks for pointing me to that Github issue. I somewhat researched the topic (using VS code/Electron) repos and added a suggestion there.

    The issue, I think, is that instead of using a dedicated shell API, Notepad++ tries to manually launch an Explorer process.

  • 0 Votes
    8 Posts
    244 Views
    Salam EliasS

    @PeterJones Thanks for your efforts, yes, I think that was the issue.

  • 0 Votes
    9 Posts
    2k Views
    PeterJonesP

    @luk3Z ,

    You could share it in the centralized NppThemes Collection at https://github.com/notepad-plus-plus/nppThemes/ , which makes it easier for people to look through available themes (and with the CollectionInterface plugin being able to directly access that Collection, the plugin can simplify their installation process)

  • Can NotePad++ edit these files ?

    General Discussion
    3
    0 Votes
    3 Posts
    63 Views
    CoisesC

    @ioc2e3:

    I’m fairly sure the only one of those you can edit in Notepad++ is json.

    You’ll have to look up the rest yourself. In some cases there might be more than one way the same file extension is used, so you’ll have to figure out which program wrote the files. (For example, .aff can be a file used as part of a spell-checking dictionary or an Advanced Forensic Format file.)

    Even for JSON, you usually shouldn’t just edit a JSON file in Notepad++ unless you know what you are doing. JSON files are highly structured and any given JSON file is normally maintained by a specific program or set of programs for specific purposes. Usually there is a correct way to change the data stored there through a user interface provided by the application, rather than diving in yourself.

    It might seem like a pain in the butt, but you need to work out which programs created each of the files that concern you and research those programs to figure out how to examine and/or change these files. If Notepad++ can open them at all, it will probably give you nothing but the ability to mess them up.

  • 0 Votes
    4 Posts
    87 Views
    PeterJonesP

    @James-Burke-0 ,

    Also, please don’t waste our time by asking the same question repeatedly in different ways. I told you this in early November, in this post, where I said, “instead of providing you a Save button…”, and went on to explain the same thing.

    It’s very annoying to go to all the trouble of giving a detailed answer, and then to get proof that the answer is completely ignored by the person who asked.

  • Notepad++ 8.8.8: 2 issues detected

    General Discussion
    2
    0 Votes
    2 Posts
    103 Views
    PeterJonesP

    @Kaptain-Biwouak,

    1/ last updates about Perl language don’t allow anymore to detect perl subroutines with the menu function (It was working well with Notepad++ 8.8.1).

    By “the menu function”, I am assuming you mean the View > Function List.

    But when you say it doesn’t “detect perl subroutines”, you will have to be more specific, because Function List does work for Perl files in v8.8.8 – though it is known to have efficiency issues.

    b60af6c5-90e6-4a07-b34d-a45c6524db4c-image.png

    the version of the Perl FunctionList parser found here will hopefully be in the next version of Notepad++ (presumably v8.8.9), so if you put the new XML in %AppData%\Notepad++\functionList\perl.xml (you might have to create the functionList subdirectory) and restart Notepad++, it will use the more efficient parser.

    After doing that, if it still doesn’t show your subroutine, please click the </> button in the reply, and paste a small Perl program that shows one or two subroutines that don’t show up in the FunctionList.

    2/ on-going modifications usually shown with * on the tab bar are no more accurate; Several tabs have now this status even if one file is currently being modified.

    I only see an * on the title bar if a tab that has unsaved edits is active. If I switch to a tab that has no edits, the * is not shown on the title bar. Can you give a minimal series of steps to reproduce the problem? because I cannot get it to be wrong about the *.

  • 0 Votes
    10 Posts
    316 Views
    Ian HicksI

    @Ian-Hicks Hit a few too many speedbumps, so retraced my steps and found a solution using MSXML. Output isn’t as elegant, but it’s readable, so provides a solution to my problem