• Launching tail-f from the command line.

    14
    0 Votes
    14 Posts
    3k Views
    EkopalypseE

    This PS, saved as startup.py (user NOT machine and PS configuration changed from LAZY to ATSTARTUP) should do the trick

    e6fb0b18-db39-4bab-a14c-ebdea5b99411-image.png

    from Npp import notepad, MENUCOMMAND if '-tailmode' in notepad.getCommandLine(): notepad.menuCommand(MENUCOMMAND.VIEW_MONITORING)

    and npp like this notepad++.exe -multiInst -nosession "FULL_PATH_OF_THE_FILE" -z -tailmode

  • Delete number strings in the middle of lines of data

    20
    1 Votes
    20 Posts
    4k Views
    guy038G

    Hi, @craksoft, and All,

    You said :

    So this long thing (?-s)(?<=\d{4}-\d\d-\d\d)\h+.{8} is 6 number ?

    I don’t know what you means, exactly !?

    The regex expression (?-s)(?<=\d{4}-\d\d-\d\d)\h+.{8} deletes blanks characters and the next 8 characters, when preceded by a date, with the YYYY-MM-DD format. No more, no less :-)

    BR

    guy038

  • Notepad++ losing unsaved documents

    5
    0 Votes
    5 Posts
    1k Views
    Alan KilbornA

    @Jack-Adrian-Zappa said in Notepad++ losing unsaved documents:

    but that means that some update turned it off,

    Maybe “some update” was pretty smart, protecting you from features currently in question. :-)

    I would think that should be a priority to fix.

    There’s been some attempts.

  • "Always on top" deactivation

    2
    0 Votes
    2 Posts
    240 Views
    EkopalypseE

    @Hadi-Jam

    if you want it to be always on top then start npp with the command line paramter -alwaysOnTop.

  • Need the ability to have fixed-width line number column

    19
    0 Votes
    19 Posts
    10k Views
    Alan KilbornA

    @Michael-Vincent said in Need the ability to have fixed-width line number column:

    (Scintilla multiedge)

    You mentioned “multiedge” briefly above; I agree that this could definitely help the OP. And, it appears a native multiedge capability is coming soon to Notepad++ !

    See https://github.com/notepad-plus-plus/notepad-plus-plus/pull/8107 and :

    f8d30148-91ff-48c1-a887-3c9de23250d5-image.png

  • Help find 2nd occurrence and replace

    16
    0 Votes
    16 Posts
    5k Views
    astrosofistaA

    Hi @guy038

    Thank you, your’s is good advise, as well as @Alan-Kilborn’s. As I told him, I only took into consideration the Windows case, ignoring other platforms.

    Will try to not forget it.

    Best Regards

  • "Find" box grayed out.

    10
    1 Votes
    10 Posts
    2k Views
    astrosofistaA

    @chilkoot

    Great! It is good to hear that it worked for you.

    Best Regards.

  • macro-writing

    4
    0 Votes
    4 Posts
    289 Views
    Alan KilbornA

    The discussion is continued HERE.

  • macro-writing

    4
    0 Votes
    4 Posts
    591 Views
    Alan KilbornA

    The discussion is continued HERE.

  • macro-writing

    2
    0 Votes
    2 Posts
    204 Views
    Alan KilbornA

    @khk-khk

    I’m not sure why you are opening a separate new thread each time you are replying, but OK, it is good that things are making sense on your end! :-)

  • Auto-Completion settings are just plain odd

    6
    5 Votes
    6 Posts
    307 Views
    astrosofistaA

    @dail

    Yes, that makes sense. As I said in my earlier post, the picture looks fine… but not nice.

  • Move the entire tag to another location in the same XML file

    6
    0 Votes
    6 Posts
    649 Views
    guy038G

    Hello, Hi, @tư-mã-tần-quảng and All,

    I forgot to explain my regex S/R :

    SEARCH (?s-i)(\h+<name>.+?)(\h+<id>.+?\R)

    REPLACE \2\1

    So :

    First, the part (?s-i) has already been explained by @alan-kilborn !

    Then, the part \h+<name> searches for some horizontal blank characters, followed with the string <name>, with this exact case

    Now, the part .+?, due to the s modifier, looks for the shortest non-null range of any char, even EOL ones, till … some blank chars, again, followed with the string <id>, with this exact case

    The two parts above are stored as group 1 because of the surrounding parentheses. Note that it, necessarily, ends with EOL chars, as followed with the <id> line !

    Then the part \h+<id> matches any horizontal blank chars, followed with the string <id>, with this exact case

    Finally, the part .+?\R matches the shortest non-null range of any char till… the next EOL chars, so ending the <id> line

    Again, the two parts above are stored as group 2 because of the surrounding parentheses.

    Note that the \R syntax stands for any kind of line-break ( \r\n for Windows files, \n for Unix files and \r for Mac files )

    In replacement, the \2\1 rewrites, in reverse order, the single-line group 2 ( line <id> ) and the multi-lines group 1

    Best Regards,

    guy038

  • search-replace

    4
    0 Votes
    4 Posts
    233 Views
    khk khkK

    @khk-khk Thanx to all - I’ll try

  • How to opt out of OAuth App but continue to have access to the NPP forum?

    5
    0 Votes
    5 Posts
    289 Views
    PeterJonesP

    @Alan-Kilborn said in How to opt out of OAuth App but continue to have access to the NPP forum?:

    Just a bit more, here…

    Thanks for the clarification: that was probably wise to add the extra information.

  • Need a copy of the red marked regions, after a "Mark All" operation

    13
    0 Votes
    13 Posts
    1k Views
    Alan KilbornA

    @guy038

    in case of overlapping matches

    Well, I meant non-overlapping matches of course. Often while marking data it is simpler to come up with 3 or 4 successive marking operations on different data in order to capture everything you want; coming up with one regex, while perhaps an interesting exercise, would likely be distracting from your at-hand task.

  • How to change Compair Plugin background color for unmatched lines?

    2
    0 Votes
    2 Posts
    233 Views
    Fran-3F

    Suddenly the light bulb went off…
    Click Plugins > Compare > Settings
    and then experiment with the colors to find a background color you like for mismatched lines.

  • Session bug in v7.8.5 ?

    13
    0 Votes
    13 Posts
    2k Views
  • 1 Votes
    4 Posts
    443 Views
    mccrispyM

    @PeterJones Thanks for the repro work! I had a strong suspicion that the location of <LanguageAutoComplete> is hardwired (why would it not have been included in <UserLocations> if there wasn’t some reason - presumably technical - for it?)

    Frankly, I consider it a Security issue to have user configurable files in %ProgramFiles(x86)% (I’m not alone in this regard!). Now on my machine Controlled Folder Access is enabled and I’m not sure how that interacts with UAC folder virtualisation (VirtualStore) for x86 apps and I’m not about to find out by experimentation. I’ll give it a few days then log a (security) bug.

  • Change the extension of the .txt file

    11
    0 Votes
    11 Posts
    9k Views
    Fake TrumF

    @PeterJones It is not always convenient like this. Perhaps today I am lucky, to meet you. I am using google to translate. And my question was brief, so Google did a good job. Once again very thank you for this

  • about selection

    47
    0 Votes
    47 Posts
    11k Views
    cisco779kC

    @guy038 tanxs you so much for your explanation and for modification to your reg-ex!
    now it works very well!
    I never said I had an example like yours, but maybe it’s my fault that I didn’t explain myself well …
    everything is working fine now. always thanks for your regex!
    cheers