• 9 Votes
    46 Posts
    16k 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
    672 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!

  • Close on last tab exit missing in settings

    3
    1 Votes
    3 Posts
    261 Views
    Erin PhillipsE

    @PeterJones thank you. I completely overlooked this new page in preferences.

  • NotePad++ preview plugin? I can't find it.

    3
    0 Votes
    3 Posts
    693 Views
    rdipardoR

    @Coises said in NotePad++ preview plugin? I can't find it.:

    It looks as if [Preview HTML] exclusively uses Internet Explorer rendering…

    F.Y.I.

    Preview HTML’s browser host was recently updated to Microsoft Edge.

    preview-html-v1.4-screenshot.png

    You will need Windows 1709 (build 10.0.16299) or a later version to use it. For that reason, I’m not planning to update the Plugin List until some time after consumer editions of Windows 10 pass their EOL date in October.

  • Is there a way to disable brace highlighting?

    9
    0 Votes
    9 Posts
    519 Views
    Ethan GreerE

    @PeterJones

    Hello again Peter! Thanks for the advice. When I said “hate hate hate” I meant that as more tongue-in-cheek. Maybe that was the wrong foot to put forward first. Sorry if I honked you off. I certainly wouldn’t bring that energy into a feature request.

    Edit: I get what you’re saying about essential features of Notepad++. It seems like if there’s an option to turn off, say, current line highlighting, it would make sense to include an option to turn off brace highlighting. I’m sure it won’t surprise you to know that I disable current line highlighting, for much the same that I want to disable brace highlighting – I find it distracting.

    Anyway, I’ll throw up a feature request, and if it is never implemented, I’ll deal with it. Overall I love Notepad++ very much.

  • Closing np++ closes program behind it.

    3
    0 Votes
    3 Posts
    286 Views
  • Does Notepad++ support Language Server Protocol (LSP)

    9
    1 Votes
    9 Posts
    2k Views
    EkopalypseE

    @notdodgeball

    thanks - I’ve changed it accordingly.

  • 1 Votes
    3 Posts
    327 Views
    Valery OrlovV

    @guy038, Thanks to you, I not only solved my problem, but also became better acquainted with the possibilities of Notepad++.
    Best regards

  • Note++ file location

    5
    0 Votes
    5 Posts
    679 Views
    PeterJonesP

    @tnet-chrome said in Note++ file location:

    The file config.xml under %AppData% had the recent files list. But if I manually delete any recents, save the file and restart Notepad++ the same list of files is re-added. Why? Where from?

    Because those recents were still in memory when you exited Notepad++, and when Notepad++ exits, it overwrites the existing config.xml with those values from memory – even if you had recently manually edited config.xml. The user-manual section on Editing Config Files has a paragraph explaining how to edit config.xml, because it must be treated differently than the other config files (and config files in general have to be treated differently relative to “normal” files, as that entire section describes).

  • The accents above Cyrillic capital letters are incorrectly displayed

    3
    0 Votes
    3 Posts
    282 Views
    Valery OrlovV

    @xomx, thank you very much. When I selected another font (Ebrima), the problem was resolved.

  • is thier any posibilities to find and replace multiple words at once ?

    4
    0 Votes
    4 Posts
    424 Views
    CoisesC

    @neeraj10786:

    While I don’t use it myself (and so can’t give detailed advice), it seems like the MultiReplace plugin by @Thomas-Knoefel would be easier to use than built-in methods. If this is a single-time problem, then the built-in methods others have given make sense; but if it is something you’ll need to do repeatedly, I’d check out that plugin.

  • Editor displays "!=" token as "≠" symbol - how to turn off?

    5
    0 Votes
    5 Posts
    521 Views
    B

    Many thanks to @PeterJones and @Coises, for the answers, perspective, and (in Peter’s case) updating the User Manual.

    You are right, it was Cascadia Code; changing it to Consolas, for example, got rid of it. My “exhaustive” font testing was… only Cascadia Code and Fira Code, so I literally hit both of the two. I’ve been mostly using Hack font for such a long time, I just haven’t really noticed any of this ligature-supporting fonts. I just got a new PC and hadn’t installed Hack yet.

    I like finding out where I was ignorant and wrong. It makes me less so.

    Cheers and thanks again!
    –BrBill

  • Unexpected text display change for >=

    5
    2 Votes
    5 Posts
    706 Views
    PeterJonesP

    @BrBill said in Unexpected text display change for >=:

    @Alan-Kilborn I want to turn this off too. It also displays != as ≠. Does anyone know?

    You didn’t need to post a second time with the same question 15 minutes after your first post here.

    Besides, one answer in the post you were replying to – turning off DirectWrite, which is now setting it to GDI (most compatible) as of a few versions ago – would have worked for you if you’d tried it.

    Or, as I explain here, pick a font that doesn’t have the ligature feature.

    Either works.

  • Quick Question: what Python version for Pythonscript does everyone use?

    3
    1 Votes
    3 Posts
    386 Views
    EkopalypseE

    @pbarney

    I only use the pre-release version, PS3,
    as I only work with utf8 encoding, which I think everyone should do.

  • Npp website spelling error

    7
    3 Votes
    7 Posts
    4k Views
    deleeleeD

    @mkupper said in Npp website spelling error:

    FWIW, this Google search gets zero hits other than this forum thread.

    site:notepad-plus-plus.org "featurs"

    I’m guessing that the misspelling, if it ever existed, was corrected a while back.

    Yes, it was fixed within a few days of me posting 😁👍

  • 8.8.2 - coming soon??

    16
    0 Votes
    16 Posts
    4k Views
    xomxX

    @rdipardo said in 8.8.2 - coming soon??:

    edition in a user-local path

    I already checked such possibility (for N++ installer, not for portable eds) and have the non-admin user-installations on my TODO, but so low spare time… (#15182)

    @rdipardo said in 8.8.2 - coming soon??:

    can still have context menu entries — scoped to HKEY_CURRENT_USER by default

    Very good. I think the NppShell project should take this into account somehow and allow the HKCR registrations when needed/requested. This HKLM default is(?) IMO the reason for a possible regsvr32 zombie process when trying to register the NppShell manually & unelevated (#15182)

    @Coises said in 8.8.2 - coming soon??:

    I don’t think I’ve ever used a package manager.

    But OTOH you also said that for some SW (Firefox) you allow (welcome(?)) the autoupdates. Such package managers do just that - they remove the burden from the user to constantly check and update their software (even for a portable non-admin user-installation), but at the same time they leave them free to enter this process (if they wanna) and therefore it is not completely hopeless like with the locked stores like WindowsStore or GooglePlay. One example - with the WinGet you can go simply back in the app-versions if you need to (as you do with your “Software\Old”), this is of course impossible with e.g. the GooglePlay (damn hell to them for it!).

    SW-updating “world” just changed and not everything is so bad. So e.g. the WinGet (or more user friendly WinGetUI) way is ok for me (I am not using it for N++, I do it old-school as you do, I admit :-) ). Some relevant links:

    https://community.notepad-plus-plus.org/topic/24884/winget-real-autoupdater-finally
    https://github.com/microsoft/winget-pkgs/tree/master/manifests/n/Notepad%2B%2B/Notepad%2B%2B

  • Replace 2nd occurrence in string per line, then nth occurrence Npp v8.8.1

    5
    0 Votes
    5 Posts
    666 Views
    FraF

    @PeterJones thanks a lot for the nuances. Indeed, I first wondered about the difference from the group indexing starting at 1. Then also about the difference from the quantifier ( {n} where n is an integer >= 1 https://www.regular-expressions.info/refquick.html).
    Thanks for the $0 group placeholder mention, I wondered about that too, now I understand what it captures.

    I understand the regex as this:

    Find:

    Put everything that preceeds the occurence of interest into a group (1st group referenced by the placeholder with the starting index at 1 ($1) — though there is a placeholder 0 ($0) which references the whole set/string instead of any subgroup of it)). Exclude the occurence of interest from the that group, but state is a the search delimiter for the regex just outside the group.

    Replace with:

    Capture the group with it’s placeholder (make a copy of it and store it: $1 = foo / ^((?:.?foo){0}.?) for the 1st occurence (N+1) with index 0). Use the 2nd/next occurence as external delimiter reference to stop the regex search at (^((?:.?foo){0}.?)foo). Then append the new value (XOO) to the copied unchanged group.

    I think I see what you mean when considering there must always be a 2nd /next occurence for the regex to work so it can’t be starting at zero? While in the background the engine uses a zero based indexing for the 1st element of the occurences series.
    0 is the 1st element in the indexes series, 1 is the 2nd and so on.
    While for the groups placeholders, 0 isn’t an ordinal reference, it’s an arbitrary reference to the set. The ordinal reference starting at 1 in this case.

    I need to check the doc and do more practice to get over the confusing parts!

    The quantifier also starting at 1 though index 0 is still valid but return no value (or the whole set but with empty values)?

    For example:

    19 empty string matches:

    0.gif

    [A-Z]{0} goo A greAS gir PE

    https://regex101.com/r/dYnJmE/1

    / [A-Z]{0} / gm Match a single character present in the list below [A-Z] {0} matches the previous token exactly zero times (causes token to be ignored) A-Z matches a single character in the range between A (index 65) and Z (index 90) (case sensitive) Global pattern flags g modifier: global. All matches (don't return after first match) m modifier: multi line. Causes ^ and $ to match the begin/end of each line (not only begin/end of string) 0-0 empty string 1-1 empty string 2-2 empty string 3-3 empty string 4-4 empty string 5-5 empty string 6-6 empty string 7-7 empty string 8-8 empty string 9-9 empty string 10-10 empty string 11-11 empty string 12-12 empty string 13-13 empty string 14-14 empty string 15-15 empty string 16-16 empty string 17-17 empty string 18-18 empty string No match/invalid:

    1.gif

    [A-Z]{} goo A greAS gir PE

    https://regex101.com/r/CtqQ0D/1

    / [A-Z]{} / gm Match a single character present in the list below [A-Z] A-Z matches a single character in the range between A (index 65) and Z (index 90) (case sensitive) {} matches the characters {} literally (case sensitive) Global pattern flags g modifier: global. All matches (don't return after first match) m modifier: multi line. Causes ^ and $ to match the begin/end of each line (not only begin/end of string) Your regular expression does not match the subject string. 5 matches:

    2.gif

    [A-Z]{1} goo A greAS gir PE

    https://regex101.com/r/MImsNL/1

    / [A-Z]{1} / gm Match a single character present in the list below [A-Z] {1} matches the previous token exactly one time (meaningless quantifier) A-Z matches a single character in the range between A (index 65) and Z (index 90) (case sensitive) Global pattern flags g modifier: global. All matches (don't return after first match) m modifier: multi line. Causes ^ and $ to match the begin/end of each line (not only begin/end of string) 4-5 A 9-10 A 10-11 S 16-17 P 17-18 E 2 matches:

    3.gif

    [A-Z]{2} goo A greAS gir PE

    https://regex101.com/r/p1WOWQ/1

    / [A-Z]{2} / gm Match a single character present in the list below [A-Z] {2} matches the previous token exactly 2 times A-Z matches a single character in the range between A (index 65) and Z (index 90) (case sensitive) Global pattern flags g modifier: global. All matches (don't return after first match) m modifier: multi line. Causes ^ and $ to match the begin/end of each line (not only begin/end of string) 9-11 AS 16-18 PE
  • [suggestion] View > Tab > Move up/down

    3
    0 Votes
    3 Posts
    653 Views
    S

    Thanks for the tip.

  • Find/Replace Window blocking results ...

    11
    1 Votes
    11 Posts
    2k Views
    M

    Replace was where I was having the issue and it brings up some challenges that Find does not - basically, you would need a shortcut for “Ignore and Find Next” and one for “Replace and Find Next” and you’d have to remember those shortcuts.

    @Coises; TBH, now that I’ve learned to resize the screen. I’m okay with it. I think most users have multiple monitors these days and use the find/replace dialog on the second monitor.

    @Coises and @mkupper - I wasn’t aware of the caret button to move the dialog to two lines. I think that and an OPTION to dock the find dialog in the lower-right corner so I don’t have to re-size the screen would be perfect for what I want.

    Again - none of this addresses the context issue - which isn’t a primary concern of mine, but I still think it should be accommodated, if possible.

  • How to Remove "Edit with Notepad++" from the Right-Click Context Menu

    2
    0 Votes
    2 Posts
    2k Views
    PeterJonesP

    @Ling-Ling ,

    When you install Notepad++, it installs the right-click context-menu entry using a “Shell Extension”. The User Manual has an entire page on the Shell Extension, including a secion on how to unregister the Shell Extension so that the “Edit with Notepad++” entry goes away