• FORUM: Posting Queue

    Pinned
    9
    12 Votes
    9 Posts
    2k Views
    PeterJonesP

    @donho ,

    Makes sense.

    Since deleting posts was tedious for me, I had recently been looking into whether I could use the API that the forum offers to write a script to automate some of the cleanup (like with purging the deleted posts/topics), but that will take some time to develop.

    update: As of Nov 9, the purge automation is working, and it will run once a week. (Along with purging deleted posts/topics, it will also delete user accounts that are more than a year old where the user never posted and never logged in after the first day – nearly half of the 30000 accounts were in this category)

  • Please Read This Before Posting

    Pinned Locked
    1
    5 Votes
    1 Posts
    4k Views
    No one has replied
  • auto-complete only if the word is much longer than what you typed

    8
    0 Votes
    8 Posts
    334 Views
    Lycan ThropeL

    @PeterJones ,
    I have this love/hate thing when using auto correct systems (Android for example) versus autocompletion and it types a completely different word than I intended because fat fingers hit the wrong key on the mini screen keypad. :-(

  • 1 Votes
    36 Posts
    13k Views
    K

    I’ve experienced something similar - Notepad++ will begin to occasionally corrupt files when I try to save them to a network drive. I can tell when it’s going to happen because it will not respond “not responding” for about 5-10 seconds, then display that error message. And it corrupts the file!!! When I’m heavily coding, this happens constantly. I have to make back-up copies constantly since it WILL corrupt the files! Extremely frustrating. This has only started being a problem within the past 2 ? updates.

  • 0 Votes
    3 Posts
    92 Views
    Dimitris TheocharidisD

    @Alan-Kilborn nice one, yes, it can be done just to read, and to have the line number of the original file. I guess, it is the only way, but not a very convenient one, because links are lost, and it becomes absolutly manual… Thank you for answering!!!

  • h1's in function list for navigation

    2
    0 Votes
    2 Posts
    140 Views
    PeterJonesP

    @githuemphasis129 ,

    is there a way to list all the h1 headings in a .md file in the function list for navigation?

    Yep. Notepad++ has the View > Function List command, which will show a function list. And any syntax-highlighting language (whether built-in or UDL) can have the FunctionList definition customized to your desires, assuming you know regex.

    Here is an example of mine, which actually does all headings (not just h1)
    8ec1c9ef-f186-444e-b58d-0ced32e8d603-image.png

    You can then double-click on any of the lines in the Function List panel to go to that line in the editor.

    Instructions:

    Assuming a normal installation (where settings are in %AppData%\Notepad++, create a new file called %AppData%\Notepad++\functionList\udl_markdown.xml with the contents:

    <?xml version="1.0" encoding="UTF-8"?> <!-- ==========================================================================\ | | To learn how to make your own language parser, please check the following | link: | https://npp-user-manual.org/docs/function-list/ | \=========================================================================== --> <NotepadPlus> <functionList> <parser displayName="Markdown (preinstalled)" id="Markdown (preinstalled)" commentExpr=""> <function mainExpr="(?x-s)(^\h*\K[#]+\h*(.*?)$|^(.*)(?=[\r\n]+^([-=])\4{2,}\h*$))"/> </parser> </functionList> </NotepadPlus>

    Then edit %AppData%\Notepad++\functionList\overrideMap.xml (if it doesn’t exist, copy c:\Program Files\Notepad++\functionList\overrideMap.xml to %AppData%\Notepad++\functionList\overrideMap.xml, then edit it). Add the line

    <association id= "udl_markdown.xml" userDefinedLangName="Markdown (preinstalled)"/>

    in the User Defined Languages section:
    7cc9b026-2b77-47d8-9fb1-a31e6f10f14d-image.png

    Save those files. Exit Notepad++ and restart the app. Now, if you open a .md file and it’s using the Language > Markdown (preinstalled) UDL entry that comes with Notepad++, then if you show the View > Function List, and any header lines will show up as double-clickable table-of-contents.

    If you only want h1, and not h2 or deeper, change to mainExpr="(?x-s)(^\h*\K[#]\h*([^#]*?)$|^(.*)(?=[\r\n]+^([-=])\4{2,}\h*$))" in the udl_markdown.xml file, save, exit, and restart N++.

  • 4 Votes
    2 Posts
    199 Views
    PeterJonesP

    @Vitalii-Dovgan ,

    PR 16928 will remove that forced fontSize, and fix other fontSize consistency problems in the model and themes.

  • Using Notepad++ Together with ChatGPT for a Faster Workflow

    Moved
    5
    0 Votes
    5 Posts
    249 Views
    PeterJonesP

    @Walter-Cook said in Using Notepad++ Together with ChatGPT for a Faster Workflow:

    Is there a preferred “Language” to use before pasting into Notepad++?

    If the Generative AI nonsense is pretending to be C++, then use Language > C > C++; if it’s pretending to be Python, then use Language > P > Python; if it’s pretending to be markdown, use Language > Markdown (preinstalled). If it’s pretending to be plain text, use Language > None (Normal Text)

    Remember, Generative AI is not thinking, and is not actually generating anything with meaning. It is just picking a long list of likely “next token” (effectively, “next word”, but not technically) based on the prompt and what it’s generated so far.

    Copying from ChatGPT or any of the AI’s interfaces seems to be pretty messy!

    Then find a better UI? There are various frontends to those “tools” which can help. (I know that Google’s AI Studio interface, for example, has a button to allow copying the underlying Markdown that their LLM produces, so something like that might be better formatted than the rendered stuff directly from the browser.)

    Admin Note: as @Alan-Kilborn said, this conversation really shouldn’t be under the “Help Wanted” category, so I am moving it to the “General Discussion”

  • Adding or dragging a menu item to the toolbar

    2
    0 Votes
    2 Posts
    150 Views
    Alan KilbornA

    @Walter-Cook

    If you have a few favorites of the “Line Operations”, you could add them individually using the “Customize Toolbar” plugin.

  • 2 Votes
    4 Posts
    135 Views
    EkopalypseE

    @rdipardo

    That’s what I thought too, I was just surprised that the port didn’t have it, hence the question.

  • Mildly curious about json syntax highlighting

    2
    1 Votes
    2 Posts
    157 Views
    rdipardoR

    There’s a hard-coded limit of 100 characters for property names; the property inside “hello3” has 101. It’s a known issue.

  • Wrong insertion of text, in the new FIND and REPLACE dialogs

    2
    0 Votes
    2 Posts
    208 Views
    M Andre Z EckenrodeM

    I’m very certain that I’ve attempted, unsuccessfully, to paste multi-line text into FIND/REPLACE/MARK etc. string input zones many times, going back 10 years or more, though I always assumed that any line ending sequence was disallowed (I pretty much always use CRLF, myself). Of course, at least with the appropriate setting (I forget specifically, but think offhand that there is a setting for it), if you have text selected before you open the FIND/REPLACE/MARK dialog, that text then populates the FIND WHAT field, line endings and all. I just wish I could see them when they’re in there.

  • 32x32 sources for small Standard icons

    9
    0 Votes
    9 Posts
    2k Views
    deleeleeD

    @PeterJones Thanks! 🙂

  • 0 Votes
    3 Posts
    163 Views
    BoomBookB

    @PeterJones Thank you. As far as I can see, the function has not been removed. Before concluding this, I downloaded the versions one by one and checked the settings to see if it was still there. I was only able to find an option under “Default Directory.” My issue is now resolved. Thank you.

  • 0 Votes
    3 Posts
    273 Views
    xomxX

    @PeterKee said in Undo/Redo (CTRL+Z/CTRL+Y) behaves unexpectedly after a few hours (NppFTP, NPP 64-bit, Win11):

    Has anyone else experienced this?

    Sounds similar as the infamous GitHub issue #9426.

    This never happened with the 32-bit version,

    Oldest report there is for Notepad++ v7.9 (32-bit), so some users had it even for the 32-bit N++.

    I fixed one such problem but users still report occasionally occurrences of it, so it’s clear that there should be more code to fix. Unfortunately, so far I could not reproduce (so cannot fix it…) and the users have not been able to describe 100% reproducible steps. So if you find such a STR, it will be great.

  • Applying Diff patches?

    5
    0 Votes
    5 Posts
    585 Views
    PeterJonesP

    @PeterJones said in Applying Diff patches?:

    I commented on that Issue to request that apply patch be considered alongside create patch.

    as mentioned here, as of ComparePlus v2.0.0, the plugin can generate and apply standard patch files; see also the release notes. Thanks to @pnedev for the update.

    (Until it makes it into the Plugins Admin, the new version can be manually installed from the zipfiles found on the v2.0.0 release page)

  • Color of hits for find and replace

    4
    0 Votes
    4 Posts
    265 Views
    C

    @Coises Thanks, it was the smart highlighting. Problem solved.

  • 0 Votes
    3 Posts
    211 Views
    Alan KilbornA

    To expand on the explanation, for a small number of lines, put the caret in column 1 of line 1. Press Shift+Alt+DownArrow multiple times, enough so that a “skinny but tall caret” appears before the column 1 data in all lines, to wit:

    25400676-feb5-4a56-86ab-a9413176e83c-image.png

    Then press Space two times, to obtain:

    f0784327-74d1-4788-8da2-7c1acf2b63f7-image.png

  • 9 Votes
    46 Posts
    13k Views
    PeterJonesP
    ConfigUpdater Plugin v2.2.1

    ConfigUpdater Plugin has released v2.2.1, available thru GitHub release page, with bugfix improvements, mostly to Validation Dialog:

    Error handling for null handle ⇒ to prevent potential crashes Disable logfile Monitoring Mode ⇒ it triggers callbacks for many file-changed events, which can bog down setups that use plugins/scripts that add many callbacks Fix progress bar on ConfigUpdater dialog ⇒ makes more-visible progress as each file is processed ValidationDialog: say Line#123 instead of #123 in the Validation dialog error list ⇒ Makes it more clear to the user that the number is the line number, not just some internal tracking number ValidationDialog: Rename Done -> Close ValidationDialog: Rename Go to Model -> Open/Align Model in Other View ValidationDialog: Disabled Validate button when no file selected ValidationDialog: Add ephemeral “Please select a file to validate” choice as initially-selected “file” for validation, which will go away once you’ve made a choice ValidationDialog: Open/Align Model now allows opening the model even when there are no validation errors (or when you haven’t even validated yet) it was previously not allowed because the vector it was looking at to find which line number in model-file was 0-length if there were no errors (or no validation done yet); I was able to update the logic to choose line 0 if there was no selection or no validation errors Update langs.xsd to check for duplicate <Keyword name="xyz"> entries NOTE: if you want this feature, you have to delete the old ...\plugins\config\ConfigUpdater\langs.xsd before launching the ConfigUpdater or ValidateConfigFiles dialogs (only need to delete the file once; after it is regenerated, the new error checking will be available in the future) Only allow one Validator dialog ⇒ It could cause problems if more than one dialog were trying to validate at the same time, and there is no compelling reason for allowing multiple instances of that dialog
  • You CAN disable brace highlighting

    5
    2 Votes
    5 Posts
    273 Views
    Ethan GreerE

    Well, I submitted a feature request. It is here:

    https://github.com/notepad-plus-plus/notepad-plus-plus/issues/16852

    Any feedback or suggested edits or improvements would be greatly appreciated!