I searched for a keyboard shortcut to toggle a tab's pinning in Chrome but couldn't find anything. Does anyone know one?
After a little bit googling around, it seems there is none.
But you can select pin with P and unpin with U at the right click of tab's context menu.
Not handy at all.
Additionally, I found an extension named
URL Pinner with some useful features like auto pinning URL with regex matching, syncing settings etc.
Apparently, the extension is gone from Chrome Web Store at least for now.
I'll try to curate some similar alternatives here:
Keyboard Shortcuts to Close Other/Right Tabs (this is what I use for a while now and I'm very happy with it. Although it contains few more features and focuses than just pinning the tab, furthermore it can also handle pinning very well)
Here is the one which works for me on Ubuntu Linux and Max OS X:
ALT + P
But there is a fix: .
- Install Chrome extension "Shortkeys (Custom Keyboard Shortcuts)",
- Open chrome settings,
- Select extensions,
- Find new extension: Shortkeys (Custom Keyboard Shortcuts),
- Click on options and "Custom Keyboard Shortcuts" Options page will open,
- Linux users: type your shortcut in "Keyboard Shortcut" field (eg. type: alt+p, ctrl+p),
- MaxOS users type (eg. type: option+p, control+p, command+p) in the same field,
- Select behavior Pin/unpin tab,
- Click on "Activation Settings..." and check "Active while in form fields",
- Select "All Websites" in Website list,
- Click Save and RESTART Chrome for changes to take effect.
You can toggle tab pin using the pin/unpin commands in the Ferro extension, or by hitting the Alt-Shift-P keyboard shortcut (after installing Ferro).
While @JacopKane's suggested extension should work for most use cases for Windows users, it does not register the macOS command key (I assume other keys as well). Tab Pinner uses Chrome's native shortcut manager (I did not know this existed either). Go to the extensions page, scroll down and click "Keyboard shortcuts". Now type in your preferred shortcut below the Tab Pinner section.
In macOS in System Preferences > Keyboards > Shortcuts > App Shortcuts add
Pin Tab then map this to any key of your choice.