• macro recorder source code

    3
    0 Votes
    3 Posts
    478 Views
    Uncle BuddyU

    @PeterJones , thanks for guiding me to the source code and Scintilla’s macro-recorder. I appreciate the effort you put into your response.

  • On 'open with' or 'edit' after right-click

    2
    0 Votes
    2 Posts
    132 Views
    PeterJonesP

    @Simon-Ewins ,

    Any thoughts on how to fix this?

    You’re going to have to describe the problem better than that.

  • Or in regular expression unable to use in search

    4
    0 Votes
    4 Posts
    1k Views
    Alan KilbornA

    @Dinesh-Babu

    Hard to tell what you are REALLY doing from that.
    It appears you have extra space characters in there maybe?
    Maybe you have (dog | cat) instead of (dog|cat) ?
    Spaces ARE significant in regular expressions, unless you use the (?x) option in front, e.g. (?x)(dog | cat)

    Anyway, alternation (the | regex operator) definitely works fine:

    2e65cd6d-abca-421a-98d9-42dcbd22dc57-image.png

    I dropped the wrapping parentheses for the example, but it works just as well with them as without them.

  • Macro Language

    5
    0 Votes
    5 Posts
    4k Views
    Jack Mallord 0J

    the action type in the recorded message seems to be either 0 or 1, then the message ids follow:
    2170 putchar
    2180 delchar
    2300 down
    2306 getchar
    2326 backspace
    2451 end
    2452 shift-end
    2453 home
    I found that i could combine 2170 type messages with string values, shortening the macro somewhat, making it more readable; it seemed that i could also replace 10 delchars (2180) with " " but that was not consistent.

  • expression reg \t

    5
    0 Votes
    5 Posts
    256 Views
    claudio pergolinC

    @claudio-pergolin said in expression reg \t:

    thanks. it’s working

  • Notepad++ and WinPE

    3
    0 Votes
    3 Posts
    827 Views
    PeterJonesP

    @PeterJones said in Notepad++ and WinPE:

    an external utility like sysinternals.com’s Process Explorer might list the DLLs that Notepad++ has active.

    With a portable v8.1-64bit with no non-default plugins installed, Process Explorer shows me:
    948b7dda-7687-4f2b-aebc-be0d1c2c2aaa-image.png

    4f44e956-b2b8-4bd1-a00d-f8b6658edddf-image.png

    (two screenshots because it was too many for my monitor)

    I don’t know if that will help you or not.

    Sorry.

  • Recent autosave for some files but not others

    3
    0 Votes
    3 Posts
    674 Views
    Alan KilbornA

    @PeterJones

    Perhaps the non-autosave portion of your posting could be adapted for the user manual (if not already covered in such depth there). Some good information in your posting.

  • 1 Votes
    11 Posts
    442 Views
    Alan KilbornA

    @Regina-Oswald said in Problem with find / replace with wildcards. Will put in the same Regular expression twice:

    but not the special goal with twice repleacing of the same regular expression

    I’m actually not sure what you are meaning by that.
    I suspect it might mean something very specific to the replacement you wanted to do.
    The documentation is only going to describe the capabilities; it can’t possibly describe all possible application nuances of those capabilities.

  • My first user defined language

    3
    0 Votes
    3 Posts
    196 Views
    John DaviesJ

    Thank you. That’s a great start.

  • Recovering an Unsaved File that was Closed

    4
    0 Votes
    4 Posts
    1k Views
    Alan KilbornA

    @Ekopalypse said in Recovering an Unsaved File that was Closed:

    especially if you can remember the name of temporary file

    Well, if you named your tab zebra for example (surely nobody would let a long-term, critical data file sit there for a long time with a name like new 2), you’d have to look for a file to recover named like this:

    zebra@2021-06-21_164728

    or – gasp – even:

    new 2@2021-06-21_164728

    In other words, expect that type of naming, DON’T just go looking for something with only the base name, because I don’t think you’ll find it.

  • Optimization for large files

    5
    0 Votes
    5 Posts
    1k Views
    gstaviG

    Possible, maybe.
    Likely, no!

    Applications that handle huge files are designed for that specific goal and there are lots of tradeoffs to be made in the design. The majority of Notepad++ users are developers that deal with files well under 1MB. Many of them depend on plugins that interact with Notepad++ and Scintilla in a pretty direct (non-abstract) way. Redesigning Notepad++ and Scintilla to handle huge files quickly will almost surely break many of these plugins and hurt a much larger portion of Notepad++ users than the people who want to open huge files.

    Your need is real but the solution should be to find the right tool for the job rather than expecting the wrong tool to evolve.

    BTW, there is also a very big difference between viewing a huge file and editing a huge file. There are lots of good viewers and fewer good editors. Huge files are always auto-generated (typically logs) what is the point of editing them? When I dealt with such the concept was usually to find the area of interest and trim 1M lines into 10K lines of interest that Notepad++ handles easily.

  • Customize toolbar button can't display icon.

    5
    0 Votes
    5 Posts
    2k Views
    artie-finkelsteinA

    Thank you for the correction on the ability to change back.

    To be clear: I define the action of the editor in changing anything that I didn’t explicitly select as ‘forcing’; as it forces a change I didn’t make. It does not lock the change; but it does go beyond ‘Enable dark mode’ and makes modifications to settings contained in a different selection dialog.

    Again, thank you for clarifying the interaction between mode selection and icon selection.

  • 0 Votes
    4 Posts
    1k Views
    PeterJonesP

    @Leon-Meijer ,

    If it’s not saving macros, and if sessions aren’t being saved properly (or are coming back after files have been closed), I think maybe you don’t have write permission where your config files are located.

    Could you please copy/paste from Notepad++'s ?-menu’s Debug Info? And also show us a screenshot of your Settings > Preferences > Cloud & Link dialog settings – these two will tell us where your config files should be located, and then we can help you figure out where to check for write permissions: If Cloud & Link is checked to set a cloud path, then config files including session.xml and shortcuts.xml will be stored in that folder, and so that folder and those files will need write permission; or else, if the Debug Info shows Local Conf mode : ON then the config files will be in the same directory as notepad++.exe (also shown in Debug Info), so you will need write permission there; otherwise, those config files go in %AppData%\Notepad++ 🛈, and you will need write permission on that directory and files.

    Regarding automatic vs manual sessions:

    Sharing a screenshot of Settings > Preferences > Backup will tell us what your session and snapshot settings are. The “remember current session” will remember what files are opened, and which view they are in, as long as Notepad++ has write permission to session.xml (see above). “Enable session snapshot and periodic backup” will keep a backup copy of all unsaved files (including unnamed files), so turning that off will prevent it from re-opening unsaved files next time (but when you exit Notepad++, it will ask you if you want to save or discard the unsaved files).

    Tried the “save session” but I don’t know what’s suppose to be saved? because split-view? no,

    Yes, actually, Save Session does include the information on which file tabs are in which view in split-view. But the manually saved sessions also have to be manually loaded. So if you exit after manually saving the session, you will have to manually load the session to get that state back. The fact that Save Session saves split-view is really easy to test: 1) Have split view, with files open on each side. 2) File > Save Session, pick a known file name. 3) File > Close All. Split view goes away. 4) File > Load Session, and select the session file you saved. 5) The files are re-opened, and split view is back.

    “save session” … Marco’s? no…

    Correct. Macros are saved automatically when Notepad++ correctly exits, assuming it has write permission to shortcuts.xml. Macros have nothing to do with the Save Session command.

    O btw, when creating split-view (like open file in another view) the font size on the right view is smaller then it is on the left.

    That means that at some point, you dragged the separator bar between the two views to make them unequal. Because Notepad++ defaults to balanced views on split view.

  • Whats with row 96?

    5
    0 Votes
    5 Posts
    211 Views
    Michael VincentM

    @Priyo-Susilo said in Whats with row 96?:

    May i know why the cursor is going crazy when I reach row 96?
    Its always bounce back to row 95 when i try using mouse/keyboard to move the cursor to the next row.

    Windows 10 64-bit / Notepad++ from version 6 something - every version including the newest 8. 1 release 64-bit I’ve used and I’ve never seen what you describe.

    Please provide your menu “?” => “Debug Info…” and definitive steps to reproduce - what kind of file are you working on, is this a new file you’re creating or an existing file, can you open files longer than 96 lines, what happens then … ?

    Cheers.

  • Commodore 64 BASIC - UDL.xml

    4
    2 Votes
    4 Posts
    407 Views
    Alan KilbornA

    @Colonel_Konami

    You can submit your UDL officially by seeing the instructions for doing so HERE.

  • Folder as Workspace (Problems)

    1
    1 Votes
    1 Posts
    550 Views
    No one has replied
  • Request: improvements on Document List Panel

    6
    0 Votes
    6 Posts
    440 Views
    W TXW

    @PeterJones Thank you very much!

    I am really feeling that Notepad++ is an excellent code edit tool!

  • Search and Replace in Column Selection Mode

    6
    0 Votes
    6 Posts
    489 Views
    Alan KilbornA

    @PeterJones said in Search and Replace in Column Selection Mode:

    But ask politely, or you will likely be ignored.

    I think the OP turned it into an idiotic request, even though you warned them against doing something dumb; see: https://github.com/notepad-plus-plus/notepad-plus-plus/issues/10012

    I know if I were a developer on Notepad++, I would certainly ignore this request. What is wrong with people?

  • 0 Votes
    3 Posts
    204 Views
    ?

    THANKS!

  • once copy bookmark and next line

    8
    0 Votes
    8 Posts
    330 Views
    Anilin LosarA

    perfect work , thanks for help guys