• 0 Votes
    8 Posts
    115 Views
    PeterJonesP

    @Native2904 m

    For me, it clicks the Find Next. It worked with 100% of my tests. Are you using English localization (so the button is literally Find Next) or are you in a different localization?

    And do you have the single button, like
    581fa425-8107-4a36-94f8-3e46f8037621-image.png
    or the two buttons with arrows?
    f99f8660-677f-47da-83a5-2793aeea3154-image.png

    Because it’s looking for exact button text when trying to figure out what to click; if it cannot find a button called Find Next, then it won’t be able to press it. So if there’s anything different from a default setup, my script will likely not work for you.

  • Search++: A work in progress

    Notepad++ & Plugin Development
    5
    3 Votes
    5 Posts
    100 Views
    CoisesC

    @Alan-Kilborn said in Search++: A work in progress:

    Like this?
    https://github.com/notepad-plus-plus/notepad-plus-plus/issues/9627
    :-)

    Now my head hurts.

    Perhaps I should have included screenshots. Docked (default):

    a7382038-3c86-479f-a157-4192337c89f3-image.png

    Horizontal (non-docking):

    8f0da994-3187-41a1-a59f-3030a9242978-image.png

  • 1 Votes
    5 Posts
    73 Views
    CoisesC

    @W-Pong said in Columns++, I'd like to *retain* commas when converting to elastic tabs/spaces:

    Is there a way to retain the commas?

    I made a new release of Columns++ with an option to do that — an additional checkbox in the Conversion settings dialog: Keep separator character when converting to tabbed.

    The new release is Columns++ version 1.3.2.

    I have not marked the release stable, but I believe that there is very little chance this change will have any unanticipated negative effects. It should be safe to install.

  • 0 Votes
    9 Posts
    379 Views
    guy038G

    Hi, @jak and All,

    (2) By using the ComparePlus plugin

    So, we start with the file DocMaster.txt, below :

    "Maria" 1957 w: Stephen Sondheim / m: Leonard Bernstein "Camelot" 1960 w: Alan Jay Lerner / m: Frederick Loewe "Small World" 1959 w: Stephen Sondheim / m: Jule Styne "I Will Always Love You" 1974 / 1992 w & m: Dolly Parton / arr. Whitney Houston "I Want to Hold Your Hand" 1964 w & m: John Lennon & Paul McCartney "Mack the Knife" 1955 / 1959 w: Bertold Brecht (trans. by Marc Blitzstein) / m: Kurt Weill "Call Me Irresponsible" 1963 w: Sammy Cahn / m: James Van Heusen "Earth Angel" 1954 w & m: Curtis Williams "Blowin' in the Wind" 1962 w & m: Bob Dylan "Bridge Over Troubled Water" 1970 w & m: Paul Simon "Candle in the Wind" 1973 / 1997 w & m: Bernie Taupin & Elton John / arr.E. John "All the Way" 1957 w: Sammy Cahn / m: James Van Heusen "Moon River" 1961 w: Johnny Mercer / m: Henry Mancini "Beauty and the Beast" 1991 w: Howard Ashman / m: Alan Menken "The Look of Love" 1967 w: Hal David / m: Burt Bacharach "Your Cheatin' Heart" 1952 w & m: Hank Williams "Three Coins in the Fountain" 1954 w: Sammy Cahn / m: Jule Styne "Night Fever" 1978 w & m: Barry, Maurice and Robin Gibb "Goodnight Irene" 1950 w & m: Huddie (Leadbelly) Ledbetter & Alan Lomax "We Are The World" 1985 w & m: Michael Jackson & Lionel Richie "The Way We Were" 1973 w: Alan & Marilyn Bergman / m: Marvin Hamlisch "Sincerely" 1955 w & m: Harvey Fuqua & Alan Freed "True Love" 1956 w & m: Cole Porter "On the Street Where You Live" 1956 w: Alan Jay Lerner / m: Frederick Loewe "Rock Around the Clock" 1955 w & m: Max Freedman and Jimmy DeKnight "The First Time Ever I Saw Your Face" 1972 w & m: Ewan MacColl "Just the Way You Are" 1978 w & m: Billy Joel "Crazy 1961 w & m: Willie Nelson "American Pie" 1971 w & m: Don McLean "Don't Be Cruel" 1956 w & m: Otis Blackwell "My Way" 1969 w: Paul Anka / m: Jacques Reveaux and Claude Francois "You Are the Sunshine of My Life" 1973 w & m: Stevie Wonder "You Belong to Me" 1952 w & m: Pee Wee King, Redd Stewart, Chilton Price "What the World Needs Now is Love" 1965 w: Hal David / m: Burt Bacharach "High Noon" 1952 w: Ned Washington / m: Dimitri Tiomkin "Yesterday" 1965 w & m: John Lennon & Paul McCartney "The Shadow of Your Smile" 1965 w: Paul Francis Webster /m: Johnny Mandel "That's What Friends Are For" 1985 w & m: Carole Bayer Sager & Burt Bacharach "Hey Jude" 1968 w & m: John Lennon & Paul McCartney "My Heart Will Go On" 1997 w: Will Jennings / m: James Horner

    And the file DocNewMusic, below :

    "Rock Around the Clock" 1955 w & m: Max Freedman and Jimmy DeKnight "All Too Well" 2021 Taylor Swift "Electric Feel" 2008 MGMT "Hey Ya!" 2003 Outkast "Bad Guy" 2019 Billie Eilish "Run Away with Me" 2015 Carly Rae Jepsen "Candle in the Wind" 1973 / 1997 w & m: Bernie Taupin & Elton John / arr.E. John "Seven Nation Army" 2003 The White Stripes "Casimir Pulaski Day" 2005 Sufjan Stevens "Bad Romance" 2009 Lady Gaga "Swimming Pools (Drank)" 2012 Kendrick Lamar "I Want to Hold Your Hand" 1964 w & m: John Lennon & Paul McCartney "Heartbeats" 2002 The Knife "Good Luck, Babe!" 2024 Chappell Roan "Bridge Over Troubled Water" 1970 w & m: Paul Simon "Toxic" 2004 Britney Spears "All the Way" 1957 w: Sammy Cahn / m: James Van Heusen "Wolf Like Me" 2006 TV on the Radio "Oblivion" 2012 Grimes "Crazy in Love" 2003 Beyoncé & Jay-Z "Blowin' in the Wind" 1962 w & m: Bob Dylan "Since I Left You" 2000 The Avalanches "Umbrella" 2007 Rihanna & Jay-Z "Night Fever" 1978 w & m: Barry, Maurice and Robin Gibb "Us" 2004 Regina Spektor "Neighborhood #1 (Tunnels)" 2004 Arcade Fire "Pyramids" 2012 Frank Ocean "Dancing on My Own" 2010 Robyn "Yesterday" 1965 w & m: John Lennon & Paul McCartney "On Melancholy Hill" 2010 Gorillaz "Mr. Brightside" 2003 The Killers "All My Friends" 2007 LCD Soundsystem "Blowin' in the Wind" 1962 w & m: Bob Dylan "Bridge Over Troubled Water" 1970 w & m: Paul Simon "Runaway" 2010 Kanye West & Pusha T

    First, use the Plugins > ComparePlus > Diff Visual Filters... option

    Check the Hide added/removed lines option and valid this choice with the OK button

    Then, use the specific option Plugins > ComparePlus > Find Unique lines

    Now, select the DocNewMusic.txt file ( IMPORTANT )

    Run the Plugin > ComparePlus > Delete all/selected visible lines option

    Run the Plugin > ComparePlus > Clear Active Compare option

    Finally, save the modifications of the DocNewMusic.txt file ( IMPORTANT )

    Again, you should see that, after process, the saved version of the DocNewMusic.txt file does not contain any song of the 20th century !

    Best Regards,

    guy038

  • 0 Votes
    3 Posts
    155 Views
    T

    @PeterJones

    Thanks for your reply. I will give your solution a try as a Macro learning experience. Maybe I’ll find other uses for it.

    But, I just came up with a different solution:

    I like Notepad++ so far, so I used the preferences to set Notepad++ as the default for a small number of file types I use occasionally. I renamed the extension of the file I use as my daily journal/log from .txt to my initials .th. I used the file properties to open that file with Windows Notepad.

    It’s working well for me. I can use my journal/log with Windows Notepad, and everything else uses Notepad++.

  • Dark Mode style for UDL

    Help wanted · · · – – – · · ·
    7
    0 Votes
    7 Posts
    318 Views
    Lycan ThropeL

    @dfs ,
    We could go a step further and lament that it would be nice if the entire graphical environment of NP++ could be contained in one dialog setting, and then when we switched between Light or Dark, the environment would change all the UI references:

    Settings->Preferences...->Dark Mode,
    Settings->Style Configurator...->Style:, and the
    Settings->Style Configurator...->Select theme:

    …could be coordinated to make just switching between Dark Mode and Light Mode change them all, accordingly. As it is, I’m glad to have just found out that the Dark and Light language files can automatically change by setting that one switch in the dark mode file @PeterJones mentioned, and that automatically chooses the correct code coloring file for the environment (Dark/Light) chosen.

  • About single and duplicate lines...

    General Discussion
    1
    0 Votes
    1 Posts
    102 Views
    No one has replied
  • Smart Highlighting - Multiline Support

    General Discussion
    10
    0 Votes
    10 Posts
    2k Views
    Phil pascalP

    @PeterJones Thank you. I just found this forum after searching about the multiple line issue. I’ve been using Notepad++ for years, fantastic program. First text editor I’d found that did search and replace on end of line charaters since good old Wordstar.

  • 0 Votes
    4 Posts
    139 Views
    Phil pascalP

    @Dervars14 Just checked and unfortunately the undo, ^Z, does not work. This used to be a more common occurance in the old days, Prior to Windows 7 and back in the DOS days, there was no checking to see if wanted to keep a file, it just got overwritten even if a totally different file, but just had the same name. The way we used to get around this is with a recovery program. The good thing is for a long time, whenever you save a file, it actually saves it to a different area of the dirve, precisely for this kind of incedent.

    First important thing is don’t do any work on that drive, if the data is still there, it is not protected, the more you use the computer, the more likelihood those clusters of the drive will get overwritten.

    I don’t think Windows has any internal programs, other than the Recycle bin, which is no use here, as overwritten files aren’t placed there. There is a free program called Recuva, from Piriform, the same people that do CCleaner. If possible, try and download this on another computer to a USB drive, as I said, the more work you do on the drive, the chance of losing the data.

    The other good thing with using another machine, is you quickly play around with recuva, it is very basic program, the results are in table form, so easy to rearrange. You can save any detected files to the USB drive as well. If you get the file back, then just replace the current one. And this is the way to all learn to do backups more regularly, which reminds me.

  • Notepad++ release 8.9.3

    Pinned Announcements
    1
    5 Votes
    1 Posts
    1k Views
    No one has replied
  • Notepad++ v8.9.1 Release

    Announcements
    20
    6 Votes
    20 Posts
    14k Views
    PeterJonesP

    @leleganja said in Notepad++ v8.9.1 Release:

    Why do I get these errors when I install Notepd++ with both v8.9.2 and v8.9.1?

    At first glance: it appears that whatever account that is being used to install Notepad++ doesn’t have write-permission to the temp directory that the installer created. That is odd, given that the installer usually asks for Admin privileges to install. But maybe your computer is set up so the Admin account(s) don’t have write permission to the indiviudal user file-areas.

    Try creating a directory someplace where both your normal user and your admin user have write access, and then temporarily set %TMP% to point to that directory. When you run the installer, it should use that new directory instead, and should (I would think) have write-permission there. (My experiments showed it used the alternate location if I set the %TMP% user variable, but not if I set the %TEMP% variable, so you only need to change %TMP%. If you don’t know how to change that variable: click the START menu, type system environtment which will find the Edit the system environment variables option, which you use; click Environment variables button, then in the User variables section, edit TMP to point to the new directory you created; after doing OK a few times, then you can run the installer, and it should use that directory. When done installing, don’t forget to set TMP back to %USERPROFILE%\AppData\Local\Temp in the same manner.)

  • 0 Votes
    18 Posts
    12k Views
    AutoMV ProtectionA

    @PeterJones Hi, I managed to complete your code so that all color formats work. If you want, I can send you the code.!Sem títulddddo.jpg

  • 0 Votes
    5 Posts
    271 Views
    Fred MorantF

    @PeterJones

    I will try with v8.9.3-RC and v8.9.1,

    regarding my last question it’s with v8.9.2,

    “create new” works fine with old name, it’s the “save as” function which shows that behavior : “can’t use a name preivously used” (i wasn’t enough precised in my question, sorry).
    Note : if i well understand the way notepad++ works at closing : “save as” should not be used,

    I will have a try with the portable version of v8.9.3-RC,

    Again thanks for the help,

  • 0 Votes
    4 Posts
    182 Views
    Alan KilbornA

    @Võ-Văn-Hiếu said:

    It seems that when I select all the text (which should exceed that default number), the box stays checked even after I stop selecting.

    I’m not quite sure what your meaning is here, but…

    …and I presume that when you say “default number”, you mean 1024…

    The In selection checkbox isn’t truly dynamic; it isn’t going to change while you are selecting text. It only changes when you invoke search, and here are some examples of that:

    input focus in the editing area and you press Ctrl+f input focus in the editing area with Find window also visible, and you use the mouse to activate the Find window
  • 0 Votes
    4 Posts
    203 Views
    CoisesC

    @Freon-Sandoz said in Unexpected match when searching files for an end-quote character (non-ASCII):

    I can reproduce the file contents and the unexpected behavior

    I was able to do that, too… and now I see what is happening. The character you are calling an end quote is not the Right Double Quotation Mark, U+201D but the Double Prime, U+2033.

    Windows-1252 (and Windows-1254) contains the right double quotation mark at 0x94. However, it does not contain the double prime. The entry boxes on the file dialog are always in Unicode. (That’s how it works pretty much everywhere in modern Windows.) But if the file is in ANSI, the file search is done in ANSI, so Notepad++ asks Windows to translate the string you gave it into ANSI. Seeing that there is no double prime character in your current code page, Windows “helpfully” translates it to something that looks a lot like it… the ASCII double quote.

    Further confusing the issue is that Notepad++ never loads a file in any code page other than your system code page (which you said is 1252) or Unicode. So when you open the file in Windows-1254, Notepad++ is actually converting it from 1254 to UTF-8 and editing that way. That’s why the search behaved as expected in 1254: it wasn’t really 1254 in, it was in UTF-8.

    Bottom line… this behavior actually is “expected”… but not by any normal human being. About the only thing you can do about it is to work in Unicode wherever possible when you are using non-ASCII characters.

    It might be possible for Notepad++ to change its search so that it warned you when you tried to search an ANSI document for characters that aren’t possible in that document. I haven’t looked into it in depth; I would guess there must be a call to WideCharToMultiByte somewhere, and it could be passed the WC_NO_BEST_FIT_CHARS flag and the lpUsedDefaultChar output pointer to detect such shenanigans so the program could tell the user about it instead of potentially claiming to find something that isn’t there.

  • Notepad++ Old Releases Download

    Announcements
    2
    6 Votes
    2 Posts
    200 Views
    PeterJonesP

    @donho ,

    Thanks for doing that. It’s good to be able to grab older versions, for historical purposes / comparisons, and for people who are trying to use Notepad++ on machines that still have ancient OS installed and cannot be upgraded (like a bunch of early 2000s electronic-measurement equipment that I used to use)

  • 0 Votes
    10 Posts
    808 Views
    PeterJonesP

    see update in this announcement: new github repo with archived versions of Notepad++ at https://github.com/notepad-plus-plus/old-releases

  • 0 Votes
    3 Posts
    210 Views
    Z

    @Mark-Olson You are right, thanx Mark.

  • 0 Votes
    4 Posts
    155 Views
    J

    @PeterJones
    hello and Thank You…
    I think I had read all of the references you posted, and must have misunderstood everything.
    (sigh) I’m feeling so old (LoL)
    just used your example and it worked perfectly

    well, except I next will want to enter an exception for cases of a period before the first carriage return.
    I think I know how to get that working, now that you’ve given me a great direction.
    Again, Thank You!