Sublime text keyboard shortcut binding not functioning












10














Following the instructions here, I've set up a new installation of SublimeText for use with R. I have no other SublimeText plug-ins installed. The keyboard shortcuts that are setup using the instructions in the link above don't work. I've set up my user key binding file as specified in the tutorial.



There are no conflicting key bindings in the 'Default' key bindings file.



Nonetheless, I can execute my R code in REPL by clicking through the menus:




Tools > SublimeREPL > Eval in REPL > Selection (Ctrl+Shift+R)




If I actually press the Ctrl+Shift+R shortcut, nothing happens.



Here's a copy of my user key binding file:



[
// Modified Sublime-REPL keybindings for an "R-friendly" set of shortcuts.
// For more information, see http://tomschenkjr.net/2012/05/17/using-sublime-text-2-for-r/

// Executes a selection of text in REPL, latter only displays code and does not execute
{ "keys": ["ctrl+shift+r"], "command": "repl_transfer_current", "args": {"scope": "selection"}},
{ "keys": ["ctrl+shift+r", "r"], "command": "repl_transfer_current", "args": {"scope": "selection", "action":"view_write"}},

// Executes the entire file (build) in REPL, latter only displays code and does not execute
{ "keys": ["ctrl + f7"], "command": "repl_transfer_current", "args": {"scope": "file"}},
{ "keys": ["ctrl + f7", "r"], "command": "repl_transfer_current", "args": {"scope": "file", "action":"view_write"}},

// Executes line(s) of text in REPL terminal, latter only displays code and does not execute
{ "keys": ["ctrl+alt+r"], "command": "repl_transfer_current", "args": {"scope": "lines"}},
{ "keys": ["ctrl+alt+r", "r"], "command": "repl_transfer_current", "args": {"scope": "lines", "action":"view_write"}},

// Executes a block (e.g., a custom function) of text in REPL terminal, latter only displays code and does not execute
{ "keys": ["ctrl+shift+alt+r"], "command": "repl_transfer_current", "args": {"scope": "block"}},
{ "keys": ["ctrl+shift+alt+r", "r"], "command": "repl_transfer_current", "args": {"scope": "block", "action":"view_write"}}

]


What am I doing wrong?










share|improve this question




















  • 2




    Open the console (ctrl+~) and enter sublime.log_commands(True). Then tell us what the console says after entering the key binding.
    – d_rail
    Jul 28 '13 at 22:52










  • Many thanks @d_rail. Interestingly, I can't even call the console using ctrl+~ (the window menu says the shortcut is ctrl+` ; this doesn't work either). In any event, the console reports nothing when I press ctrl+shift+R with the sublime.log_commands(True) activated. Other common shortcuts, like ctrl+a, ctrl+c etc work and are reported in the console.
    – CaptainProg
    Jul 29 '13 at 11:55












  • Okay, here's the weird thing; if I press ctrl+shift+CapsLock+R, it works...
    – CaptainProg
    Jul 29 '13 at 14:27










  • Sorry to give you wrong info, the backtick is right. Sounds like the keybinding is not set. But, I don't see anything wrong with the settings listed. I would start with the default keybindings from here: github.com/wuub/SublimeREPL/blob/master/… (or the right one for your OS). And make sure that works. Then change one key at a time to see what's messing it up.
    – d_rail
    Jul 29 '13 at 20:12










  • Has a solution been found for this issue yet?
    – music2myear
    Mar 15 '17 at 19:46
















10














Following the instructions here, I've set up a new installation of SublimeText for use with R. I have no other SublimeText plug-ins installed. The keyboard shortcuts that are setup using the instructions in the link above don't work. I've set up my user key binding file as specified in the tutorial.



There are no conflicting key bindings in the 'Default' key bindings file.



Nonetheless, I can execute my R code in REPL by clicking through the menus:




Tools > SublimeREPL > Eval in REPL > Selection (Ctrl+Shift+R)




If I actually press the Ctrl+Shift+R shortcut, nothing happens.



Here's a copy of my user key binding file:



[
// Modified Sublime-REPL keybindings for an "R-friendly" set of shortcuts.
// For more information, see http://tomschenkjr.net/2012/05/17/using-sublime-text-2-for-r/

// Executes a selection of text in REPL, latter only displays code and does not execute
{ "keys": ["ctrl+shift+r"], "command": "repl_transfer_current", "args": {"scope": "selection"}},
{ "keys": ["ctrl+shift+r", "r"], "command": "repl_transfer_current", "args": {"scope": "selection", "action":"view_write"}},

// Executes the entire file (build) in REPL, latter only displays code and does not execute
{ "keys": ["ctrl + f7"], "command": "repl_transfer_current", "args": {"scope": "file"}},
{ "keys": ["ctrl + f7", "r"], "command": "repl_transfer_current", "args": {"scope": "file", "action":"view_write"}},

// Executes line(s) of text in REPL terminal, latter only displays code and does not execute
{ "keys": ["ctrl+alt+r"], "command": "repl_transfer_current", "args": {"scope": "lines"}},
{ "keys": ["ctrl+alt+r", "r"], "command": "repl_transfer_current", "args": {"scope": "lines", "action":"view_write"}},

// Executes a block (e.g., a custom function) of text in REPL terminal, latter only displays code and does not execute
{ "keys": ["ctrl+shift+alt+r"], "command": "repl_transfer_current", "args": {"scope": "block"}},
{ "keys": ["ctrl+shift+alt+r", "r"], "command": "repl_transfer_current", "args": {"scope": "block", "action":"view_write"}}

]


What am I doing wrong?










share|improve this question




















  • 2




    Open the console (ctrl+~) and enter sublime.log_commands(True). Then tell us what the console says after entering the key binding.
    – d_rail
    Jul 28 '13 at 22:52










  • Many thanks @d_rail. Interestingly, I can't even call the console using ctrl+~ (the window menu says the shortcut is ctrl+` ; this doesn't work either). In any event, the console reports nothing when I press ctrl+shift+R with the sublime.log_commands(True) activated. Other common shortcuts, like ctrl+a, ctrl+c etc work and are reported in the console.
    – CaptainProg
    Jul 29 '13 at 11:55












  • Okay, here's the weird thing; if I press ctrl+shift+CapsLock+R, it works...
    – CaptainProg
    Jul 29 '13 at 14:27










  • Sorry to give you wrong info, the backtick is right. Sounds like the keybinding is not set. But, I don't see anything wrong with the settings listed. I would start with the default keybindings from here: github.com/wuub/SublimeREPL/blob/master/… (or the right one for your OS). And make sure that works. Then change one key at a time to see what's messing it up.
    – d_rail
    Jul 29 '13 at 20:12










  • Has a solution been found for this issue yet?
    – music2myear
    Mar 15 '17 at 19:46














10












10








10


2





Following the instructions here, I've set up a new installation of SublimeText for use with R. I have no other SublimeText plug-ins installed. The keyboard shortcuts that are setup using the instructions in the link above don't work. I've set up my user key binding file as specified in the tutorial.



There are no conflicting key bindings in the 'Default' key bindings file.



Nonetheless, I can execute my R code in REPL by clicking through the menus:




Tools > SublimeREPL > Eval in REPL > Selection (Ctrl+Shift+R)




If I actually press the Ctrl+Shift+R shortcut, nothing happens.



Here's a copy of my user key binding file:



[
// Modified Sublime-REPL keybindings for an "R-friendly" set of shortcuts.
// For more information, see http://tomschenkjr.net/2012/05/17/using-sublime-text-2-for-r/

// Executes a selection of text in REPL, latter only displays code and does not execute
{ "keys": ["ctrl+shift+r"], "command": "repl_transfer_current", "args": {"scope": "selection"}},
{ "keys": ["ctrl+shift+r", "r"], "command": "repl_transfer_current", "args": {"scope": "selection", "action":"view_write"}},

// Executes the entire file (build) in REPL, latter only displays code and does not execute
{ "keys": ["ctrl + f7"], "command": "repl_transfer_current", "args": {"scope": "file"}},
{ "keys": ["ctrl + f7", "r"], "command": "repl_transfer_current", "args": {"scope": "file", "action":"view_write"}},

// Executes line(s) of text in REPL terminal, latter only displays code and does not execute
{ "keys": ["ctrl+alt+r"], "command": "repl_transfer_current", "args": {"scope": "lines"}},
{ "keys": ["ctrl+alt+r", "r"], "command": "repl_transfer_current", "args": {"scope": "lines", "action":"view_write"}},

// Executes a block (e.g., a custom function) of text in REPL terminal, latter only displays code and does not execute
{ "keys": ["ctrl+shift+alt+r"], "command": "repl_transfer_current", "args": {"scope": "block"}},
{ "keys": ["ctrl+shift+alt+r", "r"], "command": "repl_transfer_current", "args": {"scope": "block", "action":"view_write"}}

]


What am I doing wrong?










share|improve this question















Following the instructions here, I've set up a new installation of SublimeText for use with R. I have no other SublimeText plug-ins installed. The keyboard shortcuts that are setup using the instructions in the link above don't work. I've set up my user key binding file as specified in the tutorial.



There are no conflicting key bindings in the 'Default' key bindings file.



Nonetheless, I can execute my R code in REPL by clicking through the menus:




Tools > SublimeREPL > Eval in REPL > Selection (Ctrl+Shift+R)




If I actually press the Ctrl+Shift+R shortcut, nothing happens.



Here's a copy of my user key binding file:



[
// Modified Sublime-REPL keybindings for an "R-friendly" set of shortcuts.
// For more information, see http://tomschenkjr.net/2012/05/17/using-sublime-text-2-for-r/

// Executes a selection of text in REPL, latter only displays code and does not execute
{ "keys": ["ctrl+shift+r"], "command": "repl_transfer_current", "args": {"scope": "selection"}},
{ "keys": ["ctrl+shift+r", "r"], "command": "repl_transfer_current", "args": {"scope": "selection", "action":"view_write"}},

// Executes the entire file (build) in REPL, latter only displays code and does not execute
{ "keys": ["ctrl + f7"], "command": "repl_transfer_current", "args": {"scope": "file"}},
{ "keys": ["ctrl + f7", "r"], "command": "repl_transfer_current", "args": {"scope": "file", "action":"view_write"}},

// Executes line(s) of text in REPL terminal, latter only displays code and does not execute
{ "keys": ["ctrl+alt+r"], "command": "repl_transfer_current", "args": {"scope": "lines"}},
{ "keys": ["ctrl+alt+r", "r"], "command": "repl_transfer_current", "args": {"scope": "lines", "action":"view_write"}},

// Executes a block (e.g., a custom function) of text in REPL terminal, latter only displays code and does not execute
{ "keys": ["ctrl+shift+alt+r"], "command": "repl_transfer_current", "args": {"scope": "block"}},
{ "keys": ["ctrl+shift+alt+r", "r"], "command": "repl_transfer_current", "args": {"scope": "block", "action":"view_write"}}

]


What am I doing wrong?







keyboard-shortcuts sublime-text-2 r






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited May 4 at 1:31









JakeGould

30.9k1093137




30.9k1093137










asked Jul 28 '13 at 16:11









CaptainProg

952721




952721








  • 2




    Open the console (ctrl+~) and enter sublime.log_commands(True). Then tell us what the console says after entering the key binding.
    – d_rail
    Jul 28 '13 at 22:52










  • Many thanks @d_rail. Interestingly, I can't even call the console using ctrl+~ (the window menu says the shortcut is ctrl+` ; this doesn't work either). In any event, the console reports nothing when I press ctrl+shift+R with the sublime.log_commands(True) activated. Other common shortcuts, like ctrl+a, ctrl+c etc work and are reported in the console.
    – CaptainProg
    Jul 29 '13 at 11:55












  • Okay, here's the weird thing; if I press ctrl+shift+CapsLock+R, it works...
    – CaptainProg
    Jul 29 '13 at 14:27










  • Sorry to give you wrong info, the backtick is right. Sounds like the keybinding is not set. But, I don't see anything wrong with the settings listed. I would start with the default keybindings from here: github.com/wuub/SublimeREPL/blob/master/… (or the right one for your OS). And make sure that works. Then change one key at a time to see what's messing it up.
    – d_rail
    Jul 29 '13 at 20:12










  • Has a solution been found for this issue yet?
    – music2myear
    Mar 15 '17 at 19:46














  • 2




    Open the console (ctrl+~) and enter sublime.log_commands(True). Then tell us what the console says after entering the key binding.
    – d_rail
    Jul 28 '13 at 22:52










  • Many thanks @d_rail. Interestingly, I can't even call the console using ctrl+~ (the window menu says the shortcut is ctrl+` ; this doesn't work either). In any event, the console reports nothing when I press ctrl+shift+R with the sublime.log_commands(True) activated. Other common shortcuts, like ctrl+a, ctrl+c etc work and are reported in the console.
    – CaptainProg
    Jul 29 '13 at 11:55












  • Okay, here's the weird thing; if I press ctrl+shift+CapsLock+R, it works...
    – CaptainProg
    Jul 29 '13 at 14:27










  • Sorry to give you wrong info, the backtick is right. Sounds like the keybinding is not set. But, I don't see anything wrong with the settings listed. I would start with the default keybindings from here: github.com/wuub/SublimeREPL/blob/master/… (or the right one for your OS). And make sure that works. Then change one key at a time to see what's messing it up.
    – d_rail
    Jul 29 '13 at 20:12










  • Has a solution been found for this issue yet?
    – music2myear
    Mar 15 '17 at 19:46








2




2




Open the console (ctrl+~) and enter sublime.log_commands(True). Then tell us what the console says after entering the key binding.
– d_rail
Jul 28 '13 at 22:52




Open the console (ctrl+~) and enter sublime.log_commands(True). Then tell us what the console says after entering the key binding.
– d_rail
Jul 28 '13 at 22:52












Many thanks @d_rail. Interestingly, I can't even call the console using ctrl+~ (the window menu says the shortcut is ctrl+` ; this doesn't work either). In any event, the console reports nothing when I press ctrl+shift+R with the sublime.log_commands(True) activated. Other common shortcuts, like ctrl+a, ctrl+c etc work and are reported in the console.
– CaptainProg
Jul 29 '13 at 11:55






Many thanks @d_rail. Interestingly, I can't even call the console using ctrl+~ (the window menu says the shortcut is ctrl+` ; this doesn't work either). In any event, the console reports nothing when I press ctrl+shift+R with the sublime.log_commands(True) activated. Other common shortcuts, like ctrl+a, ctrl+c etc work and are reported in the console.
– CaptainProg
Jul 29 '13 at 11:55














Okay, here's the weird thing; if I press ctrl+shift+CapsLock+R, it works...
– CaptainProg
Jul 29 '13 at 14:27




Okay, here's the weird thing; if I press ctrl+shift+CapsLock+R, it works...
– CaptainProg
Jul 29 '13 at 14:27












Sorry to give you wrong info, the backtick is right. Sounds like the keybinding is not set. But, I don't see anything wrong with the settings listed. I would start with the default keybindings from here: github.com/wuub/SublimeREPL/blob/master/… (or the right one for your OS). And make sure that works. Then change one key at a time to see what's messing it up.
– d_rail
Jul 29 '13 at 20:12




Sorry to give you wrong info, the backtick is right. Sounds like the keybinding is not set. But, I don't see anything wrong with the settings listed. I would start with the default keybindings from here: github.com/wuub/SublimeREPL/blob/master/… (or the right one for your OS). And make sure that works. Then change one key at a time to see what's messing it up.
– d_rail
Jul 29 '13 at 20:12












Has a solution been found for this issue yet?
– music2myear
Mar 15 '17 at 19:46




Has a solution been found for this issue yet?
– music2myear
Mar 15 '17 at 19:46










2 Answers
2






active

oldest

votes


















0














This has a simple solution. There is an error in the configuration file, one simply needs to remove the shift+ctrl+r,r line:



[
// Modified Sublime-REPL keybindings for an "R-friendly" set of shortcuts.
// For more information, see http://tomschenkjr.net/2012/05/17/using-sublime-text-2-for-r/

// Executes a selection of text in REPL, latter only displays code and does not execute
{ "keys": ["ctrl+shift+r"], "command": "repl_transfer_current", "args": {"scope": "selection"}},

// Executes the entire file (build) in REPL, latter only displays code and does not execute
{ "keys": ["ctrl + f7"], "command": "repl_transfer_current", "args": {"scope": "file"}},


// Executes line(s) of text in REPL terminal, latter only displays code and does not execute
{ "keys": ["ctrl+alt+r"], "command": "repl_transfer_current", "args": {"scope": "lines"}},


// Executes a block (e.g., a custom function) of text in REPL terminal, latter only displays code and does not execute
{ "keys": ["ctrl+shift+alt+r"], "command": "repl_transfer_current", "args": {"scope": "block"}},


]





share|improve this answer





























    0














    Thanks to the following comment from OP:




    Okay, here's the weird thing; if I press ctrl+shift+CapsLock+R, it
    works...




    I can guess that ["ctrl+shift+r"] waits for a lowercase r, however, when you've pressed shift (which is a part of the shortcut key combination), it reads an uppercase R.



    When OP has turned his CapsLock on, pressing r would have normally outputted R, but while SHIFT key is pressed, it reads lowercase r.



    This probably happens because Sublime tries to read the exact same character, rather than the key code of the pressed button.



    And thus, the solution should be using the opposite case letter when in a key combination including SHIFT (using R instead of r in this case):



    // Executes a selection of text in REPL, latter only displays code and does not execute
    { "keys": ["ctrl+shift+R"], "command": "repl_transfer_current", "args": {"scope": "selection"}},
    { "keys": ["ctrl+shift+R", "r"], "command": "repl_transfer_current", "args": {"scope": "selection", "action":"view_write"}},





    share|improve this answer





















      Your Answer








      StackExchange.ready(function() {
      var channelOptions = {
      tags: "".split(" "),
      id: "3"
      };
      initTagRenderer("".split(" "), "".split(" "), channelOptions);

      StackExchange.using("externalEditor", function() {
      // Have to fire editor after snippets, if snippets enabled
      if (StackExchange.settings.snippets.snippetsEnabled) {
      StackExchange.using("snippets", function() {
      createEditor();
      });
      }
      else {
      createEditor();
      }
      });

      function createEditor() {
      StackExchange.prepareEditor({
      heartbeatType: 'answer',
      autoActivateHeartbeat: false,
      convertImagesToLinks: true,
      noModals: true,
      showLowRepImageUploadWarning: true,
      reputationToPostImages: 10,
      bindNavPrevention: true,
      postfix: "",
      imageUploader: {
      brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
      contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
      allowUrls: true
      },
      onDemand: true,
      discardSelector: ".discard-answer"
      ,immediatelyShowMarkdownHelp:true
      });


      }
      });














      draft saved

      draft discarded


















      StackExchange.ready(
      function () {
      StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f625213%2fsublime-text-keyboard-shortcut-binding-not-functioning%23new-answer', 'question_page');
      }
      );

      Post as a guest















      Required, but never shown

























      2 Answers
      2






      active

      oldest

      votes








      2 Answers
      2






      active

      oldest

      votes









      active

      oldest

      votes






      active

      oldest

      votes









      0














      This has a simple solution. There is an error in the configuration file, one simply needs to remove the shift+ctrl+r,r line:



      [
      // Modified Sublime-REPL keybindings for an "R-friendly" set of shortcuts.
      // For more information, see http://tomschenkjr.net/2012/05/17/using-sublime-text-2-for-r/

      // Executes a selection of text in REPL, latter only displays code and does not execute
      { "keys": ["ctrl+shift+r"], "command": "repl_transfer_current", "args": {"scope": "selection"}},

      // Executes the entire file (build) in REPL, latter only displays code and does not execute
      { "keys": ["ctrl + f7"], "command": "repl_transfer_current", "args": {"scope": "file"}},


      // Executes line(s) of text in REPL terminal, latter only displays code and does not execute
      { "keys": ["ctrl+alt+r"], "command": "repl_transfer_current", "args": {"scope": "lines"}},


      // Executes a block (e.g., a custom function) of text in REPL terminal, latter only displays code and does not execute
      { "keys": ["ctrl+shift+alt+r"], "command": "repl_transfer_current", "args": {"scope": "block"}},


      ]





      share|improve this answer


























        0














        This has a simple solution. There is an error in the configuration file, one simply needs to remove the shift+ctrl+r,r line:



        [
        // Modified Sublime-REPL keybindings for an "R-friendly" set of shortcuts.
        // For more information, see http://tomschenkjr.net/2012/05/17/using-sublime-text-2-for-r/

        // Executes a selection of text in REPL, latter only displays code and does not execute
        { "keys": ["ctrl+shift+r"], "command": "repl_transfer_current", "args": {"scope": "selection"}},

        // Executes the entire file (build) in REPL, latter only displays code and does not execute
        { "keys": ["ctrl + f7"], "command": "repl_transfer_current", "args": {"scope": "file"}},


        // Executes line(s) of text in REPL terminal, latter only displays code and does not execute
        { "keys": ["ctrl+alt+r"], "command": "repl_transfer_current", "args": {"scope": "lines"}},


        // Executes a block (e.g., a custom function) of text in REPL terminal, latter only displays code and does not execute
        { "keys": ["ctrl+shift+alt+r"], "command": "repl_transfer_current", "args": {"scope": "block"}},


        ]





        share|improve this answer
























          0












          0








          0






          This has a simple solution. There is an error in the configuration file, one simply needs to remove the shift+ctrl+r,r line:



          [
          // Modified Sublime-REPL keybindings for an "R-friendly" set of shortcuts.
          // For more information, see http://tomschenkjr.net/2012/05/17/using-sublime-text-2-for-r/

          // Executes a selection of text in REPL, latter only displays code and does not execute
          { "keys": ["ctrl+shift+r"], "command": "repl_transfer_current", "args": {"scope": "selection"}},

          // Executes the entire file (build) in REPL, latter only displays code and does not execute
          { "keys": ["ctrl + f7"], "command": "repl_transfer_current", "args": {"scope": "file"}},


          // Executes line(s) of text in REPL terminal, latter only displays code and does not execute
          { "keys": ["ctrl+alt+r"], "command": "repl_transfer_current", "args": {"scope": "lines"}},


          // Executes a block (e.g., a custom function) of text in REPL terminal, latter only displays code and does not execute
          { "keys": ["ctrl+shift+alt+r"], "command": "repl_transfer_current", "args": {"scope": "block"}},


          ]





          share|improve this answer












          This has a simple solution. There is an error in the configuration file, one simply needs to remove the shift+ctrl+r,r line:



          [
          // Modified Sublime-REPL keybindings for an "R-friendly" set of shortcuts.
          // For more information, see http://tomschenkjr.net/2012/05/17/using-sublime-text-2-for-r/

          // Executes a selection of text in REPL, latter only displays code and does not execute
          { "keys": ["ctrl+shift+r"], "command": "repl_transfer_current", "args": {"scope": "selection"}},

          // Executes the entire file (build) in REPL, latter only displays code and does not execute
          { "keys": ["ctrl + f7"], "command": "repl_transfer_current", "args": {"scope": "file"}},


          // Executes line(s) of text in REPL terminal, latter only displays code and does not execute
          { "keys": ["ctrl+alt+r"], "command": "repl_transfer_current", "args": {"scope": "lines"}},


          // Executes a block (e.g., a custom function) of text in REPL terminal, latter only displays code and does not execute
          { "keys": ["ctrl+shift+alt+r"], "command": "repl_transfer_current", "args": {"scope": "block"}},


          ]






          share|improve this answer












          share|improve this answer



          share|improve this answer










          answered Oct 26 '17 at 10:51









          lf_araujo

          1011




          1011

























              0














              Thanks to the following comment from OP:




              Okay, here's the weird thing; if I press ctrl+shift+CapsLock+R, it
              works...




              I can guess that ["ctrl+shift+r"] waits for a lowercase r, however, when you've pressed shift (which is a part of the shortcut key combination), it reads an uppercase R.



              When OP has turned his CapsLock on, pressing r would have normally outputted R, but while SHIFT key is pressed, it reads lowercase r.



              This probably happens because Sublime tries to read the exact same character, rather than the key code of the pressed button.



              And thus, the solution should be using the opposite case letter when in a key combination including SHIFT (using R instead of r in this case):



              // Executes a selection of text in REPL, latter only displays code and does not execute
              { "keys": ["ctrl+shift+R"], "command": "repl_transfer_current", "args": {"scope": "selection"}},
              { "keys": ["ctrl+shift+R", "r"], "command": "repl_transfer_current", "args": {"scope": "selection", "action":"view_write"}},





              share|improve this answer


























                0














                Thanks to the following comment from OP:




                Okay, here's the weird thing; if I press ctrl+shift+CapsLock+R, it
                works...




                I can guess that ["ctrl+shift+r"] waits for a lowercase r, however, when you've pressed shift (which is a part of the shortcut key combination), it reads an uppercase R.



                When OP has turned his CapsLock on, pressing r would have normally outputted R, but while SHIFT key is pressed, it reads lowercase r.



                This probably happens because Sublime tries to read the exact same character, rather than the key code of the pressed button.



                And thus, the solution should be using the opposite case letter when in a key combination including SHIFT (using R instead of r in this case):



                // Executes a selection of text in REPL, latter only displays code and does not execute
                { "keys": ["ctrl+shift+R"], "command": "repl_transfer_current", "args": {"scope": "selection"}},
                { "keys": ["ctrl+shift+R", "r"], "command": "repl_transfer_current", "args": {"scope": "selection", "action":"view_write"}},





                share|improve this answer
























                  0












                  0








                  0






                  Thanks to the following comment from OP:




                  Okay, here's the weird thing; if I press ctrl+shift+CapsLock+R, it
                  works...




                  I can guess that ["ctrl+shift+r"] waits for a lowercase r, however, when you've pressed shift (which is a part of the shortcut key combination), it reads an uppercase R.



                  When OP has turned his CapsLock on, pressing r would have normally outputted R, but while SHIFT key is pressed, it reads lowercase r.



                  This probably happens because Sublime tries to read the exact same character, rather than the key code of the pressed button.



                  And thus, the solution should be using the opposite case letter when in a key combination including SHIFT (using R instead of r in this case):



                  // Executes a selection of text in REPL, latter only displays code and does not execute
                  { "keys": ["ctrl+shift+R"], "command": "repl_transfer_current", "args": {"scope": "selection"}},
                  { "keys": ["ctrl+shift+R", "r"], "command": "repl_transfer_current", "args": {"scope": "selection", "action":"view_write"}},





                  share|improve this answer












                  Thanks to the following comment from OP:




                  Okay, here's the weird thing; if I press ctrl+shift+CapsLock+R, it
                  works...




                  I can guess that ["ctrl+shift+r"] waits for a lowercase r, however, when you've pressed shift (which is a part of the shortcut key combination), it reads an uppercase R.



                  When OP has turned his CapsLock on, pressing r would have normally outputted R, but while SHIFT key is pressed, it reads lowercase r.



                  This probably happens because Sublime tries to read the exact same character, rather than the key code of the pressed button.



                  And thus, the solution should be using the opposite case letter when in a key combination including SHIFT (using R instead of r in this case):



                  // Executes a selection of text in REPL, latter only displays code and does not execute
                  { "keys": ["ctrl+shift+R"], "command": "repl_transfer_current", "args": {"scope": "selection"}},
                  { "keys": ["ctrl+shift+R", "r"], "command": "repl_transfer_current", "args": {"scope": "selection", "action":"view_write"}},






                  share|improve this answer












                  share|improve this answer



                  share|improve this answer










                  answered Aug 9 at 10:54









                  Fanatique

                  1,8521316




                  1,8521316






























                      draft saved

                      draft discarded




















































                      Thanks for contributing an answer to Super User!


                      • Please be sure to answer the question. Provide details and share your research!

                      But avoid



                      • Asking for help, clarification, or responding to other answers.

                      • Making statements based on opinion; back them up with references or personal experience.


                      To learn more, see our tips on writing great answers.





                      Some of your past answers have not been well-received, and you're in danger of being blocked from answering.


                      Please pay close attention to the following guidance:


                      • Please be sure to answer the question. Provide details and share your research!

                      But avoid



                      • Asking for help, clarification, or responding to other answers.

                      • Making statements based on opinion; back them up with references or personal experience.


                      To learn more, see our tips on writing great answers.




                      draft saved


                      draft discarded














                      StackExchange.ready(
                      function () {
                      StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f625213%2fsublime-text-keyboard-shortcut-binding-not-functioning%23new-answer', 'question_page');
                      }
                      );

                      Post as a guest















                      Required, but never shown





















































                      Required, but never shown














                      Required, but never shown












                      Required, but never shown







                      Required, but never shown

































                      Required, but never shown














                      Required, but never shown












                      Required, but never shown







                      Required, but never shown







                      Popular posts from this blog

                      flock() on closed filehandle LOCK_FILE at /usr/bin/apt-mirror

                      Mangá

                       ⁒  ․,‪⁊‑⁙ ⁖, ⁇‒※‌, †,⁖‗‌⁝    ‾‸⁘,‖⁔⁣,⁂‾
”‑,‥–,‬ ,⁀‹⁋‴⁑ ‒ ,‴⁋”‼ ⁨,‷⁔„ ‰′,‐‚ ‥‡‎“‷⁃⁨⁅⁣,⁔
⁇‘⁔⁡⁏⁌⁡‿‶‏⁨ ⁣⁕⁖⁨⁩⁥‽⁀  ‴‬⁜‟ ⁃‣‧⁕‮ …‍⁨‴ ⁩,⁚⁖‫ ,‵ ⁀,‮⁝‣‣ ⁑  ⁂– ․, ‾‽ ‏⁁“⁗‸ ‾… ‹‡⁌⁎‸‘ ‡⁏⁌‪ ‵⁛ ‎⁨ ―⁦⁤⁄⁕