• How to add an incremenetal number increase but not on every line

    4
    0 Votes
    4 Posts
    429 Views
    Neil SchipperN

    @reddit-mod

    Instructions and sample usage (for a slightly different problem) here.

    If the data you’ve shown is truly the data you’re working with, you can achieve what you want with much simpler techniques. You could start with an empty file, insert a column with ascending numbers, then, either using a macro or a regex F&R, add in the rest of the (multiline) fixed text at the end of each line.

  • Delete Partially Duplicate Lines

    4
    0 Votes
    4 Posts
    654 Views
    Terry RT

    @e-l said in Delete Partially Duplicate Lines:

    .17763.[123456789][0123456789] : deletes within asterix, dot after 17763 is literal, square brackets each pair indicates 1 acceptable character

    There are some issues with the description of your regex. The first wrong belief is that the DOT following the string 17763 is a literal DOT, instead it represents a single character position, whatever that character is. Given you say “do not check . matches newline” then the DOT will not equal end of line characters.
    Second inaccuracy is thinking you need to identify every number within each of your 2 [ ] groups. You can represent these as [1-9] and [0-9] as they are comprised of consecutive characters in each group. If; for example; you wanted to identify [01236789] you would write this as [0-36-9].
    Also be careful with the .* as this is greedy. If your line contains multiple 17763 strings then the greedy modifier will consider the last 17763 string to be the important one. Probably not really a problem here but in other tests you may find incorrect results.

    I think you need to start with basics in learning regex. If you look in our FAQ section you will find posts that will steer you in the right direction. I feel you may need to undo some of your beliefs. Be aware that there are several forms of regex. By reading from our FAQ you will see the one used within Notepad++.

    In the end I suppose what I say may well fall on deaf ears. You have something that (in your mind) achieves the desired result. So good on you for trying it yourself.

    Terry

  • 0 Votes
    2 Posts
    264 Views
  • Call Shortcuts in Plugin Code

    3
    0 Votes
    3 Posts
    258 Views
    Benjamin GrimmB

    @peterjones Thank you. I’ll check it out right now.

  • FileSwitcher Plugin for Notepad++ v8.3.3

    2
    0 Votes
    2 Posts
    1k Views
    PeterJonesP

    @balaji-palavalli ,

    The FileSwitcher you referenced has not been updated since 2009. It’s missed quite a few API changes required to be able to work with v8.3.3. Now, not every plugin uses every aspect of the API, so it might not use any incompatible calls: So if you have 32-bit Notepad++ v8.3.3, and if you download the UNI (unicode) version of the plugin, and if you put the plugin’s DLL in the correct subdirectory (c:\program files (x86)\Notepad++\plugins\FileSwitcher\FileSwitcher.dll , assuming a standard 32 bit installation), it might work. (Oh, it actually appears to be available through the Plugins Admin in the 32bit Notepad++, so it’s easier to get… and the most recent v8.3 API changes don’t affect 32bit, so it’s a good chance that it will still work for you on 32bit Notepad++)

    But unless someone has un-officially forked it, there isn’t a modern/maintained version of FileSwitcher for you to download, or a 64bit version. I did find a couple forks by trusted users on GitHub, but none of them have published updated binaries. @chcg has a version that I cannot see has any changes relative to the original, so it probably wouldn’t help. @Predelnik has a version here which claims to have fixes so that it can be compiled 64bit… but again, doesn’t share any binaries, so you would have to be willing to download and compile from source yourself.

    But if you are willing to use Notepad++ 32-bit, you should be able to use that plugin.

  • Simply, what is this icon? Can't find anything online.

    3
    0 Votes
    3 Posts
    299 Views
    PeterJonesP

    @alan-kilborn said in Simply, what is this icon? Can't find anything online.:

    I’m surprised that section of the manual doesn’t mention the tab icon.

    PR#352. Does it look okay to you, @Alan-Kilborn ?

  • Delete All Lines After Bookmark then Combine Text Files

    5
    0 Votes
    5 Posts
    1k Views
    guy038G

    Hello, @neil-schipper,

    Thanks for pointing this to me ! So, I replaced the two plus signs with two star symbols, in my previous post

    BR

    guy038

  • How to keep NPP from opening previous documents when reopening it?

    2
    0 Votes
    2 Posts
    220 Views
    Alan KilbornA

    @алина-джос

    Make sure Remember current session for next launch is unticked (the opposite of what I show it set at):

    adbdda90-f5ef-48ed-a8c7-d4575a638c04-image.png

  • 0 Votes
    2 Posts
    314 Views
    Alan KilbornA

    @evidence-bot

    You would want to write a program to do this (don’t know if you are capable of this or not).

    Non-programming techniques are problematic because there is really no way to verify sequential numbers on successive lines.

    It could be done if you didn’t need this verification. In this case one presumes that what comes after the bottom line on the left is something with a different pattern than the four lines shown. Thus the 42 in the first line could be “grabbed” and the 45 in the fourth line could be grabbed, and the single line could be constructed and replace the set of 4 lines.

    Only you know your data, and you’d need a better problem statement for better help.

  • Weird bold lines for certain lines

    9
    0 Votes
    9 Posts
    432 Views
    Loh TiL

    I tested my monitor with tv box. I can also see the patterns.

    It is my monitor fault.
    Case closed.

  • random orange arrows and "CRLF" all over. how to remove?

    2
    0 Votes
    2 Posts
    4k Views
    Terry RT

    @macky-cabangon said in random orange arrows and "CRLF" all over. how to remove?:

    I do not know how to remove them. Any ideas?

    Firstly, they aren’t random, they exist to represent characters you do not normally see. The arrows represent tabs and the CR & LF represent end of line markers. More detail is in the online manual here. You also have the space character represented by an orange dot, maybe you did not notice that?

    They don’t display without being requested to. Maybe you did not intend to select the Show All Characters, but I think that is what you have done. You can easily turn that option off again.

    Terry

  • moving the beginning of a line to the end?

    3
    0 Votes
    3 Posts
    313 Views
    DXD

    @guy038 omg thank you

  • Next/Previous Tab shortcut without cycling

    3
    0 Votes
    3 Posts
    393 Views
    fallenrelicsF

    @alan-kilborn excellent…thank you.

  • Strange blank panels boxing in the editor

    4
    0 Votes
    4 Posts
    559 Views
    Neil SchipperN

    @robert-mark-bram Good. I also should have mentioned that (reporting back on your experience is a good idea – which you already realized – but also, when doing so) it’s helpful to include a dump of the Debug info, accessed off the ? item on the main menu.

  • Search & Replace regex

    3
    0 Votes
    3 Posts
    198 Views
    Yves DavignonY

    @alan-kilborn said in Search & Replace regex:

    (?-is)“(HAI…) (.*?)”

    Tx Alan

    Your solution works perfectly. Very very new at using notepad++ to modify data. Usually a database (access, foxpro, filemaker) or excel. But the supplier (Canada Post) gave me csv files, it is much simpler to keep them almost as they were supplied to me.

    Tx

    Yves

  • 0 Votes
    3 Posts
    703 Views
    dfs-D

    This is the closest we got to reproduction so far: https://github.com/notepad-plus-plus/notepad-plus-plus/issues/10926

  • icon menu are very small in 4K

    6
    0 Votes
    6 Posts
    1k Views
    PeterJonesP

    @alan-kilborn said in icon menu are very small in 4K:

    yet most often people don’t follow up by doing that.

    That’s why recently, I’ve been more likely to create a new issue if the original forum poster doesn’t (and if I cannot find an existing issue). I am not 100% on this (due to time and memory constraints), but I’m doing it more than I used to. I think, since the Forum is something of a “first line of defense” location for discussing whether an issue is really a problem or lack in Notepad++ or just a lack of understanding on the part of the user, that if we regulars think that it has merit, we should probably be more active in helping the OP “escalate” it to the request-tracking (for those with no inclination to create a github ID, and similar).

  • Help with find/replace python script

    3
    1 Votes
    3 Posts
    2k Views
    Gerrit SchutG

    @peterjones

    This works perfect! I was able to test this with a number of different documents and was able to change the maxCount to fit the number of changes needed.

    You’ve literally reduced my work from weeks down to hours!

    THANK YOU SO MUCH!!!

  • Context sensitive syntax help while editing

    4
    0 Votes
    4 Posts
    1k Views
    Alan KilbornA

    Terry,

    When you are using PythonScript, it has its own context-sensitive help. If your caret is on editor.xxx() or notepad.xxx() and you invoke it, you will get help on whatever function xxx is.

    Since you are considering some scripting (I think) for your own context-sensitive help application, you might want to consider keeping that functionality even if you integrate something else for non-PythonScript Python.

  • Update errors. Help needed to revert to last update.

    3
    0 Votes
    3 Posts
    327 Views
    Carl KuwaitC

    @peterjones Thank you so much. I just tried the Compare plugin you mentioned and it is working. The end tag plug in specifically finds corrupted (different from original) end tags. Because translating strings very often corrupts an end tag. This will crash the game. But I already have a work around to prevent this so it is not really needed anymore.

    I have done about 1000 hours of translating S.t.a.l.k.e.r. Russian mods for free for the English speaking fanbase. Notepad++ is a great help with this. Many more mods to do. Thank you so much for the quick reply.