Sunday, January 17, 2010

FireFox without a Mouse

I finished reading The Productive Programmer a few weeks ago and since then I've been thinking about how to be more productive on the 'micro' level.

"Keep you hands on the keyboard as much as possible" is one of the recommendations that people always make. Constantly moving your hand from keyboard to mouse and back slows you down and feels pretty awkward too.

With that in mind, I've been learning how to browse with FireFox using the keyboard only. Some sites make this difficult but I can now go for much quite a while without reaching for the mouse.

Here are some basic tasks and how to do them with the keyboard. Note that I've chosen the methods and shortcuts that I like best and that there are other ways of doing these things.

Entering an Address

  1. Use alt+d to focus the Location bar
  2. Type the URL
  3. Press enter to open the URL.
    You can hold these keys down to modify the behavior:
    • ctrl - prepend www. and append .com to the address
    • shift - prepend www. and append .net to the address
    • ctrl+shift - prepend www. and append .org to the address
    • alt - open in a new tab
    For example, pressing ctrl+shift+alt+enter with an address of python will open www.python.org in a new tab.

Searching

  1. Use ctrl+k to focus the Search bar
  2. Type the search terms
  3. Press enter to open the search in the current tab
    You can hold down alt to open the search in a new tab instead

Navigating between tabs

On Ubuntu these shortcuts use alt instead of ctrl.

  • ctrl+tab displays the next tab
  • shift+ctrl+tab displays the previous tab
  • ctrl+n where n is the digit 1 to 8 displays the nth tab
  • ctrl+9 displays the last tab
  • ctrl+w closes the current tab

Searching within a page

  1. Use / to open the Quick Find bar
  2. Type the search text
  3. Use F3 to cycle forward and shift+F3 to cycle backward through the matches

'Clicking' on links

  1. Use ' to open the Quick Find bar for links only
  2. Type the search text
  3. Use F3 and shift+F3 to cycle to focus the link you desire
  4. Hit enter to 'click' the link. The following modifiers are available:
    • shift - open the page in a new window
    • ctrl - open the page in a new tab
    • alt - save the page instead of opening it

0 comments: