• Login
Community
  • Login

Run Open Script

Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
run
7 Posts 4 Posters 964 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.
  • V
    Veritius
    last edited by May 21, 2019, 1:01 AM

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

    E M A 3 Replies Last reply May 21, 2019, 10:21 AM Reply Quote 0
    • E
      Ekopalypse @Veritius
      last edited by Ekopalypse May 21, 2019, 10:22 AM May 21, 2019, 10:21 AM

      @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
      • M
        Meta Chuh moderator @Veritius
        last edited by May 21, 2019, 10:29 AM

        @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
        • A
          Alan Kilborn @Veritius
          last edited by May 21, 2019, 12:24 PM

          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…

          M 1 Reply Last reply May 21, 2019, 12:51 PM Reply Quote 0
          • M
            Meta Chuh moderator @Alan Kilborn
            last edited by May 21, 2019, 12:51 PM

            @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.

            A 1 Reply Last reply May 21, 2019, 12:57 PM Reply Quote 2
            • A
              Alan Kilborn @Meta Chuh
              last edited by May 21, 2019, 12:57 PM

              @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…

              M 1 Reply Last reply May 21, 2019, 1:19 PM Reply Quote 2
              • M
                Meta Chuh moderator @Alan Kilborn
                last edited by May 21, 2019, 1:19 PM

                @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
                3 out of 7
                • First post
                  3/7
                  Last post
                The Community of users of the Notepad++ text editor.
                Powered by NodeBB | Contributors