aboutsummaryrefslogtreecommitdiffstats
path: root/background_scripts/main.coffee
diff options
context:
space:
mode:
authorPhil Crosby2014-04-18 23:15:41 -0700
committerPhil Crosby2014-04-18 23:15:41 -0700
commit51643d8f8233a6670e456af23fd4b47a179d01b9 (patch)
treec888baaceb7b83a7208eb07e5cb22cb240027673 /background_scripts/main.coffee
parent5ebc1aa78ba595e3753e00c3d912d9e45e310e7f (diff)
parent6ce9c8137ad2d2d00fe8596d22c0f93177600faa (diff)
downloadvimium-51643d8f8233a6670e456af23fd4b47a179d01b9.tar.bz2
Merge pull request #926 from fukayatsu/toggle-pin-tab
Add shortcut to pin/unpin Tab
Diffstat (limited to 'background_scripts/main.coffee')
-rw-r--r--background_scripts/main.coffee3
1 files changed, 3 insertions, 0 deletions
diff --git a/background_scripts/main.coffee b/background_scripts/main.coffee
index f564f477..207cbccb 100644
--- a/background_scripts/main.coffee
+++ b/background_scripts/main.coffee
@@ -257,6 +257,9 @@ BackgroundCommands =
callback()))
openCopiedUrlInCurrentTab: (request) -> openUrlInCurrentTab({ url: Clipboard.paste() })
openCopiedUrlInNewTab: (request) -> openUrlInNewTab({ url: Clipboard.paste() })
+ togglePinTab: (request) ->
+ chrome.tabs.getSelected(null, (tab) ->
+ chrome.tabs.update(tab.id, { pinned: !tab.pinned }))
showHelp: (callback, frameId) ->
chrome.tabs.getSelected(null, (tab) ->
chrome.tabs.sendMessage(tab.id,