LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Additional keyboard shortcuts for Copy, Paste etc. (https://www.linuxquestions.org/questions/linux-newbie-8/additional-keyboard-shortcuts-for-copy-paste-etc-4175450240/)

Scarmage 02-15-2013 04:35 AM

Additional keyboard shortcuts for Copy, Paste etc.
 
Hi, my first post here.

Just starting to get familiar with RHEL 6.3. Is there any way to add custom keyboard shortcuts for basic system functions like Copy and Paste?

Specifically, I'd like to use Ctrl+J to copy and Ctrl+K to paste. And I need to use these shortcuts across all applications.

In the 'Control Center', I have the option to create new shortcuts, but I don't know what command to use for copy and paste.

shivaa 02-15-2013 05:00 AM

Best one are:

CTRL+INSERT .......... To copy
SHIFT+INSERT .......... To paste

These shortcuts will work everywhere, in CLI as well as GUI. (Even in Windows based machine they work fine),

Scarmage 02-15-2013 05:13 AM

Nah, I have to type a lot, and those shortcuts are not convenient. I prefer Ctrl+J and Ctrl+K for copy and paste, respectively. How can I do that?

Mr. Alex 02-15-2013 07:06 AM

Ctrl+X
Ctrl+C
Ctrl+V

Scarmage 02-15-2013 07:13 AM

@Mr. Alex

I already know about those, I want to add the other keyboard shortcuts.

shivaa 02-15-2013 08:22 AM

Well, if you only want to use CTRL+J and CTRL+K, then define custom ones. you can follow this.

But I don't understand, how CTRL+J & K, could be more convinient than CTRL & SHIFT+INSERT... Anyway it's a matter of choice.

Have good luck!

Scarmage 02-15-2013 09:20 AM

I'd already checked out gconf-editor, and I couldn't find copy and paste over there.
If you know for a fact that the option is there, could you tell me exactly where it is in the menu?

shivaa 02-15-2013 10:01 AM

Which gnmore version you've?

From system menu, go to System > Preferences > Keyboard Shortcuts, there you can define custom keyboard shortcut(s). If you have any problem, you can click on Help (at bootom of same windows) to read more on how to add shortcut.

Scarmage 02-15-2013 10:27 AM

I have Gnome 2.28.2

I know how to add a shortcut, the problem is I don't know what's the command for 'Copy' and 'Paste'. Once I know what is the command for it, I can create the shortcut and assign a keyboard shortcut to it.

shivaa 02-15-2013 11:16 AM

Note that, whatever shortcut you will create, will fall under Custom shortcuts catagory. You cannot create a shortcut for an already existing command. You're going to create a Custom one, so don't ask that I don't know the command. There will be no command(s), but only combination of some keys.

Anyway, go under Keyboard Shortcuts option, click on Add, and a new box will open.

In that box, you will find two options - Name and Command. So add it like,

Quote:

For copy, Name: Mycopy; Command: Ctrl+j
For paste, Name: Mypaste; Command: Ctrl+k
Then under the list of already existing shortcuts, you will see a catagory of Custom shortcuts. And under that you will your Mycopy and Mypaste shortcuts.

DavidMcCann 02-15-2013 11:33 AM

You may be able to alter things in a terminal or terminal emulator, but what about applications? For example, Ctrl+Insert works in OpenOffice, but not Shift+Insert; neither works in Gedit.

shivaa 02-15-2013 11:40 AM

Quote:

Originally Posted by DavidMcCann (Post 4892403)
You may be able to alter things in a terminal or terminal emulator, but what about applications? For example, Ctrl+Insert works in OpenOffice, but not Shift+Insert; neither works in Gedit.

@David:

CTRL+INSERT (Copy)
And
SHIFT+INSERT (Paste)
Both works fine in OpenOffice as well as gedit.

DavidMcCann 02-16-2013 10:31 AM

@ shivaa

Not on this computer. I do check before posting!

Scarmage 02-17-2013 07:42 PM

If I use Name: Mycopy, Command: Ctrl+j, it doesn't work.
Ctrl+J is not the command, it's the keyboard shortcut.
Command is what Ctrl+J needs to perform
If that 'command' was already in the list, I could've edited it, since it's not, I need to add it.
So I need to know the command that the keyboard shortcut is going to perform (in this case: copy).


All times are GMT -5. The time now is 05:03 PM.