Community
    • Login

    Editing shortcuts.xml

    Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
    20 Posts 5 Posters 9.2k 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.
    • Alan KilbornA
      Alan Kilborn @andrecool-68
      last edited by

      @andrecool-68

      Progress bar is top-notch though!

      1 Reply Last reply Reply Quote 2
      • James BurkeJ
        James Burke
        last edited by

        Awesome advice here, but it goes by too fast and the menu selections are in Russian. I was afraid this would happen. My head is spinning!

        andrecool-68A 1 Reply Last reply Reply Quote 1
        • James BurkeJ
          James Burke @Meta Chuh
          last edited by James Burke

          Meta Chuh,yes, the shortcuts.xml I’m looking at is in %AppData%\Notepad++, but it’s impervious to changes. I can edit it, but the changes don’t appear in NPP.

          Meta ChuhM 2 Replies Last reply Reply Quote 0
          • Meta ChuhM
            Meta Chuh moderator @James Burke
            last edited by Meta Chuh

            @James-Burke

            Awesome advice here, but it goes by too fast and the menu selections are in Russian.

            i’m sorry about that, @Alan-Kilborn has already tried to put a stop to this “over-posting” towards @andrecool-68.
            please try to only focus on posts relevant to you and skip all others.

            Meta Chuh,yes, the shortcuts.xml I’m looking at is in %AppData%\Notepad++, but it’s impervious to changes. I can edit it, but the changes don’t appear in NPP.

            please provide us with your debug information, by going to the notepad++ menu ? > debug info… > copy debug info into clipboard, and pasting it here.

            andrecool-68A James BurkeJ 2 Replies Last reply Reply Quote 0
            • andrecool-68A
              andrecool-68 @James Burke
              last edited by

              @James-Burke said:

              Awesome advice here, but it goes by too fast and the menu selections are in Russian. I was afraid this would happen. My head is spinning!

              What don’t you understand in those videos?

              1 Reply Last reply Reply Quote 0
              • andrecool-68A
                andrecool-68 @Meta Chuh
                last edited by

                @Meta-Chuh said:

                i’m sorry about that, @Alan-Kilborn has already tried to put a stop to this “over-posting” towards @andrecool-68.

                Hi, everybody…I’m going to Antarctica.)))

                1 Reply Last reply Reply Quote 0
                • Alan KilbornA
                  Alan Kilborn
                  last edited by

                  So the first video shows a user using a program called Everything , which isn’t part of Notepad++ and may not be something people have access to or want to use. Normally, showing other programs to make a point is OK, but there needs to be some explanation along with it. Also, they should be shown in English.

                  The second video (with more non-English) shows what appears to be the folder where Notepad++ lives, but with some extra VBS that the user is interacting with. Again, no explanation, so a reader is left thinking that they should find these VBS and run them!

                  Ach!

                  1 Reply Last reply Reply Quote 0
                  • James BurkeJ
                    James Burke @Meta Chuh
                    last edited by

                    @Meta-Chuh said:

                    @James-Burke
                    please provide us with your debug information, by going to the notepad++ menu ? > debug info… > copy debug info into clipboard, and pasting it here.

                    Notepad++ v7.5.9 (32-bit)
                    Build time : Oct 14 2018 - 15:02:52
                    Path : C:\Program Files (x86)\Notepad++\notepad++.exe
                    Admin mode : OFF
                    Local Conf mode : OFF
                    OS : Windows 7 (64-bit)
                    Plugins : mimeTools.dll NppConverter.dll ComparePlugin.dll NppFTP.dll PluginManager.dll
                    NppFTP.dll PluginManager.dll

                    1 Reply Last reply Reply Quote 1
                    • Terry RT
                      Terry R
                      last edited by

                      @James-Burke said:

                      I’m trying to edit shortcuts.xml

                      Two thoughts:

                      1. Make sure that if you are editing this file with Notepad++ (NPP), it is the ONLY step you do in a NPP session. That is because upon closing, NPP can update the file itself if anything during the current session dictates updating information within that, or other configuration files.

                      2. A method of determining which of the shortcuts.xml files is being used is to create a small macro. I suggest using the one @guy038 produced, read:
                        https://notepad-plus-plus.org/community/topic/17355/select-word/4
                        Close NPP immediately after saving that macro, then use Windows Explorer to find (advanced search) ALL files on your PC with a modified date being the day you do this. It will take time, but that’s a sure method of finding the file used by your NPP installation.

                      Terry

                      James BurkeJ 1 Reply Last reply Reply Quote 2
                      • Meta ChuhM
                        Meta Chuh moderator @James Burke
                        last edited by Meta Chuh

                        @James-Burke

                        according to your debug info, your shortcuts.xml should be located at %AppData%\Notepad++\shortcuts.xml.

                        if you say “it’s impervious to changes”, do you mean, that once you close notepad++ and reopen it again, your changes disappear from your shortcuts.xml ?

                        if yes, please close notepad++ and edit %AppData%\Notepad++\shortcuts.xml using another editor, e.g. the windows internal notepad.exe editor, then save it, and reopen notepad++.

                        note: there might be something else strange about your installation, because the plugins NppFTP.dll and PluginManager.dll are listed twice in your debug info, which should never happen.
                        if this is the case, and it did not just happen while pasting it here, i can not exclude that we will have to make a clean, new notepad++ install in order to get it running as expected.
                        we will give you a detailed step by step guide for that, as soon as we run out of options, and you decide, that a fresh, guided install would be your preferred choice.

                        1 Reply Last reply Reply Quote 3
                        • James BurkeJ
                          James Burke @Terry R
                          last edited by

                          @Terry-R said:

                          @James-Burke said:

                          I’m trying to edit shortcuts.xml

                          Two thoughts:

                          1. Make sure that if you are editing this file with Notepad++ (NPP), it is the ONLY step you do in a NPP session. That is because upon closing, NPP can update the file itself if anything during the current session dictates updating information within that, or other configuration files.
                            Terry

                          Yes, your hints, plus Meta Chuh’s, did the trick. I could never have figured it out on my own. I could find all the bits & pieces, but it never would have occurred to me to edit the shortcuts file as you described. This is how my shortcuts.xml file looks now:
                          <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=“67”>chrome “$(FULL_CURRENT_PATH)”</Command>
                          <Command name=“Launch in Safari” Ctrl=“yes” Alt=“yes” Shift=“yes” Key=“98”>safari “$(FULL_CURRENT_PATH)”</Command>
                          <Command name=“Launch in Yandex” Ctrl=“yes” Alt=“yes” Shift=“yes” Key=“98”>yandex “$(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”>http://www.google.com/search?q=$(CURRENT_WORD)</Command>
                          <Command name=“Wikipedia Search” Ctrl=“no” Alt=“yes” Shift=“no” Key=“114”>http://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=“Open containing folder” Ctrl=“no” Alt=“no” Shift=“no” Key=“0”>explorer $(CURRENT_DIRECTORY)</Command>
                          <Command name=“Open current dir cmd” Ctrl=“no” Alt=“no” Shift=“no” Key=“0”>cmd /K cd $(CURRENT_DIRECTORY)</Command>
                          <Command name=“Send via Outlook” Ctrl=“yes” Alt=“yes” Shift=“yes” Key=“79”>outlook /a “$(FULL_CURRENT_PATH)”</Command>
                          </UserDefinedCommands>
                          <PluginCommands />
                          <ScintillaKeys />
                          </NotepadPlus>

                          This is a most useful setup for website editing since I can quickly see how my html looks in different browsers. The new way (without the “Run” choice inside NPP) is much too slow and clunky. Thanks to both of you for your help.

                          Meta ChuhM 1 Reply Last reply Reply Quote 2
                          • Meta ChuhM
                            Meta Chuh moderator @James Burke
                            last edited by

                            thank you for sharing your shortcuts.xml @James-Burke
                            i’m glad you got it working, and my apologies that it consumed more of your time than it should.

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