Simple fix to Gnome Terminal
I often double click on a filename or folder and then paste it with the middle button (the scroll wheel), in Linux. What annoyed me was that it doesn't get the ~ character so if I'm cutting an pasting my current path as shown on the command line
Even worse if there's an error message like:
The fix is simple, go to your Gnome Terminal|Profiles... and edit your default profile. The first pane called "General" and has a field called "Select-by-word characters". Add the tilde (~) and remove the colon (:) and you're done.
There, I just saved you 2 thousand keystrokes a year.
scott@home:~/src/folder/name$Double click, middle click gives me /src/folder/name and not ~/src/folder/name. How annoying, I have to cursor all the way to the beginning and enter the tilde character.
Even worse if there's an error message like:
Error in ~/src/folder/name.cc:123Double click, middle click gives me now /src/folder/name.cc:123. Now I have to edit both sides.
The fix is simple, go to your Gnome Terminal|Profiles... and edit your default profile. The first pane called "General" and has a field called "Select-by-word characters". Add the tilde (~) and remove the colon (:) and you're done.
There, I just saved you 2 thousand keystrokes a year.
Comments
Thank you. I use terminator on ubuntu , it's almost the same :
- Right click anywhere in the terminal
- Choose Preferences
- Second Tab : Profiles/General
- Select-by-word characters
Set to :
-A-Za-z0-9,./?%&#~_
~