Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I am making the transition to Ubuntu 10.0.04 from years of Windows. It would help if the terminal could have the right-click context menu display the copy command first in the command list, instead of like, 4th. There must be a way to change the ordering of items in the context menu. How would you configure the Terminal (or any) context menu in Ubuntu?

share|improve this question
    
For completeness, please specify the version and flavor of Ubuntu involved. Each flavor has its own version of terminal. –  user25656 Feb 6 '13 at 0:45
    
Just a comment about the last part of the question: the only context menus I could configure were those of the Firefox and Opera browsers. And that is OS-independent. –  user25656 Feb 6 '13 at 2:47
    
Do you know that you can just select text to have it on the clipboard already? It's a different clipboard, but you can still paste with middle-button or Shift+Insert. –  gertvdijk Feb 6 '13 at 20:44
    
@vasa1 Ubuntu 10.0.04 –  mathStudent Feb 7 '13 at 19:54
add comment

1 Answer

up vote 2 down vote accepted

First things first: I don't know if it is per-user configurable.

But a workaround is possible thanks to the easy to edit XML files, which describe the user interface. On Ubuntu 12.10, in the file /usr/share/gnome-terminal/terminal.xml simply move the line <menuitem action="PopupCopy" /> to the top below <popup name="Popup" action="Popup">. Or to be semantically consistent:

diff --git a/terminal.xml b/terminal.xml
index 3c9cbed..f7b7757 100644
--- a/terminal.xml
+++ b/terminal.xml
@@ -78,6 +78,10 @@
   </menubar>

   <popup name="Popup" action="Popup">
+    <menuitem action="PopupCopy" />
+    <menuitem action="PopupPaste" />
+    <menuitem action="PopupPasteURIPaths" />
+    <separator />
     <menuitem action="PopupSendEmail" />
     <menuitem action="PopupCopyEmailAddress" />
     <menuitem action="PopupCall" />
@@ -91,10 +95,6 @@
     <menuitem action="PopupCloseTab" />
     <menuitem action="PopupCloseWindow" />
     <separator />
-    <menuitem action="PopupCopy" />
-    <menuitem action="PopupPaste" />
-    <menuitem action="PopupPasteURIPaths" />
-    <separator />
     <menu action="PopupTerminalProfiles">
         <placeholder name="ProfilesPH" />
         <separator />
share|improve this answer
    
Re. it being or not being per-user configurable, I don't use gnome-terminal myself and so can't check it out, but what if you save a copy as ~/.local/share/gnome-terminal/terminal.xml and then edit that copy as you suggested? –  user25656 Feb 7 '13 at 8:09
2  
Ah this would be nice. Unfortunately trying this didn't work with 12.10 as of today. I made a quick search for documentation for the cause and behaviour of ~/.local/share/ but found nothing. –  payload Feb 7 '13 at 19:08
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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