• Delete all-cap words

    22
    0 Votes
    22 Posts
    3k Views
    guy038G

    Hi, @lordp666, @terry-R, @mark-olson, @coises, @peterjones and All,

    @lordp666, I’m simply blown away by the accuracy of ChatGPT’s answers. Truly amazing !

    Sincerely, the accuracy of the response is impressive. Just one small error, however:

    With our Boost regex engine, if you have used the -i modifier or if you have ticked the Match case box :

    The \l syntax represents a single lowercase Unicode letter

    The \u syntax represents a single uppercase Unicode letter

    and :

    The [[:alnum:]] syntax is a shortcut for [\d\l\u], so any Unicode letter or digit

    The \w or [[:word:]] syntaxes are a shortcut for [_\d\l\u], so any Unicode letter, digit or the underscore

    So, apart from this particular point, the rest of ChatGPT’s reply, including the summary, is completely accurate !

    Sorry, no need to give you any further explanations !

    Ah… coders everywhere : unite and fight ! In the ( very ) near future, AI is going to replace us and leave us out in the cold ;-))

    BR

    guy038

  • basic regex question

    3
    0 Votes
    3 Posts
    347 Views
    S

    Sorry, @Alan-Kilborn. I expect to find most instances where string = ‘59forum’, but I want to identify where string is something else - ‘Events’, ‘Showcase’, and string values I don’t recall. Which, is why I want to identify them!

    I tried your suggestion, and it works. Many thanks!

    Dan

  • 0 Votes
    3 Posts
    3k Views
    PeterJonesP

    Future readers: this query was answered here and here, which both point to https://github.com/notepad-plus-plus/wingup/issues/73#issuecomment-2362168716 as the official answer.

    This duplicate request locked. Discussion can continue in the first link above.

  • Stepping though search results.

    3
    0 Votes
    3 Posts
    306 Views
    MadTomTM

    @Alan-Kilborn Thanks this does help.

  • Windows 11 Notepad tabs

    2
    0 Votes
    2 Posts
    924 Views
    PeterJonesP

    @Eustace-Fril

    in v8.7: Settings > Preferences > Indentation > Indent Settings > [Default] > Indent Size defaults to 4, but you can set it to whatever you want in v8.6.9: Settings > Preferences > Language > Indent Settings > [Default] > Indent Size in previous versions: Settings > Preferences > Language > Tab Settings > [Default] > Tab Size

    User Manual on Indentation settings: https://npp-user-manual.org/docs/preferences/#indentation

  • Windows 11 compatibility

    2
  • HTML, "Default keywords"

    3
    0 Votes
    3 Posts
    293 Views
    PeterJonesP

    The User Manual’s “Themes” page has been updated to better explain how to deal with themes, including keeping them up-to-date (including a version of the procedure I shared earlier).

  • Find in Files not working

    37
    0 Votes
    37 Posts
    40k Views
    PeterJonesP

    @SuHaIl-MaJiD said in Find in Files not working:

    I navigated to the APPdata location (~\AppData\Roaming\Notepad++) however i do not see the config.xml file there
    Any suggestions to get this working?

    Your Debug Info (thanks for including that) shows that you have a normal installation, so config.xml and all your other config files should be there. Are you sure Windows isn’t hiding files from you? Or just hiding the extension, so maybe it is just listed as config instead of seeing config.xml? make sure you’ve exited Notepad++ completely, so it’s written the most-recent copy to disk. If you want, you could use Win+R to run cmd.exe /K cd "%AppData%\Notepad++" & dir – if you don’t see config.xml there, then please share the output of that run in your reply.

    If you do find your config.xml, then you can close Notepad++, edit it in MS notepad.exe (you cannot edit config.xml in Notepad++, because Notepad++ overwrites that file when you exit Notepad++, losing any changes you saved), and delete the whole <GUIConfig name="DockingManager"...> section, save and exit, then restart Notepad++, and Find in Files should work for you again. This procedure is found in our FAQ: I Cannot Find My Panel!

  • Replace bracket

    6
    0 Votes
    6 Posts
    1k Views
    olekO

    @PeterJones need be escape and bracket will be copy complicity.

    REPLACE \ (hss(ssss(ow()=Ay(),(5))))

    Thank you very much.

  • Problem opening PHP links with single quotes

    3
    1 Votes
    3 Posts
    707 Views
    PeterJonesP

    @rdipardo said in Problem opening PHP links with single quotes:

    You should open a GitHub issue.

    Well, @David-Baez, if you are still on an earlier version (especially one before v8.6.6), then first try upgrading Notepad++ and see if that fixes it. If you are already on v8.7, then I agree with @rdipardo that you should file a GitHub issue (this FAQ explains how, if you don’t already know)

  • Notes are getting deleted from Notepad++

    Locked
    2
    0 Votes
    2 Posts
    579 Views
    Terry RT

    @Duty-Lead

    This is a duplicate of this post.

    Please reply to OP on that post, not this.

    Terry

  • How to set correct lines

    12
    0 Votes
    12 Posts
    2k Views
    olekO

    @Mark-Olson Ok I understand .Thanks for your support me .Sorry for my English.

  • Open popup on same screen

    4
    0 Votes
    4 Posts
    397 Views
    Jörg HohwillerJ

    @PeterJones said in Open popup on same screen:

    he implemented that if you hit Ctrl+F a second time, it will move the find window from wherever it was to the center of Notepad++'s current monitor.

    Oh, awesome. Thank you for this great hint.
    That is perfectly solving my problem.
    I am fully happy with this behaviour and can see that other users have different expectations than I have.

  • Auto-capital sentences in .txt

    2
    0 Votes
    2 Posts
    239 Views
    guy038G

    Hello, @carsten88 and All,

    Surely, some guru guys on this forum, versed in Python, could create a script for this purpose ! Unfortunately, I’m not part of them -:(

    However, here is a regex search/replacement that you could run, once your text is completed :

    SEARCH ([.?!])\x20*(\w)

    REPLACE \1\x20\U\2

    Notes : This regex verifies and changes any text file as expected :

    It rewrites, first, the last character of each sentence

    Then, it normalizes any amount of space chars, even none, to one space only

    And, finally, it rewrites the first letter of the next sentence in uppercase

    If this letter is already written as uppercase, nothing is modified !

    Best Regards,

    guy038

  • Global HotKey PauseBreak not correct in npp 8.6... via PuntoSwitcher

    5
    0 Votes
    5 Posts
    877 Views
    S 1S

    @mkupper This problem not only with PauseBreak key. Home, End, Insert, etc. the same (f1-f12 working normal).

  • Add zeros to all blanks in row

    4
    0 Votes
    4 Posts
    411 Views
    Terry RT

    @Brian-Warmuth

    Well you may not have been aware of some of the power and functionality Notepad++ has at its disposal. Always good to ask a question like you did if your initial assessment/idea doesn’t pan out.

    The members here are happy to help where we can.

    Terry

  • Wacatac.B!ml plays peek-a-boo

    1
    1 Votes
    1 Posts
    2k Views
    No one has replied
  • Add a word to a serial number.

    9
    0 Votes
    9 Posts
    883 Views
    gerdb42G

    All that barcode readers do is to emulate keystrokes. And that is how NPP sees the input: Just keystrokes. NPP has no notion of whether the input is coming from a barcode reader or a regular keyboard. So I think Terry’s suggestion is your best bet.

  • Search with two strings in line

    6
    0 Votes
    6 Posts
    24k Views
    Taiwo topeT

    @Peter-Reichmuth please, exactly which one of the solutions work *perfectly

  • Search results unchanged after a change.

    10
    0 Votes
    10 Posts
    594 Views
    gstaviG

    @Alan-Kilborn said in Search results unchanged after a change.:

    I think (can’t check right now) that when Visual Studio’s editor does a replace-in-files, it populates its find-output window with all of the replacements made – this sounds similar to what OP here is describing?

    Reply

    Don’t use Visual Studio much, but as I said Visual Studio Code search & replace is extremely advanced and dynamic.
    When you type a search string it is updating the search results in real-time, highlighting the search string.
    When you type a replace string it dynamically overstrike the original “search” string in the results, highlighted in RED and present after it the “replace” string in green. All of this before actually commiting to the search and replace.

    Extremely cool. Impressive work of engineering. However, the benefit over Notepad++ primitive search and replace is limited.
    Admittedly, search and replace is error prone so the ability to see the results BEFORE helps boosting your confidence. However, that is not what was asked by @Alan-Wynne

    So my claims are:

    Doing anything similar to VSCode is a complete rewrite. Doing simple post search has questionable value. Doing it automatically could annoy lots of users.

    An undo feature for search and replace in files would be nice.