• How to correctly use the regex FREE-SPACING mode feature

    1
    5 Votes
    1 Posts
    317 Views
    No one has replied
  • Seamless upgrading to 64-bit

    8
    0 Votes
    8 Posts
    2k Views
    F

    Stop trolling / Ad hominem attacks like advised here :

    LINK : Please be polite and treat other Community Forum members with respect. Ad hominem attacks, personal insults, hate speech, and other such violations of this policy are grounds for immediate and permanent banning from this Forum.

    My above comment was just sharing the same experiences, which is sometimes useful, as one of purposes of a forum is to share experiences between users. Not to mention I did it only one time so far, but despite it, you created a “zero value” offensive generic accusation towards all my other comments, despite most of my comments on forum and issue tracker are useful. You’re trying to discredit my person as unhelpful, you seem to be on a one-person crusade to comment on my comments and to vent out your frustration. If you want to accuse of or to prove anything, you need to analyse each of my comment separately, and provide specific argumentation of why a given comment has “Zero value”, otherwise it’s nothing more than a book example of trolling and Ad hominem attacks

    As a proof several examples of my comments (not all):

    As for my comment here LINK :

    I already explained in my next comment here LINK
    why I created the previous post in same thread and why it wasn’t a bad idea also my comment caused 2 other users to post their useful plugins

    As for my comments here LINK + LINK :
    it definately was not “Zero value”, actually the opposite, it was useful because :

    noone mentioned this plugin before, some other suggested solutions by some other users were a bit cumbersome my comment caused one of the users to provide his updated solution my comment got an upvote

    As for my comment here LINK :

    I provided useful information that such feature is already implemented in 2 different plugins

    As for my comment here: LINK :
    it definately was not “Zero value”, actually the opposite, it was useful because :

    noone mentioned 64bit version of this plugin before, which is a new thing recently released my comment got 2 upvotes also I already explained, why I posted same comment twice (previously in : LINK

    As for my comment here : LINK

    I provided useful information that such feature already exist in a plugin

    I don’t think it’s a good place for personal / off topic attacks, most likely at any time a moderator will come and lock the thread or hide/remove personal comments (thanks to you), I think you should not act like this, please avoid creating a public drama and if you want to reply, do it via private message.

  • Math and Notepad++

    5
    2 Votes
    5 Posts
    4k Views
    F

    @PeterJones said in Math and Notepad++ (…)

    The same reply: LINK applies here as well, I’ll leave you now guys, continue your discussion.

  • CTRL+D gives selection not line

    9
    0 Votes
    9 Posts
    853 Views
    Alan KilbornA

    Some further discussion on this topic is HERE.

  • winget | real autoupdater finally

    2
    1 Votes
    2 Posts
    2k Views
    xomxX

    @Holger-Z said in winget | real autoupdater finally:

    It will report the update as successful, even so it didn’t install the update properly. That happens, when Notepad++ is running while winget is trying to update Notepad++.

    https://github.com/notepad-plus-plus/notepad-plus-plus/issues/10277#issuecomment-887779544

    I will see what I can do about it, I am adding a fix of the silent installer mode (/S), when the Notepad++ is already running, to my TODO-list.

  • View of the tabs above and below

    9
    0 Votes
    9 Posts
    3k Views
    SoCuS

    51bfa20d-0f12-49aa-92cd-a968e63097e2-image.png

    Okay, now it is.
    The translation that Google is giving me was not very clear.

    What I was doing, is dragging the tab, instead of clicking with the mouse button.

    Thank you very much.

  • Automatic selection of ALL instances of a searched string, in one go

    37
    5 Votes
    37 Posts
    5k Views
    Alan KilbornA

    @guy038 said in Automatic selection of ALL instances of a searched string, in one go:

    So, here is my updated script, that I called Automatic_Selections_AK.py

    Oh no, the script should fully be called Automatic_Selections_GT.py ! :-)

  • current session

    5
    0 Votes
    5 Posts
    470 Views
    notepad347N

    Thank you for explanation
    Sublime has a good solution showing project name in title bar, but there are some futures in notepad++ that I like to use. I guess sublime spoiled me.

  • Mark All or Mark Selected Words

    2
    0 Votes
    2 Posts
    1k Views
    Terry RT

    @joe-junior said in Mark All or Mark Selected Words:

    How can I get that done?

    There are a few ways of highlighting the required character strings. It will depend on what you ultimately intend to do with the highlighted text.

    Use Mark function (Search, Mark). You can set the search mode as normal and type in each string (one at a time) and hit the “Mark All” button, repeat for each string. At the end all of the strings wanted will be highlighted.

    Again using the Mark function but this time the search mode is “regular expression”. The Find What window will be HD|SD|12|#\+. Note that in this case as the + character is a meta-character (means something other than the character it is) I had to “escape” (\) it so that the regular expression engine will look for the plus sign rather than it’s normal meaning of “as many of the previous character together”. The | character is a separator character. it means this or that (Alternation, OR operand). So the regular expression engine can look for each string as a separate search simultaneously. Also if you only want the exact character (such as H, not h) then also click on the “Match Case” button.

    If you were wanting to remove (or copy) the lines containing the strings you would still use option #1 or #2 above, but also tick the “bookmark line”. Once the search has completed the left margin will contain a blue icon (sphere, circle) for lines containing the strings you seek. Right click over one of these and you will see options to copy, remove, cut (and then paste into another tab).

    If these do not benefit you, you will need to expand on your requirement. You should also consider reading the pinned post in the “General Discussion” called “Please Read This Before Posting” as it will help you include examples in the correct manner and also suggest other links in this forum to read.

    Terry

  • Macro and Run Commands Compatibility

    1
    0 Votes
    1 Posts
    328 Views
    No one has replied
  • 0 Votes
    4 Posts
    2k Views
    mkupperM

    @Bas-de-Reuver Notepad++'s regular expression search/replace has a couple of things that you and others may find useful.

    \R matches any style of newline such as CR, LF, and CRLF. While \R does not work in the replacement part it’s still useful.

    You can remove blank lines using ^\R+
    You can remove spurious blank lines using ^\R\K\R+
    The \K says to keep everything to the left meaning it will keep one blank line while removing spurious blank lines.

    In both cases it’s a regular expression search/replace with the replace part being nothing or blank. This also means we don’t care about the current end of line format as \R matches any of them and \K ends up keeping whatever end-of-line style is in use.

    It’s not clear from the OP’s example if they desired to remove the blank lines and then sort the resulting list or if they desired to have some sort of combining, merging, or interleaving of the lines that may or may not be sorted. As the OP then wanted to delete the thread it will likely forever remain a mystery.

  • Can't view Project Panel 1 and 2. How to show again?

    6
    0 Votes
    6 Posts
    577 Views
    Sally OctaviaS

    It is possible and has been found successfully.

    maybe it’s true, I searched for too much text, and had a typo or extra space in file or something.

    But this has worked
    Thank you for your help in helping me with the details

  • How to insert text before every line

    6
    0 Votes
    6 Posts
    2k Views
    Alan KilbornA

    @Chuck-Roberts

    If you have the Better Multiselection plugin installed and enabled…

    If you create a “column caret” (hold Shift+Alt while using arrow keys) before invoking the Column Editor, like this:

    3160e7fb-181c-4ecd-9ba9-e905a3d6bb03-image.png

    Then, after Column Editor does its work:

    c6cbd864-cca7-4bd0-94b2-208dde6f7908-image.png

    arrow to the right one time:

    e938dcee-bc58-4793-a765-2a45347d66de-image.png

    Then press period and space:

    2a923793-eb8f-4843-ae41-f00bd7d7031d-image.png

    @Mark-Olson said:

    I’m pretty sure that AlanKilborn recently authored at least one PR that improved the incrementing number feature in the column editor

    It is true, see HERE, but it would not have any impact on what @Chuck-Roberts needs to do here.

  • 0 Votes
    2 Posts
    401 Views
    PeterJonesP

    @Gordon-Gordonplex said in Make indentation and cursor position like other tsxt editors:

    know what setting should be changed and what it should be set to to fix it

    It’s not a problem, it’s a feature. Just a feature that doesn’t currently help you. Which is why “there are so many settings”

    The Settings > Preferences > Auto-Completion > ☑ Auto-Indent checkbox controls this. It defaults on, and it sounds like you want it off.

    There are so many settings (both Preferences and Style Configurator) that I can’t figure out which one might help

    Did you try going to the preferences page in the User Manual and search for the word indent? There are exactly 9 matches right now, one third of which are talking about the setting you need. It would have taken less than 5 minutes of your time to follow the ?-menu’s Notepad++ Online User Manual link, then see that there’s a page on preferences, then search for indent and read the three sections that show up – and you would have had your answer in the second of those three sections.

    I think it thinks I’m writing Fortran or something.

    Does it say “Fortran” or similar on the lower-left of your Status Bar?
    a55bb9fb-dc1f-4ac0-8865-f72e1faefdbc-image.png
    Or if your Status Bar is hidden, or too narrow to show the language name, what does the Language menu indicate?
    Or did you just say “Fortran” because you assumed it must be treating it as some sort of programming language, and “Fortran” is the first that came to your mind. (BTW: congratulations if “Fortran” is the first programming language that comes to your mind; most people would have said “Python” or some plebian “modern” language, not something as noble as “Fortran”. :-) )

    If your text files have non .txt extensions, it might be an extension that Notepad++ associates with another language. If that’s the case, let us know, and we can explain how to get that extension to automatically be Normal Text instead of Fortran (or whatever it actually is).

  • Script for better counting

    1
    5 Votes
    1 Posts
    435 Views
    No one has replied
  • Regular formulas

    1
    0 Votes
    1 Posts
    185 Views
    No one has replied
  • Notepad++ batch is no longer showing up on the language pulldown

    3
    0 Votes
    3 Posts
    231 Views
    PeterJonesP

    @Robert-Maarschalkerweerd ,

    Notepad++ batch is no longer showing up on the language pulldown

    Most likely, either your langs.xml has been corrupted (and given your text file about is talking about editing langs.xml, that is highly likely), or you have used Settings > Preferences > Language and moved Batch into Disabled Items, like:
    7057f840-8606-4a9c-a25c-6036987a3dc1-image.png

    If the latter is the case, click on Batch in that list, then click the <– button to put it back into your Language Menu

  • Search for a setting by its name

    5
    1 Votes
    5 Posts
    516 Views
    fml2F

    @Mark-Olson Thank you! The plugin does indeed accomplish what I needed, although in a bit other way than I thought.

  • difference between file => save as and save a copy as.

    4
    0 Votes
    4 Posts
    7k Views
    Alan KilbornA

    @PeterJones said in difference between file => save as and save a copy as.:

    because I wanted to save the current state of the file as a backup under a new name

    That’s about the only useful use for it.
    The way I use it more often though, is to keep working with both files.
    Thus, it becomes a multistep procedure for me. I have to Save a Copy As, and then File > Open the other file.
    This annoyed me so much at one point that I wrote a script (or someone else did and I just started using it) that does it in one step.

  • 0 Votes
    9 Posts
    766 Views
    guy038G

    Hello, @mkupper and All,

    Refer to the this post in order to correctly use the free-spacing mode :

    https://community.notepad-plus-plus.org/post/61100

    IMPORTANT :

    Multi-lines free-spacing regexes, like, for example :

    (?x-i) ^ \x20 \x20 abc # String 'abc' with LEADING spaceq | # or ^ \x20 \x20 def # String 'def' with LEADING spaces

    Works correctly, ONLY IF you click on :

    The Find Next or the Count button of the Find dialog

    The Replace or the Replace All button of the Replace dialog

    The Mark All button of the Mark dialog

    It will fail if you click on :

    The Find All in Current document button, of the Find diaog

    The Find All in All Opened Documents button, of the Find dialog

    The Find All button, of the Find in Files dialog

    The Find All button, of the Find in Projects dialog

    In addition, it wrongly switches the search mode to the Extended mode

    Instead, when using these buttons, you’ll have to use, either :

    A free-spacing regex, on a single line, ONLY, as, for example, the regex (?x-i) ^ \x20 \x20 abc | ^ \x20 \x20 def

    The simple regex (?-i)^\x20\x20abc|^\x20\x20def, with all text attached

    Refer to my GitHub issue :

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

    Best Regards,

    guy038