10

I would like to press Shift+Insert and have that execute a paste from the clipboard (the thing that Ctrl+C copies to) inside of gnome-terminal.

In 13.10, Shift+Insert pastes from the selection buffer (the thing that selecting text writes to). In Libre Office, Chrome, and Firefox, Shift+Insert pastes from the clipboard. I would thus like to configure gnome-terminal to do the same.

I would not like to use Ctrl+Shift+V. EDIT: I phrased this poorly. I would still like to use Ctrl+Shift+V but I did not want people to post that as a solution. The reason why I would like to use Shift+Insert is because a program I use sends the keys Shift+Insert assuming that it will paste.

Unfortunately, in gnome-terminal there is no setting for this under Edit → Profile Preferences → Compatibility, nor is there under Edit → Keyboard Shortcuts.

The only other related post I can find is: https://askubuntu.com/questions/266096/how-to-restore-proper-x-clipboard-behaviour-shiftinsert-in-12-10 which I think prefers the opposite of what I prefer and is probably happy now with the change.

  • Do you want both Ctrl+Shift+V and Shift+Ins to paste the clipboard in Gnome Terminal? – kiri Jan 3 '14 at 21:39
  • 1
    I don't understand... I do use <kbd>Shift</kbd>+<kbd>Insert</kbd> in my terminal to paste clipboard. And it's a (almost) freshly installed Ubuntu 13.10. The only extra thing I remember installing is vim. – GabrielF Jan 8 '14 at 23:06
  • @GabrielF strange. Thanks for the information. I will do some more checking. – Xu Wang Jan 9 '14 at 7:07
  • I wonder who had the "brilliant" idea of changing a shortcut almost universal... and why? – Rodrigo Dec 6 '18 at 0:52
6
+50

There is a simple workaround for what you need.

  1. First you will have to install xdotool Install xdotool.

  2. Then launch the Keyboard configuration gnome-control-center keyboard:
    (Go to Shortcuts → Custom shortcuts)

    enter image description here

  3. Click on "+" and add a name like "Paste into terminal" and the command

    xdotool key --clearmodifiers ctrl+shift+v
    

    enter image description here

  4. Then choose Shift+Insert as the key binding:

    enter image description here

Because of a bug, you will have to logout and log back in so the shortcut can take effect.

  • This doesn't seem to work for me in 18.04, the new combo does nothing. Pasting that xdotool command directly into the terminal does work, however. – Matthew Read Feb 26 at 21:26
17

There is a relatively simple answer:

  1. Open Gnome Terminal.
  2. Open Edit → Keyboard Shortcuts.
  3. Click on the old "Ctrl+Shift+V" shortcut for Paste until it changes to New accelerator, then press Shift+Insert.
  4. Close the Preferences window.
  5. Shift+Insert should now paste the clipboard.
  • This even works in Cinnamon (which also uses gnome-terminal). Saved my day, +1 :) – Izzy Jan 10 '17 at 0:03
  • I wonder who had the "brilliant" idea of changing a shortcut almost universal... and why? – Rodrigo Dec 6 '18 at 0:52
  • This doesn't seem to work for me in 18.04, the new combo does nothing (but Ctrl+Shift+V works after changing it back). – Matthew Read Feb 26 at 21:26
  • This worked for me in Ubuntu 19.04 – Daniel May 31 at 3:21
3

If you don't want to use SHIFT+CTRL+V, then why not just change that paste hotkey to SHIFT+INSERT under Edit > Keyboard shortcuts?

I installed gnome-terminal on lubuntu 13.10 and I have that option (see screenshot I already changed it there). If you don't have it you might try to change that setting in gconf-editor, see the screenshot.

enter image description here

  • How? I don't see that shortcut under there. Are you sure it's there for 13.10? Which submenu do you see it ("Launchers", "Navigation", ...)? – Xu Wang Jan 2 '14 at 22:24
  • @XuWang I have that option on lubuntu 13.10. Is the gnome-terminal different for ubuntu 13.10? I updated my answer. – falconer Jan 2 '14 at 23:14

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.