How I use… Firefox: keyboard shortcuts

How I use... Firefox: keyboard shortcuts

I thought I'd write about the different ways I use technology to be more productive. This is the first post along those lines.

I use firefox as my main browser because it's so extensible and customisable. There's a lot to say about my firefox "setup" so I'll break it down into sections. This entry is about shortcuts.

Why keyboard shortcuts are so great

I love keyboard shortcuts because the actions you carry out on a keyboard go into your motor memory and eventually you can recall them without concious thought. If you're a fast typer, you'll know how this feels. Your hands move around intuitively without you having to think of each letter and tell your fingers where to go. It's the same for seasoned drivers, it all becomes instinctive. As a result you can get really really fast using a keyboard.

With a mouse there's constant feedback between your eyes and your hand that guides you to the right spot. The movements are different every time so they can't get into your motor memory. Rubbish.

Browsing is tricky

Firefox is full of useful keyboard shortcuts to get you around the place. The absolute must-know shortcut is Ctrl-L that takes you to the address bar. From there you can perform searches, look up bookmarks and type in web addresses. I won't bore you with all the built in Firefox shortcuts but here's a useful link if you want more:

Firefox keyboard shortcuts

The one place where it's hard to ditch the mouse though is on web pages themselves. Links are laid out visually and are designed to be clicked on. So what's the solution? How can you navigate around the internet with a keyboard?

There's is a built in option but it's a bit cumbersome - Press the  '  key (apostrophe key). This brings up a search box that finds text on the page but only text that is part of a link. It's find-as-you-type so you only need to type until it's singled out the link you're after then you just hit enter. It's labour intensive and doesn't work for image-only links.

There are a few addons and hacks that can make the situation a little easier and a couple that attempt to make web pages universally keyboard friendly. I'll go through the little tweaks I use first.

Search Keys

Here's a great addon that adds numbers to the results of google searches (and other search engines). You just have to type the corresponding number to be taken to that page. Brilliant.

How I use... Firefox: keyboard shortcuts

Extra tip: Alt+number opens in a new tab and Alt+Shift+number opens in a new background tab.

NextPlease

NextPlease is an addon for those occasions when you're reading an article and the publisher has divided the content over several pages. The ones with a "next page" link at the bottom.

NextPlease is able to detect when this is happening and assigns customisable keyboard shortcuts to the "next" and "previous" links so you can keep reading without reaching for the mouse.

Also works well with search results pages.

It is supposedly incomparable with the latest version of firefox. But here's how to fix that!

Tabbing around - the smart way

You could use the tab key to go though all the links on a page but it's massively inefficient an a page with loads of links. I don't think anyone uses tabs to get to links. So here's a way to add a little more functionality to an already splendid key.

In the address bar type about:config and hit enter.

This takes you to the hidden firefox configuration page. Acknowledge the warning message and carry on through to the list on configurable values. Find the accessibility.tabfocus variable and change its value to 3.

Now, when you use the tab key on a web page it will take you through all the form elements and skip all the links. Nice.

Here's a bit more info about the accessibility.tabfocus variable.

The (almost) universal fix

What if you could hold down a hotkey and have a number added to each and every link on a web page? Then all you'd have to do is type the number of the link you want, release the hotkey and get taken to the link!

Well there's an addon for that too! There are a couple in fact. The one I use is called LOL.

I've customised it so space bar is the hotkey. I also set it to only uses 3 numbers so I can type them out without having to move my had around (links are numbered 1, 2, 3 then 11, 12, 13, 21, 22, 23, 21... etc). I had to hack the code to get it to use numbers 123 instead of 012 because 123 is more intuitive I think. Finally, I don't actually type numbers! I use \, Z, X (LOL still recognises them as 123) instead as they are right by the space bar and control keys (the control key makes LOL open links in a new tab while keeping focus on the old tab so it's nice to have all the LOL functionality right under my left hand).

How I use... Firefox: keyboard shortcuts

Sometimes you just have to use the mouse

It kills me to say it but there are occasions when you need to abandon the keyboard.

Someone out there might have a solution to these. In which case let me know in the comments.

Flash

Pages that use flash for navigation very often neglect to provide keyboard options but there's a more general problem with embedded flash elements (eg youtube videos) which is that once they have focus, that is, once you've clicked on the element to play the video or whatever, there isn't a keyboard shortcut in the world that can take back focus. You can't even use Ctrl-tab to move between tabs. I've wasted a lot of time looking for a way round this and I really don't think there is one. You just have to pick up the mouse and click out of the element.

Spell checking in gmail

This is a very obscure one but bear with me (if you've come this far you might as well keep going).

If I miss spell a word in firefox it puts a squiggly read line under it. I then just need to right click on it to being up a context menu that includes some suggested corrections. That's great but I'd much rather use the keyboard equivalent or right clicking - that's the context menu key on a standard windows keyboard:

How I use... Firefox: keyboard shortcuts

or you can hit Sift-F10.

But here's the rub. In gmail's compose window right clicking brings up spelling suggestions but pressing the context menu key does not (usually anyway. Sometimes it does and I can't replicate under what circumstances it does each).

Anyway, that's it. Do you use any other keyboard tricks in firefox? Let me know in the comments?

Tags: ,

  • cumfy
    I'm a huge fan of *completely* mouseless browsing myself.

    I became hooked by Opera in 2000.

    Have you tried it ?

    It seems a great deal easier than the configurations you describe.
  • Hey cumfy. I've not tried Opera. I'll give it a whirl. Though I think I'd miss my non-shortcut based pluggins in firefox!
  • William T
    Are you aware of bookmark keywords in Firefox? Specifically in addition to 'tags', there's a 'keyword' property which means you can type an abbreviation and it'll go straight to the site. (The 'Openbook' addon makes this slightly easier to setup - when you add new bookmarks you can set the keyword field to be visible - but its not required.)

    So for example for me, 'bn' takes me to BBC News, 'cal' to Google Calendar, 'gr' to Google Reader (which has numerous shortcuts of its own, press ? in it to see), 'wc' to the weather for Canterbury, 'gu' to the Guardian, 'mg' to Media Guardian', 'reg' to The Register, 'router' to my ADSL modem's config page etc.

    Even cleverer is that it supports pattern matching - I have a generic BBC bookmark with a keyword of 'b' but a location of 'http://www.bbc.co.uk/%s' - so you type 'b iplayer' and it goes to bbc.co.uk/iplayer, 'b radio4' for bbc.co.uk/radio4, and so on, for any BBC site.

    More here: http://lifehacker.com/196779/hack-attack-firefox-and-the-art-of-keyword-bookmarking (lifehacker, if you're not aware of the site, are obsessed with this soft of thing..)

    - The 'Googlepedia' addon is nice - it splits the google search results in two and shows you the Wikipedia article for your search term on the right hand side.

    - There's also an addon called 'Fancy numbered tabs' - it numbers the tabs so you can use a keyboard shortcut to jump between them rather than having to keep moving left or right.

    - 'Nostalgy' (for Thunderbird email users on Windows or Mac) - very quick way of moving messages between folders - press 'S' and type the first few letters of the folder and you get an autocomplete box, hit return and the message is moved there. It remembers the last folder you used, so if you press shift-S it moves the highlighted message to the same place.

    Some Mac only things:
    - OS X has a feature built in where if a program is missing a shortcut you'd find really useful, you can just add your own to *any* individual application - its actually built into the operating system.
    - Macbooks also have a gesture thing for the trackpad - you can swipe with left/right with three fingers to go forward and back through the browsing history, there's also a two fingered up/down motion which acts like scrolling (handy where you only have the trackpad, no mouse) - there's similar addons for Firefox for any platform.
    - Textexpander (brilliant OS plugin for typing commonly used text strings), there is similar software for windows but I can't remember now what my favourite used to be.. What's nice about Textexpander is you can configure which applications respond to which shortcuts, it'll automatically insert things like the date or time, and you can set it to move the cursor to a position of your choosing within the inserted text once its finished.

    I have plenty more where this came from if you ever want it - however the thing I've *never* found is a decent (i.e. (a) reliable; can cope with many different sites and (b) secure; stores credit card info safely) form auto-complete utility. It is incredibly irritating having to fill out the same details all the time, even when Firefox has remembered the fields and you can use the down arrow and find a previous answer. I feel I really ought to be able to do it with one or two keystrokes maximum..
  • William,

    Thanks for the info. Yes, I love bookmark keywords. Especially with bookmarklets added to the mix. I thought I'd cover those in another post as this one was getting quite long and there seams to be a nice logical cut off between keyboard shortcuts that replace mouse actions and keyboard shortcuts that replace more general long action sequences. And I love lifehacker!

    Just installed Fancy Numbered Tabs. It's ace! Thank for that. I always liked the idea of using Ctrl+[1-9] to get to tabs but no use if you don't know what number you want to get to. Love the way it reuses the close button too.

    Thanks for the OS X tips. I'll own one one of these days!

    I feel your pain when it comes to auto-complete. Roboform is to intrusive and google autofill is crap.
blog comments powered by Disqus

View in: Mobile | Standard