Macros not in either shortcuts.xml file.



  • I’ve made a few macros, they work with the shortcuts assigned, or manually from the menu.
    However, my macros are not in either shortcuts.xml file (program files / roaming)

    I’ve searched the drive using SearchMyFiles from Nirsoft, but found nothing new. It does find files with “NotepadPlus” including the shortcuts.xml files, but cannot find files containing the names of macros.

    I named one macro “YouDidNotFindMeIFoundYou” (reopened NPP to be sure it saved somewhere) .

    I’ve exited and loaded NPP many times, I only have 8 or so macros, a few have been there a long time.

    Where else could it be?

    Scanning registry…

    I read somewhere to find the current shotcuts.xml, look in …\ of plugins config…

    • echo $(PLUGINS_CONFIG_DIR)
      C:\Users\charles\AppData\Roaming\Notepad++\plugins\Config
      ================ READY ================

    C:\Program Files (x86)\Notepad++
    07/18/2015 07:26 PM 1,856 shortcuts.xml

    This is my %appdata%\Notepad++\shortcuts.xml
    08/07/2016 11:39 PM 1,982 shortcuts.xml

    • <NotepadPlus>
      <InternalCommands />
      <Macros>
      <Macro name=“Trim Trailing and save” Ctrl=“no” Alt=“yes” Shift=“yes” Key=“83”>
      <Action type=“2” message=“0” wParam=“42024” lParam=“0” sParam="" />
      <Action type=“2” message=“0” wParam=“41006” lParam=“0” sParam="" />
      </Macro>
      </Macros>
      <UserDefinedCommands>
      <Command name=“Launch in Firefox” Ctrl=“yes” Alt=“yes” Shift=“yes” Key=“88”>firefox “$(FULL_CURRENT_PATH)”</Command>
      <Command name=“Launch in IE” Ctrl=“yes” Alt=“yes” Shift=“yes” Key=“73”>iexplore “$(FULL_CURRENT_PATH)”</Command>
      <Command name=“Launch in Chrome” Ctrl=“yes” Alt=“yes” Shift=“yes” Key=“82”>chrome “$(FULL_CURRENT_PATH)”</Command>
      <Command name=“Launch in Safari” Ctrl=“yes” Alt=“yes” Shift=“yes” Key=“70”>safari “$(FULL_CURRENT_PATH)”</Command>
      <Command name=“Get php help” Ctrl=“no” Alt=“yes” Shift=“no” Key=“112”>http://www.php.net/$(CURRENT_WORD)</Command>
      <Command name=“Google Search” Ctrl=“no” Alt=“yes” Shift=“no” Key=“113”>https://www.google.com/search?q=$(CURRENT_WORD)</Command>
      <Command name=“Wikipedia Search” Ctrl=“no” Alt=“yes” Shift=“no” Key=“114”>https://en.wikipedia.org/wiki/Special:Search?search=$(CURRENT_WORD)</Command>
      <Command name=“Open file” Ctrl=“no” Alt=“yes” Shift=“no” Key=“116”>$(NPP_DIRECTORY)\notepad++.exe $(CURRENT_WORD)</Command>
      <Command name=“Open in another instance” Ctrl=“no” Alt=“yes” Shift=“no” Key=“117”>$(NPP_DIRECTORY)\notepad++.exe $(CURRENT_WORD) -nosession -multiInst</Command>
      <Command name=“Send via Outlook” Ctrl=“yes” Alt=“yes” Shift=“yes” Key=“79”>outlook /a “$(FULL_CURRENT_PATH)”</Command>
      </UserDefinedCommands>
      <PluginCommands>
      <PluginCommand moduleName=“RunMe.dll” internalID=“0” Ctrl=“no” Alt=“yes” Shift=“no” Key=“68” />
      </PluginCommands>
      <ScintillaKeys />
      </NotepadPlus>


  • @Charles-Knerr I found the shortcuts.xml file that contains my macros on my Win 10 PC under C:\Users\pbdrm\AppData\Roaming\Notepad++
    That would be two folders up from your path that goes on down to …\plugins\Config, but I only have a file called converter.ini in that folder on my PC.

    There is another shortcuts.xml file under C:\Program Files\Notepad++ on my PC and there is one more Macro of mine in there.
    I hope this helps even though it seems that our two instances of Notepad++ are set up a little differently.



  • One of my mottos is “Computers are less frustrating when we face them together.” One of the best ways historically of figuring things out like this is to grab someone else and show them what you are doing, and get their opinion. Of course, this forum is supposed to serve the same function, but the forum only knows the few details you share.
    When I looked at my shortcuts.xml file, I closed Notepad++ and used the regular Notepad to look at the xml file. Please try this if you have not already done so.
    Otherwise, please be patient to do the standard things:

    1. Do a full restart of your computer.
    2. Upgrade to the newest version of Notepad++.
    3. Post again, giving the version of your OS.
      Steve

Log in to reply