• 0 Votes
    2 Posts
    94 Views
    PeterJonesP

    @Jim-Harris said in Enable snapshot backups without enabling opening the last file at startup?:

    It would be better if these options were separate.

    Since the one was implemented using the other, it would require a significant rework of both of those features to disentangle them, which I doubt is likely to happen

  • Automatic sum of numbers in a column

    4
    4 Votes
    4 Posts
    615 Views
    Alan KilbornA

    @guy038 said:

    I suppose you were a bit upset to not be able to add a comment for the 1602 message, relative to the replacement.

    <Action type=“3” message=“1602” wParam=“0” lParam=“0” sParam=“(?1+:=)(?2 ‘Replace with’ regex)” />

    Nice one!
    For readers that don’t see it, I’m talking about the addition of (?2 'Replace with' regex) as the “comment” for this action line.
    And note also, with that addition, it is needed to wrap the original ?1+:= with parentheses.

    When considering “commenting” a macro by using unused sParam values, how is one to know if sParam is needed by the macro, or you can safely stick a comment in there?

    Well, it isn’t always obvious, so, in that case it might be best to use a “null” command, which for sure doesn’t use sParam, like I did in the first line of the revised macro:

    <Action type="0" message="2172" wParam="0" lParam="0" sParam="see https://community.notepad-plus-plus.org/topic/26363" />

    Message 2172 is SCI_NULL.

  • Closing all tabs when closing Notepad++

    2
    0 Votes
    2 Posts
    155 Views
    PeterJonesP

    @radpopl ,

    It’s called the current “session”.

    Disable Settings > Preferences > Backup > Remember current session for next launch

    This behavior (along with all the other settings) is described both in the user manual in the sections on sessions

  • Does anyone else hate "Enable Copy/Cut Line without selection"?

    16
    4 Votes
    16 Posts
    547 Views
    Alan KilbornA

    I had forgotten that some else has the same fat fingers that I do, and thus shared my pain; it’s a bit of a rant, but some good reading: https://github.com/notepad-plus-plus/notepad-plus-plus/issues/15480

  • Bug? "Find All.." does very often not work anymore

    14
    2 Votes
    14 Posts
    918 Views
    xomxX

    @ahopsu said in Bug? "Find All.." does very often not work anymore:

    To me, with 8.6.7 (32-bit) version, the search results window came back, after I changed this “curr” value from “5” to “3” for the “InternalFunction”

    Thanks for the report. I know about such N++ Docking Manager problems (it can happen in some specific steps) but currently I do not have a simple fix for it.

    Did you undock that Search results panel to the floating state before?

  • Bug: Cntrl+End is not recorded in the macro

    2
    0 Votes
    2 Posts
    107 Views
    Terry RT

    @Jigar-Patel said in Bug: Cntrl+End is not recorded in the macro:

    When Cntrl+End key is used to go to the end of the file, it’s not recorded in the macro

    Macro’s are saved in the shortcuts.xml file. This is normally located in the folder %appdata%\notepad++. If you open it in Notepad++, be aware that Notepad++ will write to that file when closing if any configuration setting within that file need updating, so don’t edit the file unless it is the only thing you do in a Notepad++ session.

    As you are using macro’s it might be a good idea to read the online manual on macros’ here.

    I created the same macro as you were trying to record and got the following in my shortcuts.xml file. Note the last entry has a message value of 2318. Since this is a type 0, it means it’s a Scintilla command. Scintilla is what Notepad++ uses under the hood, so a lot of the commands are directed to the Scintilla process for completing.

    <Macro name="reload-goto-end" Ctrl="no" Alt="no" Shift="no" Key="0"> <Action type="0" message="2422" wParam="0" lParam="0" sParam="" /> <Action type="0" message="2325" wParam="0" lParam="0" sParam="" /> <Action type="0" message="2422" wParam="0" lParam="0" sParam="" /> <Action type="0" message="2325" wParam="0" lParam="0" sParam="" /> <Action type="2" message="0" wParam="41014" lParam="0" sParam="" /> <Action type="0" message="2318" wParam="0" lParam="0" sParam="" /> </Macro>

    The Goto-End command is this one, 2318. See this image of the relevant Scintilla code.

    NPP-gotoend.jpg

    So, obviously from the code I just presented above, the macro works exactly as expected, the Ctrl-End shortcut was recorded. You should first check what your macro actually saved, is it the same as I show above?

    What happens when you use the Ctrl-End keystrokes manually, does the caret move to the end of the document? If so, then the macro should have that as the last entry as did mine.

    I would also suggest reading the FAQ post called “Notepad++ Crashes/Freezes/Unresponsive after Update”. It may not seem relevant, but part of the post refers to running Notepad++ without any plugins running. See if that changes the outcome.

    When you come back with more information, please include the debug info. It’s available from the “?” menu, copy and paste that in your post so we might get a better idea of your setup. That may provide a clue to the problem.

    Terry

  • How do we wrap the search results?

    5
    1 Votes
    5 Posts
    168 Views
    A

    @Terry-R okay. I’ll check that page and request it on GitHub. Again thank you for the help here.

  • Does this plugin exist? number manipulation

    6
    1 Votes
    6 Posts
    240 Views
    nick klausN

    Yeah MultiReplace worked out, thanks all, if I had the rep upvotes all round.
    Just to clear up one thing the .cue standard doesn’t use 1/100th of seconds, it uses frames (75 frames = 1s) that’s why the last 2 digits has a : as a separator (another CD era throwback)

    For the record
    .cue file to modern youtube style time stamps in one pass

    MultiReplaceList.CSV

    Selected,Find,Replace,WholeWord,MatchCase,UseVariables,Regex,Extended 1,"([\\r\\n]{0,1})\\s*TRACK \\d+ AUDIO\\r\\n\\s{4}TITLE ""(.+)""\\r\\n\\s{4}PERFORMER ""(.+)""\\r\\n\\s{4}INDEX \\d+ (\\d+:\\d+):\\d+","\\1**\\4 - \\3 - \\2**",0,0,0,0,1 1,"\\*\\*(\\d+)","set( string.format(""**%02d:%02d"", math.floor(CAP1 / 60), CAP1 % 60) )",0,0,1,0,1

    Input

    TRACK 01 AUDIO TITLE "Tragedy Blows on the Dancefloor (Kesha, Sophie Ellis-Bextor, Cutting Crew vs. Bee Gees)" PERFORMER "Titus Jones" INDEX 01 00:00:00 TRACK 02 AUDIO TITLE "Call My Name" PERFORMER "BLOND:ISH" INDEX 01 61:41:00 TRACK 03 AUDIO TITLE "HIPS DON`T LIE / SMACK YO (Charlie Roennez Mashup)" PERFORMER "Shakira" INDEX 01 122:49:00

    Output

    **00:00:00 - Titus Jones - Tragedy Blows on the Dancefloor (Kesha, Sophie Ellis-Bextor, Cutting Crew vs. Bee Gees)** **01:01:41 - BLOND:ISH - Call My Name** **02:02:49 - Shakira - HIPS DON`T LIE / SMACK YO (Charlie Roennez Mashup)**
  • Automate blank space on or carriage return

    14
    0 Votes
    14 Posts
    381 Views
    Alan KilbornA

    @Jim-Dailey said:

    I have a USB device that someone purchased…

    We’re getting off-topic but I’ll just point out that a script costs less. :-)

  • When pressing TAB, how to remove thin line?

    7
    0 Votes
    7 Posts
    262 Views
    EnnPLUserE

    @guy038 , I’ve just had a thought regarding the double post issue. After I posted my question, I changed my user name. Could that have triggered a double post issue?

    (BTW, I’ve had a message saying that I can’t post any further comments for the next 1200 seconds, so I hope this comment doesn’t generate any excess posts!)

    Deselecting the Show indent guide option fixed my problem.

  • NPP RSS Feed broken?

    5
    0 Votes
    5 Posts
    244 Views
    LagunaJimL

    @PeterJones sadly their free account inc;ludes zero tech support contact. May jump to another reader - tested with ‘feeder’ and the npp feed is fine :)

  • 1 Votes
    2 Posts
    157 Views
    PeterJonesP

    @KdL ,

    This may be related to the other reports of Search Results issues that have come up multiple times. To keep the discussion in one place, please read the v8.7 Search Results section of the missing-panel FAQ, and then continue any discussion in the v8.7 Search Results Missing topic.

    Locking This Thread (to keep discussion in one place)
  • BUG: 7.8.8+ Open dialog not working correctly on Linux/wine

    4
    0 Votes
    4 Posts
    405 Views
    F

    I am using Notepad++ v8.7 under WINE on Debian 12 (bookworm) Linux, and I too have the issue where newer Notepad++ versions have an incomplete file dialog box. For instance, it has no “up folder” button, only forward/back…

    Here is a screenshot to show what I am talking about:

    Npp_Issues.png

    In contrast to the “Browse” dialog opened from ODIN disk imager under WINE (used just for an example):

    ODIN_File_Open.png

    Would it be possible to implement a user option to enable the old style dialog box? The type that was compatible with WINE?

    Thanks!

  • cubase14 in notepad++

    2
    -1 Votes
    2 Posts
    170 Views
    PeterJonesP

    @yasien-trabih ,

    fix this bug in the next version?

    there isn’t any bug in what you described.

    could somebody help me out

    our screenshots don’t seem very realistic, as they show the filename with an .exe extension showing up as text-based XML – that seems highly unlikely to me. But maybe it does have a section 129MB into the file where it has a bunch of uncompressed text – I’ve rarely seen such long sections of pure text in a compiled .exe.

    If you were actually trying to run that executable by using File > Open, that’s not the way you run an executable, that’s the way you open a text file for reading/editing. You could launch it using Notepad++'s Run menu, but that’s not the most efficient way – double-clicking the executable from Windows Explorer or desktop, or clicking on the application in the start menu is the right way to run an application.

    If you are trying to edit the program by using Notepad++ to edit the raw .exe file (which is a binary format), you need to understand that just editing random “text” in a true .exe is likely to crash the executable and have other dangerous side-effects that you would never be able to guess. Notepad++ is designed to edit text, not to decompile a piece of software so you can hack it. .exe executables are not text files.

    To edit a compiled .exe-based application, you have to download its source code (assuming it’s publically available), and have the necessary development environment to build the executable from source. Since you mentioned “cubase pro”, I am assuming it is not open source, and you are not going to have access to the source code.

    And, based on the phrase “and run to a full cubase pro license”, it sounds like you are asking us how to hack a commercial piece of software to get a free license to a paid piece of software: even if Notepad++ were a magical .exe-editor, rather than being being a text editor, what you are asking from us is illegal. Sorry, we’re not going to help you, if that’s really what you were asking for.

  • Is there a way to better distinguish between parentheses and braces?

    5
    0 Votes
    5 Posts
    259 Views
    NicholasN

    Monoid is a customisable open source font designed for writing code in. https://larsenwork.com/monoid/

    There are other fonts out there as well if you search the web.

  • Names beginning with '#' in Javascript

    2
  • How to change syntax via hotkey ?

    27
    0 Votes
    27 Posts
    5k Views
    Szymon SzymonS

    @PeterJones Works like a charm, 2minutes and configured, thanks

  • Force Tab, One space Indents/UnIndents

    4
    1 Votes
    4 Posts
    425 Views
    W

    Replace with this in the code in both One_Space* so that it doesn’t block entering spaces without multiple lines selected, while holding SHIFT or Alt.

    if editor.getSelectionEmpty(): # If nothing is selected, add a space editor.addText(" ") return if editor.selectionIsRectangle(): return # if rectangular selection start_line, end_line = editor.getUserLineSelection() if start_line == end_line: editor.replaceSel(" ") # If the selection is on a single line, replace it with a space. return
  • Copying file itself into clipboard in Notepad++

    16
    0 Votes
    16 Posts
    935 Views
    EkopalypseE

    @mkupper

    Maybe I’m missing something but it seems to work for me as well.

    Notepad++ v8.7.1 (64-bit) Build time : Oct 31 2024 - 00:48:56 Path : D:\Tests\npp\_latest\x64\notepad++.exe Command Line : Admin mode : OFF Local Conf mode : ON Cloud Config : OFF Periodic Backup : ON OS Name : Windows 11 Pro (64-bit) OS Version : 24H2 OS Build : 26100.1742 Current ANSI codepage : 1252 Plugins : mimeTools (3.1) NppConverter (4.6) NppExport (0.4) PythonScript (2)

    test_drop.gif

  • NPPJSONViewer Version Question

    3
    1 Votes
    3 Posts
    373 Views
    Kevin RayK

    @PeterJones. Thank you very much for your assistance. I will get my software management team to grab the correct installer.