Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/jish/safari-tabs

If you think ⌘1-5 should switch tabs, and not lose your current page, this repo is for you!
https://github.com/jish/safari-tabs

Last synced: 4 days ago
JSON representation

If you think ⌘1-5 should switch tabs, and not lose your current page, this repo is for you!

Awesome Lists containing this project

README

        

Safari Tabs
-----------

Maps ⌘1 through ⌘5 to switch to tabs 1 through 5 respectively in Safari.

Installation
------------

### Install Applescripts that switch tabs in Safari:

git clone https://[email protected]/jish/safari-tabs.git
cd safari-tabs
rake install

### Setup FastScripts

* Install FastScripts [http://www.red-sweater.com/fastscripts/][1]
* Open FastScripts preferences `⌘,`
* Click on Script Shortcuts
* Expand /Users//Library/Scripts > Applications > Safari
* Map ⌘1-5 to the scripts titled tab1-5 respectively

Enjoy Safari's html5 support and rendering engine without wanting to kill
someone.

Why
---

I wanted to switch to Safari for a while to benefit from their html5 support
and smooth animations, etc. However, when I switched, I ran into nothing but
pain. I guess I never realized how much I relied on ⌘1, ⌘2, ⌘3, etc... for
tab navigation.

While trying out Safari, I was constantly pressing ⌘1, ⌘2, ⌘3 and Safari kept
navigating to apple.com, yahoo.com, and the like -- losing whatever was in my
current tab.

Frustrated by the experience, and still inclined to give Safari a try, I dove
into the world of Applescripts to fix this little problem.

Note
----

On my journey to reclaim ⌘1, I really wanted to find a native way to map
keyboard shortcuts to Applescripts, unfortunately, that is easier said than
done, and it seems everyone out there writing applescripts is using some
third party application to map their keyboard shortcuts. Although, if you
know of a way to do this, please let me know!

The one I -- and many others -- have settled upon is FastScripts
[http://www.red-sweater.com/fastscripts/][1]. Don't worry, it's free for the first
10 keyboard shortcuts, and I only mapped ⌘1-5, so you'll still have 5 more
shortcuts available.

[1]: http://www.red-sweater.com/fastscripts/