Community
    • Login

    Run Open Script

    Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
    run
    7 Posts 4 Posters 1.4k Views 1 Watching
    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.
    • VeritiusV Offline
      Veritius
      last edited by

      How do I make CTRL+R run the file I currently have open?

      EkopalypseE Meta ChuhM Alan KilbornA 3 Replies Last reply Reply Quote 0
      • EkopalypseE Offline
        Ekopalypse @Veritius
        last edited by Ekopalypse

        @Veritius

        without having further info the steps needed to do are

        1. create a run configuration and save it (run menu->run)
          e.g. python $(FULL_CURRENT_PATH)
        2. assign the shortcut CTRL+R to this new run menu entry. (run menu->modify shortcut/…)
        1 Reply Last reply Reply Quote 3
        • Meta ChuhM Offline
          Meta Chuh moderator @Veritius
          last edited by

          @Veritius

          note: ctrl+r is mapped to file > reload from disk in newer versions of notepad++, so if you really want to use this shortcut, and you are e.g. on notepad++ 7.7, you should remove this shortcut from preferences > shortcut mapper > main menu > reload from disk.

          1 Reply Last reply Reply Quote 3
          • Alan KilbornA Offline
            Alan Kilborn @Veritius
            last edited by

            My first thought on this was that the file is probably html and the OP wants a keycombo to open it in Chrome for ex. Easy, just go to Shortcut Mapper and map the View (menu) > View Current File in > Chrome command…but I found no such command available in the Shortcut Mapper…

            Meta ChuhM 1 Reply Last reply Reply Quote 0
            • Meta ChuhM Offline
              Meta Chuh moderator @Alan Kilborn
              last edited by

              @Alan-Kilborn

              only the final menu name is accessible at the shortcut mapper, not the sub-category, so you have to search for e.g. chrome or edge, instead of the word view.

              Alan KilbornA 1 Reply Last reply Reply Quote 2
              • Alan KilbornA Offline
                Alan Kilborn @Meta Chuh
                last edited by

                @Meta-Chuh

                True, I was looking for something about “View Current File in Chrome” instead of just “Chrome”! Thx, MC.

                I noticed something a bit disconcerting about the Filter function in the Shortcut Mapper: If I filter for Chrome, it is found but the number in the left column I expected to stay at 143, but it showed 1. It would be nice if it stayed at 143 because then if I clear the filter I can move the scrollbar to the 140’s section and see related commands. When the filtering starts it over at 1 this kind of thing doesn’t work. I’d guess that this is an auto-numbering by a grid control and N++ doesn’t really ever deal with it…

                Meta ChuhM 1 Reply Last reply Reply Quote 2
                • Meta ChuhM Offline
                  Meta Chuh moderator @Alan Kilborn
                  last edited by

                  @Alan-Kilborn

                  yes.
                  as far as i have seen, the numbering was introduced before the search filter was added, to allow supporters to say e.g. “go to line 143”.

                  you are correct, the numbering is still generated at the time of displaying, and not taken from a table, created once, when shortcut mapper is initialised.

                  1 Reply Last reply Reply Quote 3

                  Hello! It looks like you're interested in this conversation, but you don't have an account yet.

                  Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

                  With your input, this post could be even better 💗

                  Register Login
                  • First post
                    Last post
                  The Community of users of the Notepad++ text editor.
                  Powered by NodeBB | Contributors