Wednesday, March 9, 2011

Shortcut Keys for the HipChat Fluid App

Moved here

As I mentioned last week, we've started to use HipChat for our internal chat here at Avvo. I've decided to forego their default AIR app and try running their web interface through Fluid to get a more native mac-like experience. One of the few things that bothered me about the Fluid app was the lack of keyboard controls for accessing and closing the tabs for each chat room. So I added them.

One of the great things about Fluid is its support for userscripts to add functionality to the pages it wraps. I created a userscript for the HipChat web interface that adds the following keyboard shortcuts:

  • Command-W: Closes the current tab (if the tab can be closed)
  • Command-1 through Command-9: Selects the tab at the specified position
  • Command-{ and Command-}: Select the previous tab and next tab, respectively.

To install it, when running your HipChat fluid instance, open 'Preferences', go to the 'Advanced' section and add *.user.js as a pattern. Then, go to 'File', 'Open Location' and paste in the following url:

https://github.com/justinweiss/hipchat_shortcut_keys/raw/master/hipchat_shortcut_keys.user.js

Install the script when it asks, and you should be good to go.

1 comment:

garret said...

Nice work! We'll be incorporating some of these changes soon. :) Mainly; hiding the client download tab, Cmd+1..9 to jump to tab, Cmd+W, Cmd+Shift+{/} for switching. Didn't want to mess with Cmd+{/} since it's useful for text manipulation.