Community
    • Login

    Macros dissapeared

    Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
    10 Posts 6 Posters 1.1k Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • Jens Holme BjørneboeJ
      Jens Holme Bjørneboe
      last edited by

      Hi techies
      My macros I have been doing has suddenly dissapeared.
      My shortcuts.xml file is located as it always have been.
      I installed two plugins; “Column tools” and “Customize toolbar” and then my saved macros has dissapeared.

      My debug info is:
      Notepad++ v7.9.5 (64-bit)
      Build time : Mar 21 2021 - 02:13:17
      Path : C:\Program Files\Notepad++\notepad++.exe
      Admin mode : OFF
      Local Conf mode : OFF
      OS Name : Windows 10 Enterprise (64-bit)
      OS Version : 1809
      OS Build : 17763.1879
      Current ANSI codepage : 1252
      Plugins : ColumnTools.dll DSpellCheck.dll mimeTools.dll NppConverter.dll NppExport.dll _CustomizeToolbar.dll

      1 Reply Last reply Reply Quote 0
      • Jens Holme BjørneboeJ
        Jens Holme Bjørneboe
        last edited by

        When I create a new macro and save it, it doesn’t appear in my shortcuts.xml

        The main question is off cause: How do I get Notepad++ to see my file?

        Michael VincentM 1 Reply Last reply Reply Quote 0
        • Michael VincentM
          Michael Vincent @Jens Holme Bjørneboe
          last edited by

          @Jens-Holme-Bjørneboe said in Macros dissapeared:

          When I create a new macro and save it, it doesn’t appear in my shortcuts.xml

          I this a new Notepad++ install?

          What directory path is the ‘shortcuts.xml’ you are referencing? Based on your debug info (Local Conf mode: OFF) I think the ‘shortcuts.xml’ will be under %USERPROFILE%\AppData\Roaming\Notepad++.

          Did you try launching with the -noPlugin command line option to disable all the plugins to see if they are causing the issue? Note that I have both of those plugins installed and can create and save Macros. Also note I’m using the latest release candidate and local config mode is ON for me (meaning my ‘shortcuts.xml’ is in my Notepad++ install folder).

          Cheers.

          1 Reply Last reply Reply Quote 1
          • Jens Holme BjørneboeJ
            Jens Holme Bjørneboe
            last edited by

            I now tried to uninstall the program and then re-install, with no luck.
            I’ve tried to delete the Shorcuts.xml and the copy my backup information to the new generated file (with no shortcut keys), with no luck.

            I’m not sure how to start the program with the command line option. Do I need to go to the program folder and create a shortcut to run the file with the option added?

            Michael VincentM 1 Reply Last reply Reply Quote 0
            • Michael VincentM
              Michael Vincent @Jens Holme Bjørneboe
              last edited by

              @Jens-Holme-Bjørneboe said in Macros dissapeared:

              I’ve tried to delete the Shorcuts.xml and the copy my backup information to the new generated file

              Where is the ‘shortcuts.xml’ you are talking about? Again, based on your Debug Info, it’s probably not the one in the Notepad++ install directory. Did you try to create a new Macro and save it? Does it show up on a Notepad++ relaunch? If so, it’s being saved in your Shortcuts.xml file - you need to find the “right one” - again, probably in %USERPROFILE%\AppData\Roaming\Notepad++.

              I’m not sure how to start the program with the command line option.

              From Windows, use the Start menu, “Run” and run Command Prompt (cmd.exe). For the prompt:

              C:\> C:\path\to\your\Notepad++\install\notepad++.exe -noPlugin
              

              Cheers.

              1 Reply Last reply Reply Quote 3
              • Aaron BishdouA
                Aaron Bishdou
                last edited by

                @Jens-Holme-Bjørneboe, thanks for asking the question and @Michael-Vincent , thanks for answering! I was baffled as to where my macros were going. I checked the “C:\Program Files\Notepad++\shortcuts.xml”, and they weren’t there. I wonder why NPP has 2 ‘shortcuts.xml’ files?

                Thanks again!

                PeterJonesP Alan KilbornA 2 Replies Last reply Reply Quote 0
                • PeterJonesP
                  PeterJones @Aaron Bishdou
                  last edited by PeterJones

                  @Aaron-Bishdou said in Macros dissapeared:

                  I wonder why NPP has 2 ‘shortcuts.xml’ files?

                  Because it’s designed to read the machine-wide macros (c:\program files\notepad++\shortcuts.xml) first, then read any per-user macros (from %AppData%\Notepad++\shortcuts.xml).

                  Second (and maybe a more frequent use case), Notepad++ will copy the program-directory shortcuts.xml into the AppData directory when it needs to initialize populate its AppData settings (for example, for a new user, or if someone deletes their old %AppData%\Notepad++\ and to reset to default settings again)

                  PeterJonesP 1 Reply Last reply Reply Quote 2
                  • Alan KilbornA
                    Alan Kilborn @Aaron Bishdou
                    last edited by

                    @Aaron-Bishdou said in Macros dissapeared:

                    I wonder why NPP has 2 ‘shortcuts.xml’ files?

                    There’s the possibility to run with your configuration files (of which shortcuts.xml is one) in the same folder as the Notepad++ exe, in the %APPDATA% location, or in the “cloud”.

                    A default installation will run from %APPDATA%. The user can change this after installation to run differently, but Notepad++ doesn’t remove the config files from the original place. This generates confusion among users because when they are asked to look in a config file during troubleshooting, they often look in the wrong one.

                    1 Reply Last reply Reply Quote 3
                    • PeterJonesP
                      PeterJones @PeterJones
                      last edited by

                      Because it’s designed to read the machine-wide macros (c:\program files\notepad++\shortcuts.xml) first, then read any per-user macros (from %AppData%\Notepad++\shortcuts.xml).

                      I explained it wrong, and thus I struck it out in the original.

                      Actually what happens is Notepad++ looks in %AppData%\Notepad++\ for the shortcuts.xml file, and if it doesn’t find it there, it falls back to the machine-wide copy in c:\program files\notepad++\shortcuts.xml.

                      1 Reply Last reply Reply Quote 2
                      • Wolf GangW
                        Wolf Gang
                        last edited by Wolf Gang

                        Had this exact problem.
                        I just updated n++ using the built-in updater (to 8.6.2) and all my macros are gone, I had created 5… shortcuts.xml are empty (with defaults in them).

                        39b3660e-2cd8-4860-9139-3c46893d29b5-image.png

                        Also like 30 of previous entries in “Find what” drop down menu are gone… So now it makes really difficult to create my macros.
                        6faaa499-db53-4e7c-be98-f7b4e77fd312-image.png

                        Very disappointed…

                        I use duplicati to make backups of notepad++ daily… And it seems macros were not even saved. I just restored from Notepad++/cloud folder and the file content is just the default one.

                        1 Reply Last reply Reply Quote 0
                        • First post
                          Last post
                        The Community of users of the Notepad++ text editor.
                        Powered by NodeBB | Contributors