• 1 Votes
    8 Posts
    29 Views
    mkupperM

    I personally did not mind @mathlete2’s solution. People can learn a little bit about running scripts from Notepad++ such as that cd %~p0 thing, a little bit about Run/Run and its [Save] button hidden in plain sight, a little bit about batch file stuff, and a little bit about PowerShell stuff.

    The bit about Run/Run vs RunMe went over my head and so I’ll stick to thinking about offering a solution where you use Notepad++ in ANSI mode to directly enter the machine code for a mailmerge.exe app…

  • Replace A name for 300 others in the list and save.

    General Discussion
    9
    0 Votes
    9 Posts
    77 Views
    PeterJonesP

    @mathlete2 said in Replace A name for 300 others in the list and save.:

    My point exactly
    Don’t forget: those other suggestions required additional setup steps on top of the plugin installation.

    You had previously said (in one of the posts moved to another discussion), “if you didn’t already have those tools in place”. But part of your solution was to also install a tool that wasn’t already in place. So you were calling me (and others) out for doing what you were also doing: recommending extra steps.

    @PeterJones said in Replace A name for 300 others in the list and save.:

    Have you ever seen the Save button in the Run dialog? This allows you to save the command, which will put it into the Run menu as a separate entry from then on

    Nice! That’s definitely great for standard usage, but I noticed that the RunMe plugin has extra options for running with Administrator privileges. AFAIK, Windows doesn’t have a sudo equivalent, so this plugin still has its uses.

    I didn’t say it could do everything that the RunMe plugin has done – I’ve never used that plugin – I was just pointing out that Notepad++ could natively do what you suggested be done with the RunMe plugin, so that the extra plugin wasn’t necessary.

  • 0 Votes
    29 Posts
    391 Views
    Lycan ThropeL

    @Lycan-Thrope ,
    In hindsight, and after re-reading the issue, it seems that other than the app change removing the AppPosition from the config.xml file(unlikely?), @Alan-Kilborn 's suggestion would be the best for using his GoogleDrive Cloud setup with just one config.xml for multiple machines. He has already rebuffed that, so unless he reconsiders, I guess we’ll have to wait and see if his feature request gets approved and implemented. Moving on.

  • 0 Votes
    2 Posts
    20 Views
    CoisesC

    @Maxim-Fox said in It changes the encoding every time I open it.txt file:

    How to disable automatic encoding change when opening .txt file?

    If the problem is specifically that Notepad++ is opening files as UTF-8 when you expected them to be in your system code page (aka ANSI), look at Settings | Preferences… | New Document and see if you have UTF-8 selected and the Apply to opened ANSI files box checked. If you do, try unchecking that box.

    Aside from that, I don’t think there is a way to stop Notepad++ from attempting to determine the encoding of a file. Windows does not store the encoding of a file with the file. No program can know, for sure, what encoding was used for an arbitrary text file. Notepad++ tries to figure out what it must be, but I don’t believe it offers any way to intervene in that process other than to select a different encoding one you have loaded the file.

  • 0 Votes
    4 Posts
    30 Views
    Alan KilbornA

    @Mark-Olson said:

    the core developers of Notepad++ prefer Microsoft Visual Studio to Notepad++ for working on the Notepad++ source code. Make of that what you will.

    That’s probably because an IDE is wanted for this work, and, as you say, Notepad++ is not the greatest IDE.

    and most major programming languages (like the C or C++ it appears you are writing) have better productivity tools elsewhere.

    Well, I for one have done pretty well with only Notepad++ for embedded C/C++ work, as well as Python work.

  • Search Not Auto Paste?

    General Discussion
    2
    0 Votes
    2 Posts
    21 Views
    mathlete2M

    @ca-bo I think you’re looking for the Fill Find Field with Selected Text option in the Searching section of the Preferences window:

    d23b471a-24fd-4d7b-a75c-49f48a209e5f-image.png

  • 0 Votes
    5 Posts
    63 Views
    Mark OlsonM

    @Ramses505 said in Run multiple search and replace - one after another:

    Out of interest - can I run some sort of python script that would do this as well ?

    Yes. If you already know Python, the PythonScript plugin can let you automate Notepad++ with Python.

    If you don’t know Python, this forum is not the place to discuss how to learn Python. There are countless tutorials on the internet for that purpose. I’ll just mention the re library and leave it at that.

  • 0 Votes
    26 Posts
    2k Views
    PeterJonesP

    @mathlete2 said in Unable to see Data in the Notepad++:

    FWIW, the Delete part was misleading; the actual instructions say to rename the config file, which backs it up.

    You are right, they gave conflicting instructions, saying to “delete/reset” the config file, but then “actually” only saying to rename it. But in general, their advice was bad – and elsewhere, in posts that another moderater had already deleted, that person spammed with links to their own website, which I confirmed had nothing to do with Notepad++, despite claims in the spam posts that going to their website would help solve a N++ problem. They were a spammer, probably assisted with generative AI posts, both of which are forbidden here and grounds for immediate banning.

  • [ToolBar] Fugue Icons for Notepad++

    General Discussion
    9
    5 Votes
    9 Posts
    4k Views
    D

    @Manu-el These icons look good, but they’re too small. Any chance of 32x32 icons instead?

  • It's time for UI update!

    Locked General Discussion
    101
    18 Votes
    101 Posts
    197k 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.

  • Notepad++ release 8.7.9

    Pinned Announcements
    10
    4 Votes
    10 Posts
    3k Views
    M

    Hi, I just wanted to express my gratitude for your position and support of Ukrainians.
    Some time ago I noticed that you use release names to express your position (primarily political but not only). This time while updating Notepad++, I noticed a call for Ukraine support in the release name. Expressing your position in a part of the release name is quite a clever way of doing this.

    I’m not sure that’s the right category for doing this but couldn’t choose a better one. As a Ukrainian, I want to say thank you for your support and your political position (not only regarding Ukraine). It is of paramount importance you make people pay attention to what’s happening in the world. Again, thank you!

  • Replace Notepad on Windows 11

    Help wanted · · · – – – · · ·
    22
    0 Votes
    22 Posts
    13k Views
    Marcel BosmaM

    @jadelise

    Amazing, that was the tweak i needed,

    Running PS 7.5 within Win Terminal, i’m bound to wins terminal business related, but a big downside is not being able to switch out the core text editor, MS pushing their own products i get it. upside is now i don’t have to keystroke 2 times a ++ when editing is needed hehe,

    so big big thanks and head off to you sir 🫡

  • 4 Votes
    2 Posts
    13k Views
    PeterJonesP
    Pork To Sausage

    The pork2Sausage.ini, accessible through Plugins > Pork to Sausage > Edit user commands, has a number of parameters for use in the the INI definitions, plus two special variables.

    Parameters:

    progPath: [Mandatory] The full path of the program to launch This is the full path, including the name of the .exe progCmd: [Mandatory] The whole command to call the program This is the whole command; because the program path is given in the first Parameter, this one can use just the name of the command rather than the full path workDir: [Mandatory] The path of working directory This is needed for setting the “working directory” for the program – for example, if it needs to be able to find specific libraries relative to some “current directory” progInput: [Optional] The full path name of the program input file. Pork to sausage plugin will write the selected text in a new created file with the given full path file name. This is helpful if you don’t want to try to input the “selected text” (see variables, below) on the command line (or example, if the selected text is too long, or the external program doesn’t accept text input on the command line) progOutput: [Optional] The full path name of the program output file. Pork to sausage plugin will replace selected text by the content of indicated file, which is supposed to be the output file of the program. If this parameter is absent, then Pork to sausage plugin will use the stdout of program to replace the selected text. This is useful if the external program writes its output to a file, instead of STDOUT. replaceSelection: [Optional] If its value is false, then the selected text will be untouched. Set this to false if you don’t want the active selection in Notepad++ to be overwritten.

    Variables

    $(SELECTION): Your text selection. The text will be encoded as UTF16-LE. Your external command must be able to handle the text in that encoding. $(TIMESTAMP): the Timestamp which will be generated by Pork to Sausage at the start of the call. This varible used for naming the file created by Pork to sausage plugin (progInput) to ensure the unicity (uniqueness) of the created file.

    Discussion

    There are two primary input methods to your application.

    You can send the selected text as an argument on the command line:progCmd=external.exe -inText "$(SELECTION)" ... You can have Pork to Sausage create a temporary file containing the selection:progInput=%TEMP%\Pork2Sausage.$(TIMESTAMP).input progCmd=external.exe -inputFile "%TEMP\Port2Sausage.$(TIMESTAMP).input"

    Example

    The default pork2sausage.ini gives a couple of examples of using just the command-line for the input text and the STDOUT of the command as the output text.

    But to give an example which requires the selected-text be sent to a temporary file (progInput) and the output of the command to another file (progOutput), here is a version of the same action as used by the NppExec example from earlier:

    [gpg-decrypt selection to self] progPath=c:\usr\local\apps\gnupg\bin\gpg.exe progCmd=gpg --output "C:\Users\XYZ\AppData\Local\Temp\p2s.$(TIMESTAMP).output" --decrypt "C:\Users\XYZ\AppData\Local\Temp\p2s.$(TIMESTAMP).asc" progInput=C:\Users\XYZ\AppData\Local\Temp\p2s.$(TIMESTAMP).asc progOutput=C:\Users\XYZ\AppData\Local\Temp\p2s.$(TIMESTAMP).output workDir=C:\Users\XYZ\AppData\Local\Temp

    The selected text will be written to the progInput file. Then progCmd will be run, which decrypts from the same file as progInput, and puts the result in the same file as progOutput. Then the plugin replaces the selected text with the contents of the progOutput file.

  • 4 Votes
    67 Posts
    2k Views
    PeterJonesP

    @Coises,

    How do you go about testing the ARM64 version? I’ve left that out of all my plugin work so far, because I haven’t a clue how to verify that it works at all.

    I don’t. I’m following the time-honored tradition of releasing software untested, and hoping that any users will find edge cases for me. :-)

    Given that it works as 32b and 64b on Intel processors, and I’m not doing anything that is out-of-the-ordinary, I am hoping that there aren’t any ARM64-specific bugs

  • 2 Votes
    8 Posts
    275 Views
    xomxX

    @Alan-Kilborn

    Try to run your installation with this notepad++.exe substitute: x64 Release
    as usual, then left your N++ instance running and use the Windows forced restart cmd shutdown /r /f . After a minute your comp restarts, then collect the new extended nppLogNulContentCorruptionIssue.log and post it here.

    Mine, with correct restart:

    2025-04-14 13:38:47 WM_QUERYENDSESSION (lParam: 1073741825 - ENDSESSION_CLOSEAPP - ENDSESSION_CRITICAL) ===================================== 2025-04-14 13:38:47 WM_ENDSESSION (wParam: TRUE, lParam: 1073741825 - ENDSESSION_CLOSEAPP - ENDSESSION_CRITICAL) 2025-04-14 13:38:47 WM_NO_22: before _pluginsManager.notify NPPN_BEFORESHUTDOWN 2025-04-14 13:38:47 WM_NO_22: after _pluginsManager.notify NPPN_BEFORESHUTDOWN 2025-04-14 13:38:47 WM_NO_22: isSnapshotMode == true, before LockWindowUpdate & MainFileManager.backupCurrentBuffer 2025-04-14 13:38:47 WM_NO_22: before getCurrentOpenedFiles(currentSession, true) 2025-04-14 13:38:47 WM_NO_22: before fileCloseAll 2025-04-14 13:38:47 WM_NO_22: after fileCloseAll 2025-04-14 13:38:47 WM_NO_22: before g_bNppExitFlag.store(true) 2025-04-14 13:38:47 WM_NO_22: before _pluginsManager.notify NPPN_SHUTDOWN 2025-04-14 13:38:47 WM_NO_22: after _pluginsManager.notify NPPN_SHUTDOWN 2025-04-14 13:38:47 ...\config.xml is opened. 2025-04-14 13:38:47 ...\config.xml 8326/8326 bytes are written. 2025-04-14 13:38:47 ...\config.xml is closed. 2025-04-14 13:38:47 WM_NO_22: after nppParam.saveConfig_xml 2025-04-14 13:38:47 ...\session.xml is opened. 2025-04-14 13:38:47 ...\session.xml 1562/1562 bytes are written. 2025-04-14 13:38:47 ...\session.xml is closed. 2025-04-14 13:38:47 WM_NO_22: after saving session 2025-04-14 13:38:47 WM_NO_22: before DestroyWindow 2025-04-14 13:38:47 WM_DESTROY (isEndSessionStarted == true)
  • 0 Votes
    4 Posts
    88 Views
    ADeA

    @Coises Very good. Looks like actually proper documentation!
    I’ll take a look, thanks for sharing :D

  • 0 Votes
    3 Posts
    165 Views
    PeterJonesP

    Ah, right. I’ve written so many FAQ for the Community, I forgot FAQ: How do I … Convert my Text exists. That might explain things better, since it had more time put into writing it.

  • 0 Votes
    13 Posts
    260 Views
    Mike AlbersM

    @guy038 Hi guy, I studied your solution and Regex itself and it starts to dawn at me.
    I changed my testfile and tried in addition how to handle empty fields. For that i changed your searchstring a tiny bit but also added an extra OR clause.
    It seems to work properly now.

    My latest testfile was like this:
    TESTFILE_02.JPG

    My search pattern is now:
    (?s)^(?:[^\r\n;];){3}.{0,24}\r\n|^((?:[^\r\n;];){3}.{0,24}).?\r\n|^(?:[^\r\n;]?)\r\n

    The replace statement is still yours:
    ?1$1\r\n:$0

    Result was:
    File_after_replace.JPG

    I tried to figure out the replace string, but i don’t get it.
    (tried selfstudy on it with Regex0101 tool bit by bit but since it is not 100% compatible i couldn’t figure it out myself.) Really no lazyness on my part here when i ask my question.
    So i hope you can explain it step by step for me.

    Thanks!

  • 0 Votes
    7 Posts
    466 Views
    J

    @mkupper
    My issue has been resolved and is not related to the advanced administrator mode.

  • Single click to open file in workspace

    Notepad++ & Plugin Development
    2
    0 Votes
    2 Posts
    70 Views
    PeterJonesP

    @Joe-Bruns-0 said in Single click to open file in workspace:

    Enhancement request.

    FAQ: Feature Requests aren’t tracked in the forum. If you want the developer to see your request, you’ll have to follow the instructions in the FAQ. But we can talk, and get ideas/feedback from other users here.

    Similar to single clicking on a file in document list panel to open it, can we do the same on folder as a workspace? It would appear that in folder as a workspace, a person has to double click on the file to open it.

    The two interfaces have a slightly different mindset, so, IMO, it would be a bad idea. In the Document List panel, you are dealing with files that are already open in Notepad++; in that mindset, then you’d want it to behave more like the tabbar, where a single click activates that already-open file. But in the Folder As Workspace (FaW) panel, the interface is much more like Windows Explorer: in Explorer and explorer-like interfaces, the user’s expectation is that single-clicking a file will select it, not launch it; and breaking that expectation in an explorer-like interface of the FaW panel will cause confusion on the part of many users, even though for some, it might be desired. If it were an option, I’d be okay with it; but unexpectedly forcing your preferred interface on everyone, especially on people who have been using Notpead++'s FaW for years (given how old the feature is, maybe even more than a decade) would be a bad experience for a large portion of the users.