Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Why can't I reasign the "Undo" function as ctrl+y instead of ctrl+shift+z. Why can't I remove the default "yank" command

Tags:

rstudio

I NEED the ctrl+y to be redo. I've tried replacing the "redo" command from ctrl+shift+z to ctrl+y, but no matter what it will always do a "paste yank text" when I hit ctrl+y.

If you don't believe my, try to recreate this error for yourself

To add on top of that, yank (ctrl+y) doesn't even appear on the keyboard shortcuts list. It's frustrating and always interferes with my work. There's no reason to have yank when cut and paste already exist. I just need normal undo/redo shortcut behavior just like it is in literally everything else, and the "yank" feature to be permanently gone from my keyboard shortcuts. Either will be a lifesaver.

like image 270
Tom Avatar asked Mar 16 '16 21:03

Tom


People also ask

Is redo Ctrl Y or Ctrl Shift Z?

To learn about the keyboard shortcuts in the new content editor, see Keyboard shortcut functions. To reverse your last action, press CTRL+Z. You can reverse more than one action. To reverse your last Undo, press CTRL+Y.

How do you redo instead of Ctrl Z?

To undo an action, press Ctrl + Z. To redo an undone action, press Ctrl + Y.

How do I fix Ctrl Z not working?

The quick and easiest method to fix Ctrl+Z not working in Windows 11/10 is to restart your computer. This can remove the corrupt temporary files that might cause this issue. You can click the Windows icon > the Power button > Restart to restart your device.

Is there a control function for undo?

To undo an action press Ctrl+Z. If you prefer your mouse, click Undo on the Quick Access Toolbar. You can press Undo (or CTRL+Z) repeatedly if you want to undo multiple steps.


2 Answers

R-Studio version 1.2.5001. Now you can.

By default, Redo is now linked to CTRL+Y. However, it still doesn't work, as it (still by default) conflicts with paste Yank text.

To make it work, go in ToolsModify Keyboard Shortcuts → Look for Yank→ delete the conflicting assignment that uses CTRL+Y. Make sure that Redo has that instead.

Kudos to this question that highlighted there could be a hidden conflict, specifically with this "Yank" thing.

like image 141
alelom Avatar answered Jan 04 '23 13:01

alelom


I concur... There's supposed to be a filed bug report for that...

https://support.rstudio.com/hc/en-us/community/posts/208103438-Redo-pastes

In the meantime, CTRL-SHIFT-Y works fine, although it's probably not what you're looking for.

like image 23
Dominic Comtois Avatar answered Jan 04 '23 12:01

Dominic Comtois