• 0 Votes
    7 Posts
    678 Views

    @PeterJones
    Well i raised a request on github page. I hope it gets some interest from the dev.

  • Customize search result format

    Jul 14, 2020, 8:33 AM
    0 Votes
    2 Posts
    168 Views

    @Easter-Solve

    Can I customizing the format result of the “Search”?

    As a configuration option? Nope.

    But what exactly want you to change maybe there is a workaround for that?

  • Setup to run unitTestLauncher.ps1

    Jul 9, 2020, 2:13 PM
    1 Votes
    6 Posts
    315 Views

    @Ekopalypse Thanks for your help and motivating me to go some steps further!

    I got it:

    I changed my setup to:

    C:\notepad-plus-plus-master <- where I copied the current Notepad++ clone
    C:\npp_7_8_8_bin_x64 <- where the latest realese was unzipped

    This makes it possible to put the path in unitTestLauncher.ps1 without quotation marks (your proposal did not work as this was what caused the “unexpected token”-error), as there is no space in the path (due to Windows “Program Files” -> bad Microsoft!).

    Now my first line in unitTestLauncher.ps1 is:

    C:\npp_7_8_8_bin_x64\notepad++.exe -export=functionList -lasm .\asm\unitTest | Out-Null

    BTW: I get onlly 2x “OK” as the bash test fails. But that´s another story.

    Now I can go on with the VHDL unittest! Thanks for your help!

  • Replace A if B=C

    Jul 13, 2020, 10:51 AM
    0 Votes
    4 Posts
    238 Views

    @guy038 said in Replace A if B=C:

    Hi, @jaevwyn and All,

    If I correctly understood you, you want that the value of the TillNumber attribute is changed by the number 91 ONLY IF the value of the StartDate attribute is prior to the date 2020-04-01

    If so, the following regex S/R should work :

    SEARCH \d+(?=</TillNumber>\R.+\R<StartDate>(19\d\d|20[01]\d|2020\-0[123]))

    REPLACE 91

    Of course, select the Regular expression search mode and, may be, the Wrap around option

    Best Regards,

    guy038

    Perfect, thanks!

  • 0 Votes
    6 Posts
    416 Views

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

  • RegEx domain extraction

    Jul 12, 2020, 9:58 AM
    0 Votes
    3 Posts
    788 Views

    @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

  • 0 Votes
    3 Posts
    850 Views

    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.

  • 0 Votes
    2 Posts
    172 Views

    @Glogernater

    This sounds similar to THIS.

  • Extract the lines greater than

    Jul 10, 2020, 5:52 AM
    0 Votes
    6 Posts
    2k Views

    @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.

  • 0 Votes
    3 Posts
    273 Views

    @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

  • 0 Votes
    4 Posts
    1k Views

    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.

  • 0 Votes
    19 Posts
    908 Views

    @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

  • 0 Votes
    2 Posts
    422 Views

    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

  • 0 Votes
    17 Posts
    2k Views

    @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

    Jul 8, 2020, 8:52 AM
    0 Votes
    3 Posts
    220 Views

    @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
    175 Views

    @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.

  • 0 Votes
    5 Posts
    5k Views

    @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

    Jun 30, 2020, 9:50 PM
    0 Votes
    2 Posts
    2k Views

    @HR-HufnStuf

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

  • 1 Votes
    8 Posts
    802 Views

    @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. :-)

  • 0 Votes
    2 Posts
    206 Views

    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