• UserListGotoLine to goto lines of interest

    General Discussion
    8
    5 Votes
    8 Posts
    275 Views
    mpheathM

    Added marks item to list lines with find, incremental, smart, token 1, token 2, token 3, token 4 or token 5 marks.

    The marks item and the change history item will open a 2nd user list so the main user list can show less items.

  • 0 Votes
    15 Posts
    478 Views
    CletosC

    If your goal is to just copy/move all the opened files to a specific directory,

    Yes, exactly, that’s it. But Coise’s method is essentially exactly what I wanted (just with a few extra steps, which isn’t a problem). And combined with Coise’s idea of using sessions (as a backup, for example, if the folder path is temporarily unavailable for Notepad, it now seems impossible to determine/find and reopen only the files that were open without using sessions), what I wanted has essentially been achieved.

    Thank you very much!

  • Help w/ console.run editor output

    Notepad++ & Plugin Development
    3
    0 Votes
    3 Posts
    104 Views
    4SHAKEN4

    @Ekopalypse Great, that will suffice for what I’m trying to do. Thank you!

  • What's up with style settings being reset?

    General Discussion
    14
    0 Votes
    14 Posts
    2k Views
    Tom BatesT

    Just updated to 8.7.7 and my theme was changed to the default. But it’s an easy fix.

    Settings->Style Configurator->Select theme-><your-theme>
    [Save&Close]

    I didn’t even need to run as administrator to have it stick.

  • 0 Votes
    1 Posts
    65 Views
    No one has replied
  • Compare two txt files

    General Discussion
    5
    0 Votes
    5 Posts
    159 Views
    CoisesC

    @Rockberto-Manenti said in Compare two txt files:

    Each of the two files has each line with the name of the artist and the title of the album.
    Now I would like to compare the two txt files in order to highlight on the second file all the lines that are NOT present in the first file in order to understand if the albums are already cataloged or not.

    For this problem, I would use the find and replace facility with regular expressions. This is going to look like a lot of steps, but it’s not as complicated as it sounds when you see it in action.

    First, open the file with the catalog. To ensure you don’t accidentally mess it up, I recommend immediately using File | Save As… to save it under a new name.

    Select Search | Replace… from the menu, fill in this:

    Find what: $
    Replace with: \tCatalog
    Wrap around: checked
    Search Mode: Regular expression

    and click Replace All.

    You’ll see that adds a tab and the word Catalog to the end of each line. You can close the dialog for now.

    Now, without closing this file, open the file that has your current list. (It will open in another tab.) From the main menu, select Edit | Select All and after that, select Edit | Copy. Now select File | Close and you’ll be back to the file with the “Catalog” tags.

    Scroll to the end of the file by pressing Ctrl+End on your keyboard. You will either be at the end of the last line of text or at the beginning of an empty line. If you are at the end of a line of text, press the Enter key so you are at the beginning of an empty line.

    Now, select Edit | Paste. That will copy the other file at the end of this file.

    Now select Edit | Line Operations | Sort Lines Lexicographically Ascending.

    That will put pairs of lines from the two files together. Now all that remains is to remove matched pairs, which you can do with another regular expression. Open Search | Replace… again, but this time, enter:

    Find what: (?i-s)^(.*)\R\1\tCatalog(\R|\z)
    Replace with: (empty — not even a blank)

    Leave the other settings as they were the last time and click Replace All.

    You’ll be left with a list of lines that were in the current list but not in the catalog list. If any lines were in the catalog list but not the current list, they’ll have a tab and the word “Catalog” at the end.

  • 0 Votes
    9 Posts
    3k Views
    Jeff TremblayJ

    The easiest way is to rename to config folder name located below to for example “Notepad++2” to force Notepad++ to reconfigure itself to its default settings.

    -Close notepad++
    -Rename this:
    C:\Users\Name_of_user\AppData\Roaming\Notepad++
    For this:
    C:\Users\Name_of_user\AppData\Roaming\Notepad++2
    -Restart notepad
    -Magic happens!

  • 0 Votes
    3 Posts
    94 Views
    PeterJonesP

    @Raymond-Timothy-Adanu ,

    Given each color is only applied to a single word, instead of a fancy pattern, your screenshot can be essentially accomplished using the existing Style All Occurrences feature, without requiring a feature request.

  • Scroll to a position

    Help wanted · · · – – – · · ·
    3
    0 Votes
    3 Posts
    103 Views
    Wim GielisW

    @Alan-Kilborn

    Thank you for the confirmation ! I will not spend more time on it.

  • [New Plugin] CSV Lint

    Notepad++ & Plugin Development
    81
    6 Votes
    81 Posts
    71k Views
    Bas de ReuverB

    The CSV Lint plug-in was updated to v0.4.6.8. Just missed the Notepad++ 8.7.8 update, but that’s no problem it’ll automatically be available in the next update. It’s a small update anyway, as I don’t really have the time to work on the plug-in at the moment due to work related stuff. So for now I just wanted to get some minor updates out the door, hopefully more updates in the near future.

    Sort Data, enumeration columns now sort according to code index Metadata scripts, now includes sort examples SQL scripts, placeholders for column comments Settings button on docked window
  • Lost session

    General Discussion
    5
    0 Votes
    5 Posts
    166 Views
    Alan KilbornA

    @Vieri-Di-Paola said:

    …or maybe not

    It seems like a common sense new way of working for you would be to not keep working with “unsaved” data. But hey, do what you think is best!

  • [BUG] Updating removes my doLocalConf.xml every time

    Boycott Notepad++
    6
  • 6 Votes
    27 Posts
    2k Views
    CoisesC

    @guy038

    Thank you so much for all your testing!

    As I think you’ve seen, I decided to release a nominally “stable” version that has only a few small changes from the fourth experimental version and with (I think) up-to-date documentation.

    I will be taking a closer look at the equivalence classes, and your tests and references will be very helpful. I also need to sort out the situation with digraphs and ligatures. (Unicode distinguishes between the two, and I might be forgetting a third thing — all cases where what we normally think of as multiple characters act as one, sometimes visually, sometimes for collation even when they are visually separate.) Particularly vexing is that this should affect character ranges depending on the active locale; e.g., in Slovak, “ch” sorts between “h” and “i”; in Spanish, it sorts between “c” and “d” and in English, it isn’t a digraph at all, just two letters. So [[.ch.]-i] should match “f” in Spanish but not in Slovak… and in English it makes no sense at all, because ch isn’t a digraph in English.

    This sort of thing is why I decided to table the whole notion until I can rest and regroup.

  • 0 Votes
    8 Posts
    1k Views
    dominikcebulaD

    You can also consider using “Java Plugin for Notepad++”:
    https://dominikcebula.github.io/npp-java-plugin/

  • 1 Votes
    9 Posts
    11k Views
    Franklin DelgadoF

    @Scott-Sumner said in Run python script (pythonscript plugin) with a shortcut?:

    @Mikhail-V said:

    How do I run specific script with a keyboard shortcut?

    To elaborate on @Claudia-Frank 's answer:

    Go to Plugins (menu) -> Python Script -> Configuration. The Python Script Shortcut Configuration window will appear.

    In the Scripts area at the top of the Python Script Shortcut Configuration window, locate and select the script you want to bind to a shortcut (and/or toolbar button).

    Between the Scripts box and the Menu items (or Toolbar icons) caption there is an Add button. To get your script added as a menu item (necessary to bind a keycombo to it via the “Shortcut Mapper”), press the Add button (the one above the Menu items caption). Very similar but hopefully obvious what to do for a toolbar button.

    Once you click OK to dismiss the Python Script Shortcut Configuration window, you should be able to go into Plugins (menu) -> Python Script (just point to that and let the menu cascade open) and then see your script at this level of the menu (between the Scripts-> and Configuration entries). Seeing your script appear here is key to being able to tie it to a shortcut keycombo.

    Restart Notepad++. This allows the “Shortcut Mapper” to see that you’ve changed the Plugins (menu) -> Python Script menu contents.

    Now go to Settings (menu) -> Shortcut Mapper… and select the Plugin commands tab. Scrolling down somewhat you should see your script in the Name column (along with “Pythonscript” in the Plugin column). Go ahead and select your script and assign a keycombo to it just like you would for any other command.

    excelente muchas gracias tu aporte

  • [New Plugin] NppOpenAI

    Notepad++ & Plugin Development
    42
    8 Votes
    42 Posts
    27k Views
    S

    wow, this sounds like a great tool, cant wait to use it.

    i wonder if it will be possible to add support for google code assist, they have just opened up free access for individual developers.

    also abillity to use the latest grok (3) would be cool too.

  • 0 Votes
    3 Posts
    98 Views
    S

    @PeterJones wow, cool! thanks for the info! yes im sure some bright spark will add a config to enable using code assist. i will look into it, cheers!

  • Random crashes began 1-2 months ago

    General Discussion
    15
    0 Votes
    15 Posts
    387 Views
    Lycan ThropeL

    @irahsu ,
    Glad to hear you’re running good now, and that it was a simple fix.

    Funny, I was just re-reading my text and can’t believe I wrote Regex instead of registry. Being involved with NPP has gotten me Regex on the brain. :-)

  • New N++ feature to show/hide Non-Printing characters

    General Discussion
    3
    5 Votes
    3 Posts
    3k Views
    C

    @guy038 I’m wondering why IDSP (“Ideographic Space”) has been included in this list. It is not a zero width character, so it is a printable (albeit whitespace) character.

  • indent between the lines

    Help wanted · · · – – – · · ·
    4
    0 Votes
    4 Posts
    118 Views
    PeterJonesP

    @Linda-Delenra ,

    I mean that I have many lines of text in each line.

    I have no idea how you can have many lines of text in one line; there seems to be a language barrier. I answered the question based on your example data. If your example data doesn’t match reality, neither I nor anyone else here can answer your real question until you provide us data that matches reality. Sorry.

    If you have the text like you showed originally and want to transform it into your second example text, you need to run the regular expression replacement action that I described.

    by pressing one button

    You could record a macro where you do the replacement (Macro > Start Recording, run the REPLACE ALL, Macro > Stop Recording, Macro > Save Current Recorded Macro and assign a keyboard shortcut)