• 0 Votes
    10 Posts
    5k Views
    TyrantRCT

    @Meta-Chuh that’s a very interesting approach, will try this, although I honestly don’t know why notepad++ doesn’t have any way to open a new temp file without losing a session on start up as most software you find.

  • 0 Votes
    2 Posts
    2k Views
    Meta ChuhM

    welcome to the notepad++ community, @Wings2019

    notepad++ 7.6.4 (x86 and x64) consumes about 13-14mb ram, when all plugins are behaving correctly and no documents are opened.
    (when notepad++ is only showing a new 1 tab).

    please go to ? > debug info... > copy debug info into clipboard and paste it here, to have a look at your specific setup and your plugins.

    also check if you have opened large files in your session, as notepad++ will additionally allocate the memory to the size of all files to be re-opened.

    if the memory allocation drops and rises again in a loop, there might also be the chance, that you have opened one or more large files (300mb or more) and activated view > monitoring (tail -f) on one or more of them.

  • Doc Switcher missing

    Locked
    2
    0 Votes
    2 Posts
    1k Views
    Meta ChuhM

    @JVPage

    I can’t get the Doc Switcher anymore. Is there any way to get it back?

    yes. go to settings > preferences > general > document list panel and activate show.

    ps: how do you do with your >>> zoom level on status bar <<< ?
    did you file a feature request, or did you do it with pythonscript, or did you ignore it for now ? ;-)

  • Increase by Letters, not just numbers?

    11
    0 Votes
    11 Posts
    2k Views
    guy038G

    Hi, @moe-skaato, @alan-kilborn, @terry-r and All,

    Of course, the fact of inserting letters, only at a specific column could be binding :-(( So, here is a new method, not based on columns ;-))

    Assuming your text, in a new tab :

    preset1= “description about preset” preset2= “description about preset” preset3= “description about preset” preset4= “description about preset” preset5= “description about preset” preset6= “description about preset” preset7= “description about preset” preset8= “description about preset” preset9= “description about preset” preset10= “description about preset” preset11= “description about preset” preset12= “description about preset”

    Now, just append your list of letters, at the end of your text, with one letter per line ! Of course, you need to insert, at least, the 12 first letters, but you may list, for instance, all letters from A to Z

    Let’s add letters from A to P. So we get the text :

    preset1= “description about preset” preset2= “description about preset” preset3= “description about preset” preset4= “description about preset” preset5= “description about preset” preset6= “description about preset” preset7= “description about preset” preset8= “description about preset” preset9= “description about preset” preset10= “description about preset” preset11= “description about preset” preset12= “description about preset” A B C D E F G H I J K L M N O P

    Now, using the regex S/R :

    SEARCH (?-s)^(preset)(\d+)(?=(?:.+\R){12}(.))|^(.\R)+.?\Z

    REPLACE ?1\1\3

    You should get, after a click on the Replace All button :

    presetA= “description about preset” presetB= “description about preset” presetC= “description about preset” presetD= “description about preset” presetE= “description about preset” presetF= “description about preset” presetG= “description about preset” presetH= “description about preset” presetI= “description about preset” presetJ= “description about preset” presetK= “description about preset” presetL= “description about preset”

    And if you change the Replace regex with :

    REPLACE ?1\1\2\3

    While keeping the Search regex, you’ll obtain :

    preset1A= “description about preset” preset2B= “description about preset” preset3C= “description about preset” preset4D= “description about preset” preset5E= “description about preset” preset6F= “description about preset” preset7G= “description about preset” preset8H= “description about preset” preset9I= “description about preset” preset10J= “description about preset” preset11K= “description about preset” preset12L= “description about preset”

    Of course, you can choose any list of letters, in any order and, also, the leading part of each line :

    For instance, giving the initial text below :

    preset1= “description about preset” preset2= “description about preset” preset3= “description about preset” preset4= “description about preset” preset5= “description about preset” preset6= “description about preset” preset7= “description about preset” preset8= “description about preset” preset9= “description about preset” preset10= “description about preset” preset11= “description about preset” preset12= “description about preset” z a y b x c w d v e u f t g s h r i q j

    With the Replace regex, below ( Again, Search regex is not modified )

    REPLACE ?1Line #\2\3\t

    Here is the result :

    Line #1z = “description about preset” Line #2a = “description about preset” Line #3y = “description about preset” Line #4b = “description about preset” Line #5x = “description about preset” Line #6c = “description about preset” Line #7w = “description about preset” Line #8d = “description about preset” Line #9v = “description about preset” Line #10e = “description about preset” Line #11u = “description about preset” Line #12f = “description about preset”

    As you can see, the limit is just your imagination. With regular expressions, you can modify text in so many ways ;-))

    Notes :

    The search regex begins with (?-s), an in-line modifier, which tells that the dot ( . ) will match one standard character ( not EOL ones )

    Then there are two alternatives :

    ^(preset)(\d+)(?=(?:.+\R){12}(.))

    ^(.\R)+.?\Z

    The first alternative matches, from beginning of line ( ^ ) , the literal sting preset, stored as group 1, followed with a number \d+, stored as group 2 but ONLY IF the look-ahead is true that is to say if it exists 12 non-empty lines, with their EOL characters ( \R ), followed with, at least, one character ( a letter) on the next line, stored as group 3

    Of course, in case that your text to re-number contains more or less than 12 lines, just indicate that exact number in the search regex, instead of the number 12 !

    The second alternative simply matches the complete list of letters, at the end of your document. So a non-empty list of one-char lines ^(.\R)+, possibly followed with a last char ( .? ) before some possible EOL chars, ending the current file ( assertion \Z )

    The replacement regex, for instance ?1Line #\2\3\t, is a conditional replacement, which means that, IF group 1 exists, then it writes, first, the expression Line #, followed with the initial numbers ( group 2 ), followed with the character, taken from the list of letters ( group 3 ) and, finally, a tabulation char ( \t )

    Best Regards,

    guy038

  • 0 Votes
    3 Posts
    555 Views
    Christopher PhillipsC

    Perfect thanks 1-999 is also fine.

  • how do I clear find result window with keystrokes/shortcut

    Locked
    8
    0 Votes
    8 Posts
    2k Views
    Meta ChuhM

    @Alan-Kilborn

    The sniffling was mainly for your benefit

    i thought so, and my first thought was: how thoughtful of you :)

    as Claudia and Scott will never see it. :)

    hmmmmmh … sure about that ? what if someone else is claudia in disguise ? 😈🍏🐍

    Your guide is conspicuously missing how to set up PS with a portable N++ >= 7.6.3. Or was this discussed elsewhere?

    yes, e.g. here: https://notepad-plus-plus.org/community/topic/17256/guide-how-to-install-the-pythonscript-plugin-on-notepad-7-6-3-7-6-4-and-above/1
    or here: https://notepad-plus-plus.org/community/topic/16942/pythonscript-any-ready-pyscript-to-replace-one-huge-set-of-regex-phrases-with-others/12

    but never as a stand alone guide, because apparently portable users usually know how to install it.

    if it get’s asked again, i, or anybody else, might make a new guide about that.

    (ps: in other words: i’ve completely forgotten that, while writing the guide … but hushhhhhhhh, dont tell anyone 😉 )

  • Regex find single quote prefaced by a letter and followed by a letter

    Locked
    3
    0 Votes
    3 Posts
    595 Views
    John TuckerJ

    Thanks, that worked a treat!

  • Generate loops in xml templats

    8
    0 Votes
    8 Posts
    2k Views
    Per Elkjær NielsenP

    Hi guy038

    It’s a very impressive workaround you’ve come to. It’s not easy on , but it works for purposes I wanted

    At the same time, it has been very helpfull to follow your guides on using Regex, Which inspire me to try on my own to create simelar xml templates

    Many thanks and sorry the long response time

    Br Per

  • 0 Votes
    2 Posts
    469 Views
    andrecool-68A

    @Nancy-Rosenzweig

    Relative and absolute file path
    You do not know what the difference is?

  • print in windows 10

    Locked
    2
    0 Votes
    2 Posts
    498 Views
    Alan KilbornA

    @Mixads-lxl

    How is that related to Notepad++ ?

  • Simple method to move text column to another (tab) position

    Locked
    2
    0 Votes
    2 Posts
    1k Views
    Meta ChuhM

    welcome to the notepad++ community, @Æþelleo-Durkin240

    to my eyes, both of your text samples look the same.
    please use ``` as starting and ending lines, and paste your notepad++ content in between them.

    example template:

    ```
    paste your code here
    ```

    your result will now look like this:

    paste your code here

    this will preserve all tabs and spaces you use.

    note: you will notice a panel to the right of where you are typing.
    this is your preview panel, which will show you in advance, before submitting, how others will see your post.

  • Character classes don't work for me in v. 7.5.7

    Locked
    2
    1 Votes
    2 Posts
    495 Views
    Meta ChuhM

    @Meir-Goldenberg

    it would be interesting to know what you are trying to search, and where you search for it. (code example)

    notepad 7.5.7 should find every single white-space (space, tab, cr, lf, ff, vt) if you do a regex search for [[:space:]]

    does a regex search for \s work for you ?
    (this is an alternative, shorter, writing syntax for [[:space:]])

  • UDL delimiters

    6
    0 Votes
    6 Posts
    2k Views
    EkopalypseE

    @Meta-Chuh

    u+00a7 is §

    that happens if you just want to quickly answer something but didn’t read
    carefully what has been written.

    @Richard-Clink - sorry for confusion.

    Is odd, that this char isn’t working but haven’t checked source code so far.
    Will give it a try later.

  • Allow non-admin User to install Plugins with Plugin Admin

    Locked
    7
    0 Votes
    7 Posts
    5k Views
    Meta ChuhM

    @SKoetting

    you are welcome.
    thank you for reporting back and happy deploying 👍

  • 7.6.3 does not find update 7.6.4?

    Locked
    7
    0 Votes
    7 Posts
    3k Views
    Meta ChuhM

    welcome to the notepad++ community, @Skrol29

    Wouldn’t be a nice feature for the update server to return a dedicated message ? Like :
    « Your version need a manual update. »
    or
    « Notepad++ 7.6.4 available. The automatic update has a problem. Wait few days or do a manual update. »

    yes and no.

    « Your version need a manual update. »:
    this might confuse non power users, probably leading them to believe, that there is something wrong at their current setup or current notepad++ version, requiring a manual repair.

    « Notepad++ 7.6.4 available. The automatic update has a problem. Wait few days or do a manual update. »:
    this contains the word “problem”, probably leading them to believe, that there is something wrong with the update servers, or worst case, a problem at their current installation, eventually leading them to conduct unnecessary “fixing” steps.

    i agree with the developer’s current choice, to omit any further explanation at the updater, as soon as a reason is found to delay or suspend an update.
    all technical information about any delay can be found here, if interested admins or power users like you, discover a newer release, and want to know more about it, or why it is currently suspended as an automatic update.

    please keep in mind that there are millions of regular notepad++ users all around the world, and dealing with an elevated amount of repeated supportive questions, triggered by a potentially misleading updater message, will be very difficult for the solely volunteering community members and the volunteering developers.

  • Feature Request: current Zoom to Status Bar

    Locked
    5
    1 Votes
    5 Posts
    1k Views
  • Encoding tricks...

    Locked
    2
    1 Votes
    2 Posts
    5k Views
    Meta ChuhM

    welcome to the notepad++ community, @Benoit-Martha

    your computer “b” most probably has notepad++ 7.6. or higher installed, while computers “a” and “c” have notepad++ 7.5.9 or below.

    unfortunately autodetect character encoding is broken since notepad++ version 7.6. and above.

    currently it is necessary to:

    go to settings > preferences > misc and disable auto detect character encoding on your computer “b”, as seen at the screenshot below.

    settings - auto detect character encoding

    then go to settings > preferences > new document and set your preferred default encoding to e.g utf-8, as seen at the screenshot below.

    Imgur

    after that repeat your testing, it will work on computer “b” now.

    note: a solving regression rollback fix for that issue has been committed and pushed to the pull requests, but it has currently been suspended by @donho as the issue is being inspected, to evaluate if a fix is possible, instead of a rollback.

  • set to single column

    Locked
    2
    0 Votes
    2 Posts
    588 Views
    Terry RT

    @Edward-Ayers said:

    paste it into excel in one column

    Are you having an issue with doing that? I just tested now with lines that contain a , (comma) and " (quotes) thinking that might affect insert into Excel, but it still worked, putting each line into cells in one column.

    So in the NPP tab, Ctrl-A, then Ctrl-C and in excel select 1 cell and Ctrl-V.

    Terry

  • C++ In internet explorer

    Locked
    7
    0 Votes
    7 Posts
    1k Views
    andrecool-68A

    @Meta-Chuh
    And there is no Transmission)))

  • how can i run the code that i wrote in Notepad++?

    Locked
    2
    0 Votes
    2 Posts
    580 Views
    Meta ChuhM

    welcome to the notepad++ community, @Tim-Rosin

    how can i run the code that i wrote in Notepad++?

    close notepad++. put on your sport sneakers. open your door. step outside. close your door. (important note: don’t forget the keys before executing this step) start running.

    alternative:
    you can give us more information of what code you are writing, and in what language you are writing it. (note: please refer to your required computing language, not to your native language)