#190 Record search and replace actions into macros


This functionality used to be available (though buggy) in versions of Nepad++ prior to 5.5.
The attached patch file makes it available in a more reliable way, based on SVN rev 636.
Two testers have found the thus modified code suitable, and all reported bugs were fixed.


  • Nobody/Anonymous

    Hi Chris
    Your recorded steps are too much lengthy. Cannot it be single lined

    <Macro name="qwe" Ctrl="no" Alt="no" Shift="no" Key="0">
    <Action type="3" message="1668" wParam="0" lParam="0" sParam="" />
    <Action type="3" message="1601" wParam="0" lParam="0" sParam="var" />
    <Action type="3" message="1603" wParam="0" lParam="0" sParam="" />
    <Action type="3" message="1604" wParam="0" lParam="0" sParam="" />
    <Action type="3" message="1625" wParam="0" lParam="0" sParam="" />
    <Action type="3" message="1602" wParam="0" lParam="0" sParam="devared" />
    <Action type="3" message="1669" wParam="0" lParam="1635" sParam="" />

    So that shortcuts.xml does increase its size too much, if i record 30-40 macros each consisting of 5-8 replaces.
    I have to go to menu item for each macro to run. Can't there be a pane like windows pane listing all macros in one column.

  • cchris

    cchris - 2010-06-20

    It sure can, with the adverse effect that deciding what a macro does won't be obvious from reading shortcuts.xml. If you think that isn't an issu, I can make it way more compact.

    As for having a permanently displayed list of macros, that is to be requested on IdeaTorrent. Note that you can assign shortcuts, and a macro can pack many S/R operations.

  • cchris

    cchris - 2010-07-03
  • cchris

    cchris - 2010-07-03

    * Coalesced boolean options recording, so that shortcuts.xml grows less in size;
    * Fixed a problem in FindInFiles where some strings were still improperly fetched.

  • Comment has been marked as spam. 

    You can see all pending comments posted by this user  here


    Anonymous - 2010-07-22

    Hi Chris,

    I desperately need this this SnR functionality, can you tell me how to apply this patch?

  • cchris

    cchris - 2010-07-23

    The number of <Action ... /> records has been reduced in the V3, which the attached patch enables.

  • cchris

    cchris - 2010-07-23

    To apply the patch, you need
    * Notepad++ sources
    * The Visual Studio 2005 or 2008 C++ compiler (the free edition is fine)
    * A tool to apply patched, like WinMerge. Note that, in the patch file, lines starting in '-' are removed and those starting with '+' are added, so it is possile, though tedious, to apply the patch by hand.

    Now, to enable
    * apply the patch to Notepad++'s sources
    * Back up your current notepad++.exe
    * Compile the modified sources. The original SciLexer.dll is good to go.
    * Enjoy

  • Don HO

    Don HO - 2010-08-09

    Hi Chris,

    The patch cannot be applied by svn. Could you do a patch with svn with the latest revision instead of git please?


  • Don HO

    Don HO - 2010-08-09
    • assigned_to: nobody --> cchris
    • priority: 5 --> 8
  • Don HO

    Don HO - 2010-09-25
    • status: open --> closed