You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Some keybinding option for cursor movement are missing #10277
RStudio Edition : server & desktop
RStudio Version : RStudio 2021.09.1+372 "Ghost Orchid" Release (8b9ced188245155642d024aa3630363df611088a, 2021-11-08) for Ubuntu Bionic
Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/96.0.4664.113 Safari/537.36
OS Version : Manjaro (more details below)
R Version : 4.1.2 (2021-11-01)
Detail of my system information:
Operating System : Manjaro Linux
KDE Plasma Version : 5.23.4
KDE Frameworks Version: 5.88.0
Qt Version : 5.15.2
Kernel Version : 5.15.7-1-MANJARO (64-bit)
Graphics Platform : X11
Processors : 8 × Intel® Core™ i7-4770K CPU @ 3.50GHz
Memory : 15.5 GiB of RAM
Graphics Processor : NVIDIA GeForce GTX 1060 6GB/PCIe/SSE2
Steps to reproduce the problem
open Rstudio (server or desktop)
3.
Describe the problem in detail
There is entry/option for "move to previous character" but no entry/option for "move to next character"
There is entry/option for "move to next word" but no entry/option for "move to previous word"
Needless to say that the "keyboard shortcuts" modal window does not follow the theme of the software (as you can see in the screenshot above) which is extremely annoying and hurtful to my eyes, but that is perhaps for another bug report. :)
Describe the behavior you expected
I expect to be able to customize the "move to next character" and "move to previous word" keybindings
@mikebessuille following to your comment, I set the cursor movements with Ctrl+{VIM keys} and I managed to get them all working other than Ctrl+L in my setup weirdly does nothing in the editor. (it correctly cleans the console when I'm in console though):
I then realized that the Rstudio is not sensitive to duplicated shortcuts. For instance in the screenshot above, I have Ctrl+J set to Move Downwards one line in the Editor scope, but it is also by default set to Split Line in the same scope. Interestingly enough, the Move Downwards one line is triggered with the keybinding and the Split Line is not triggered which makes me wonder if the one with a higher rank in the alphabetical order has the priority in the current implementation.
Update: I found a help page of Rstudio server which states under "Handling Conflicts" heading that the Rstudio marks the conflicts, but in my end with the same exact Rstudio Server version I don't see such thing (as also illustrated in the image above).
Update: I just realized that the Ctrl+L actually works, but always the "Clear Console" is triggered regardless of the scope I'm in. I typically use my right [vertical] monitor for the "editor" and the rest of Rstudio is on the left [horizontal] monitor. I rarely put the main window in focus and almost always I'm in the editor and that is how I realized Rstudio shortcuts (or at least this particular one) does not respect the defined scope. To me this feels like a bug. Let me know if you want me to create a new dedicated issue for this or you would like to track this bug along with this "enhancement" issue.
At the moment of writing this I'm on the following version of Rstudio:
RStudio 2021.09.2+382 "Ghost Orchid" Release (fc9e217980ee9320126e33cdf334d4f4e105dc4f, 2022-01-04) for Ubuntu Bionic
Mozilla/5.0 (X11; Linux x86_64; rv:97.0) Gecko/20100101 Firefox/97.0
Activity
ronblum commentedon Dec 22, 2021
@mmahmoudian Thank you for the suggestions! Also, would you mind filing another issue for the modal's theme? Thanks!
mikebessuille commentedon Jan 3, 2022
we have a keyboard shortcut for "Go to next character"

Looks like these were just named inconsistently; we should fix that.
kevinushey commentedon Jan 3, 2022
Custom names for Ace keybindings are defined here:
rstudio/src/gwt/src/org/rstudio/studio/client/workbench/views/source/editors/text/ace/AceCommand.java
Lines 98 to 185 in 9bbfe5b
The full list of default Ace commands is here:
https://github.com/ajaxorg/ace/blob/master/lib/ace/commands/default_commands.js
mmahmoudian commentedon Jan 4, 2022
I also realized that there is another naming mismatch: "Modify keyboard shortcuts" but "Edit code snippets".
mmahmoudian commentedon Jan 5, 2022
@mikebessuille following to your comment, I set the cursor movements with Ctrl+{VIM keys} and I managed to get them all working other than
Ctrl+Lin my setup weirdly does nothing in the editor. (it correctly cleans the console when I'm in console though):I then realized that the Rstudio is not sensitive to duplicated shortcuts. For instance in the screenshot above, I have Ctrl+J set to
Move Downwards one linein theEditorscope, but it is also by default set toSplit Linein the same scope. Interestingly enough, theMove Downwards one lineis triggered with the keybinding and theSplit Lineis not triggered which makes me wonder if the one with a higher rank in the alphabetical order has the priority in the current implementation.Update: I found a help page of Rstudio server which states under "Handling Conflicts" heading that the Rstudio marks the conflicts, but in my end with the same exact Rstudio Server version I don't see such thing (as also illustrated in the image above).
mmahmoudian commentedon Feb 16, 2022
Update: I just realized that the Ctrl+L actually works, but always the "Clear Console" is triggered regardless of the scope I'm in. I typically use my right [vertical] monitor for the "editor" and the rest of Rstudio is on the left [horizontal] monitor. I rarely put the main window in focus and almost always I'm in the editor and that is how I realized Rstudio shortcuts (or at least this particular one) does not respect the defined scope. To me this feels like a bug. Let me know if you want me to create a new dedicated issue for this or you would like to track this bug along with this "enhancement" issue.
At the moment of writing this I'm on the following version of Rstudio:
Running it on: