Date Tags rant

I’ve always wondered why iceweasel won’t paste my selection into the search area from a gnome terminal. It turned out that to put something in the gnome clipboard from a gnome terminal is not enough to select the piece of text with your mouse, but you need to explicitly do “Ctrl + shift + v” . Then in iceweasel you can use “shift insert” . Kind of brain-dead for me. So if i want to search a word I’ve on a terminal I’ve to :

  • select the word with the mouse
  • ”’ctrl + insert”’ OR ”’Ctrl + shift + v”’ to store the word in the clipboard
  • ”’alt + tab”’ to get focus on iceweasel
  • ”’ctrl + k”’ to focus on the search form
  • ”’shift + insert”’ OR ”’Ctrl + v”’ to copy
  • return

wowwwwww !

This nice post explain the root of the problem related to the gnome terminal. This gives a bit of general background.

If you just want to search something, you can try the gnome applet gspot. It’s nice, works (I tried only 5 minutes), but doesn’t allow you to configure common short-cuts. You are always obliged to use the mouse. googlizer is another applet that has the same problem are gspot, and it limited to google only (while gspot has many search engines built-in).

bah, for the moment I’m a bit stuck …

Update

A very nice solution :

google() {
    search=""
    #echo "$1"
    for term in $*; do
        search="$search%20$term"
    done
    xdg-open "https://www.google.com/search?q=$search"
}

shell power !