• Automatic text transform with incremental numbering

    6
    0 Votes
    6 Posts
    395 Views
    Maxim AbrossimowM

    @WinterSilence Thank you, too for your input! I tried with RegEx, but it is just so much easier with Python…

  • RegEx domain extraction

    3
    0 Votes
    3 Posts
    766 Views
    Stefan RalicS

    @guy038 this did the trick :) Thank you so much… I tried that already but now i see i was missing ) so no wonder it didn’t work. Thanks again. Best regards

  • NPP 7.8.5 breaks CustomizeToolbar plugin

    3
    0 Votes
    3 Posts
    797 Views
    ygoe____Y

    Okay, the breaking change in Notepad++ 7.8.5 was the menu structure. In the menu “Ansicht” (View), the submenu “Nicht druckbare Zeichen” (Non-printable characters) has been renamed to “Symbole anzeigen” (Show symbols). Since the custom toolbar button plugin only reads the menu titles (and doesn’t use persistent and language-invariant IDs like everybody else), it will break whenever something has been renamed there.

  • File already open in notepad++ Error

    2
    0 Votes
    2 Posts
    168 Views
    Alan KilbornA

    @Glogernater

    This sounds similar to THIS.

  • Extract the lines greater than

    6
    0 Votes
    6 Posts
    2k Views
    Alan KilbornA

    @guy038 said in Extract the lines greater than:

    And I thought that the OP wanted to select the entire lines with last number greater than 14.

    Yes, you thought that because that’s what the OP said. :-)

    May be, the OP just wants to delete lines with last number under 15 !

    I don’t know about that.
    I’ve already queried the OP on what his end goal is.
    Probably best to wait for that answer, if it ever comes.

  • Problems with Notepad++ v7.8.7 windows management icons dissapear

    3
    0 Votes
    3 Posts
    261 Views
    1980Gandalf1

    @PeterJones Hello and thanks Peter.

    Notepad++ DebugInfo.jpg

    “You uninstalled it, but have you rebooted to make sure that all remnants are gone?” Yes I did it because I don’t know why my computer stopped detecting some external hard drives connected through USB and tested in different ports so I finally rebooted.

    Sorry but I realized (I think it could happened the same earlier) that could be a framwework windows border color problem (not windows or notepad++). I changed windows border framework because with dark mode I wasn’t able to see anything when I was managing windows border so I read a article how to geek in how to change it and now, I think that in the first image I can’t see the whole notepad++ window border because program is really top located and blue border is mixed with other program blue border
    Notepad-Problem.jpg

    But now it seems I can see notepad++ blue border mixed with other program blue border but I can see windows management icons
    01 Windows frameworks.jpg

    Sorry first for posting wrong images (this time I used upload image forum option) and secondly I think it could have been a visual effect and not a bug of windows or notepad++, anyway, I will keep checking it to see if I experience it again.

    Thanks a lot for your help @PeterJones

  • Searching two words on different lines

    4
    0 Votes
    4 Posts
    1k Views
    Alan KilbornA

    Like most of @Makwana-Prahlad 's posts, this one deeply confuses me.

    You need a new version of notepad++. Looks like old versions don’t support |.

    Misinformation, unless by “old” you mean pre-6.0.
    But why would you assume OP is using a really old version anyway – the OP didn’t say what version, but…

    egrep

    What does that have to do with anything??

    egrep “CAT|TOWN” will search for lines containing CATOWN.

    What does that have to do what the OP is needing to do?

    I could pick apart the rest of the posting, but it is getting tiring.
    Just please, don’t spread misinformation.

  • How to suceed these actions in notepad++ (images included)

    19
    0 Votes
    19 Posts
    873 Views
    DJSpirosGD

    @guy038 said in How to suceed these actions in notepad++ (images included):

    Thanks for searching on your own ! Your regex is OK if the second line begins with a digit but would not work if the first line would begin with a digit

    I’am trying to learn! Not successfully i guess :-P

    You are right i haven’t thought about the first line, i was focusing on artist because of my example. I don’t say that i could solve it though :-)

    By the way your script works flawlessly

  • Range Comand of Numbers in UDLdidn't work

    2
    0 Votes
    2 Posts
    406 Views
    guy038G

    Hello, @hans-gerch and All,

    The Range field ( Bereich ) is not intended to define the range of numbers

    It’s just a kind of suffix-prefix symbol(s) which will be highlighted, like the numbers placed right before and, possibly, the numbers located right after

    For instance, if that Range zone contains - :: __ ( a single dash, a double colon or a double underscore chars ), this means that, for instance, all the strings, below, will be highlighted in red

    2-0.5 100::47 0.003__7.785 0000::

    Now, I’m not very acquainted with UDL and I don’t see an obvious way to distinguish the digit 0 from the other digits ! I’m afraid that it cannot be do with the native N++ UDL feature.

    However, you could use an enhanced UDL lexer, which could manage, differently, the 0 digit from the others. Two conditions :

    Firstly, install the PythonScript plugin ( last version 1.5.4, using Python v2.7.18 )

    Secondly, use the EnhanceUDLLexer.py Python script, created by @ekopalypse, from that post :

    https://notepad-plus-plus.org/community/topic/17134/enhance-udl-lexer/31

    Best Regards,

    guy038

  • Sort case insensitive on 64 bit?

    17
    0 Votes
    17 Posts
    2k Views
    Alan KilbornA

    @Michael-Vincent @Terry-R

    Hey! Those don’t should like sh!tty names!
    They seem like backronyms to me though. :-)

  • Convert Clock Hours to Double Digits

    3
    0 Votes
    3 Posts
    217 Views
    Sean PerryS

    @guy038 said in Convert Clock Hours to Double Digits:

    \b\d:\d\d([[:punct:]]\d\d([[:punct:]]\d\d)?)?

    You are correct, that did the trick and saved me a lot of time. Thank you!

  • 0 Votes
    2 Posts
    169 Views
    Alan KilbornA

    @Võ-Văn-Hiếu

    I guess because a developer forgot to add it? :-)

    If you want to get it added, you can make a request by following the instructions provided HERE.

    As a workaround, you could record the operation into a macro, and then bind your desired keycombo to that macro.

  • Notepad++ 7.8.7 freeze/whiteout on start

    5
    0 Votes
    5 Posts
    5k Views
    Alan KilbornA

    @brkerez

    Nice analysis!
    It’s a good reminder for everyone in an odd situation: The first thing you should try is disabling all plugins and see what that does for you.

  • Proxy settings

    2
    0 Votes
    2 Posts
    2k Views
    HR HufnStufH

    @HR-HufnStuf

    The answer to this was actually simple. When I connected to our guest network or my personal network at home it worked.

  • Parenthesis (<curved brackets>) won't appear when 'Replacing'.

    8
    1 Votes
    8 Posts
    790 Views
    Alan KilbornA

    @Terry-Gaff-0

    Ah, it didn’t hit me that your macro uses Replace and not Replace All (until I looked up the 1608 in Peter’s link above).

    With Replace you could very well intend to run it twice in succession, in which case those “6 lines” would be duplicated in the recorder data.

    It all depends upon what you are actually doing (which we don’t have a good grasp on). We trust that YOU know what you are doing. :-)

  • adding incremental number between ' '

    2
    0 Votes
    2 Posts
    200 Views
    guy038G

    Hello, @speedrider and All,

    Here is my solution :

    From your text :

    '13': type: SHOP id: SPRUCE_WOOD buy-price: 200.0 '14': type: SHOP id: BIRCH_LOG buy-price: 200.0 '15': type: SHOP id: BIRCH_WOOD buy-price: 200.0 '16': type: SHOP id: JUNGLE_LOG buy-price: 200.0 '17': type: SHOP id: JUNGLE_WOOD buy-price: 200.0 '18': type: SHOP id: ACACIA_LOG buy-price: 200.0 '19': type: SHOP id: ACACIA_WOOD buy-price: 200.0 '20': type: SHOP id: DARK_OAK_LOG buy-price: 200.0 '21': type: SHOP id: DARK_OAK_WOOD buy-price: 200.0 '22': type: SHOP id: SPONGE buy-price: 260.0 '23': type: SHOP id: BRICKS buy-price: 270.0 '24': type: SHOP id: WHITE_WOOL buy-price: 320.0

    Do this regex S/R :

    SEARCH \R(?!\h*')|('\d+')

    REPLACE ?1'':|

    Select the Regular expression search mode

    You should get this text :

    '':| type: SHOP| id: SPRUCE_WOOD| buy-price: 200.0 '':| type: SHOP| id: BIRCH_LOG| buy-price: 200.0 '':| type: SHOP| id: BIRCH_WOOD| buy-price: 200.0 '':| type: SHOP| id: JUNGLE_LOG| buy-price: 200.0 '':| type: SHOP| id: JUNGLE_WOOD| buy-price: 200.0 '':| type: SHOP| id: ACACIA_LOG| buy-price: 200.0 '':| type: SHOP| id: ACACIA_WOOD| buy-price: 200.0 '':| type: SHOP| id: DARK_OAK_LOG| buy-price: 200.0 '':| type: SHOP| id: DARK_OAK_WOOD| buy-price: 200.0 '':| type: SHOP| id: SPONGE| buy-price: 260.0 '':| type: SHOP| id: BRICKS| buy-price: 270.0 '':| type: SHOP| id: WHITE_WOOL| buy-price: 320.0|

    Now place the caret between the first '' zone

    Open the Column editor ( Alt + C ) and renumber as you like

    Don’t forget to tick the Leading zeros option

    For instance, we could end with this text :

    '01':| type: SHOP| id: SPRUCE_WOOD| buy-price: 200.0 '02':| type: SHOP| id: BIRCH_LOG| buy-price: 200.0 '03':| type: SHOP| id: BIRCH_WOOD| buy-price: 200.0 '04':| type: SHOP| id: JUNGLE_LOG| buy-price: 200.0 '05':| type: SHOP| id: JUNGLE_WOOD| buy-price: 200.0 '06':| type: SHOP| id: ACACIA_LOG| buy-price: 200.0 '07':| type: SHOP| id: ACACIA_WOOD| buy-price: 200.0 '08':| type: SHOP| id: DARK_OAK_LOG| buy-price: 200.0 '09':| type: SHOP| id: DARK_OAK_WOOD| buy-price: 200.0 '10':| type: SHOP| id: SPONGE| buy-price: 260.0 '11':| type: SHOP| id: BRICKS| buy-price: 270.0 '12':| type: SHOP| id: WHITE_WOOL| buy-price: 320.0|

    Now, use this simple regex S/R to get your initial list :

    SEARCH \|

    REPLACE \r\n for Windows files    OR    \n for Unix files

    '01': type: SHOP id: SPRUCE_WOOD buy-price: 200.0 '02': type: SHOP id: BIRCH_LOG buy-price: 200.0 '03': type: SHOP id: BIRCH_WOOD buy-price: 200.0 '04': type: SHOP id: JUNGLE_LOG buy-price: 200.0 '05': type: SHOP id: JUNGLE_WOOD buy-price: 200.0 '06': type: SHOP id: ACACIA_LOG buy-price: 200.0 '07': type: SHOP id: ACACIA_WOOD buy-price: 200.0 '08': type: SHOP id: DARK_OAK_LOG buy-price: 200.0 '09': type: SHOP id: DARK_OAK_WOOD buy-price: 200.0 '10': type: SHOP id: SPONGE buy-price: 260.0 '11': type: SHOP id: BRICKS buy-price: 270.0 '12': type: SHOP id: WHITE_WOOL buy-price: 320.0

    Voila !

    Best Regards,

    guy038

  • How to copy or extract particular string value from each line ?

    11
    0 Votes
    11 Posts
    6k Views
    guy038G

    Hi, @ekopalypse, @sagar-kurapati, @alan-kilborn and All,

    @ekopalypse, you’re perfectly right about it ! I’m probably going to add a remark in my previous post !

    Indeed, if I move the caret to a line containing a MD5 signature, without the restrictive condition that it must also contain the string POST/items/update-batch, my regex wrongly matches it :-((

    The problem is that, after moving caret to any position, the regex engine thinks that this location is the very start of the text. It’s a general drawback of the powerful \G behavior !

    Normally, the regex engine always tries, first, the first alternative of regex C, because of the (?-s) modifier and because of line-breaks in text. Indeed, the second alternative is never tried, first, as possible matches cannot be contiguous

    So the 1st part matches, for instance, the string OST/items/update-batch4311bbbeca82649427b192c7b868133c. Then the 2nd alternative \G.+?\K[[:xdigit:]]{32} matches the contiguous area, made of the smallest range of any standard char till an other MD5 signature and so on till the end of current scanned line

    Then, because of the line-break chars, the next match cannot be contiguous, implying, necessarily, that the next match will be satisfied by the first alternative, only !

    A solution would be to :

    Firstly mark all the lines containing the string OST/items/update-batch with a special symbol, ending each line

    Secondly, search for any MD5 signature, ONLY IF current line ends with that special symbol

    Thirdly delete this special symbol, as well

    But, I haven’t found out a fair regex to suppress this drawback, yet !

    To conclude, I think that the only sensible solution is to move the caret to the very beginning of file, which does not match, most of the time, the regex pattern located after the \G syntax ;-))

    Best Regards,

    guy038

  • Can I replace character with linefeedchracater in Notepad++ ?

    7
    0 Votes
    7 Posts
    412 Views
    PeterJonesP

    @PeterJones said in Can I replace character with linefeedchracater in Notepad++ ?:

    Let’s see how it renders after posting…

    baa88330-f1b9-45cf-9976-70e53c601375-image.png

    Looks like \\[ and \\] have special meaning in the forum’s markdown’s backtick implementation. Weird.

  • Totally botched view of an .rtf file

    7
    1 Votes
    7 Posts
    1k Views
    David GalbraithD

    Well, I guess it’s not the Fault of NPP. I even opened it up in Word and removed all formatting and tried again. Didn’t help. I’ll just have to create a new rtf file and copy the text over and then replace all of my copies with the new rtf file. Thanks for being so helpful. :)

  • Hunspell

    6
    0 Votes
    6 Posts
    785 Views
    Thomas 2020T

    I think you are probably going to have to type more than 5-8 words in a posting in order to get your point across.

    The shorter the sentences, the more easily the translator translates.

    Ignored only for current session.
    This means it will reappear the next time it is edited.

    I can’t convert pl_PL.dic to a dictionary and convert again to pl_PL.dic.