mirror of
https://github.com/vale981/tridactyl
synced 2025-03-05 09:31:41 -05:00
Add :tabaudio and ga
binding.
This commit is contained in:
parent
135e29a950
commit
3922e81032
3 changed files with 11 additions and 0 deletions
|
@ -140,6 +140,7 @@ If you want to use Firefox's default `<C-b>` binding to open the bookmarks sideb
|
||||||
- `u` — undo the last tab/window closure
|
- `u` — undo the last tab/window closure
|
||||||
- `gt`/`gT` — go to the next/previous tab
|
- `gt`/`gT` — go to the next/previous tab
|
||||||
- `g^ OR g0`/`g$` — go to the first/last tab
|
- `g^ OR g0`/`g$` — go to the first/last tab
|
||||||
|
- `ga` — go to the tab currently playing audio
|
||||||
- `<C-^>` — go to the last active tab
|
- `<C-^>` — go to the last active tab
|
||||||
- `b` — bring up a list of open tabs in the current window; you can type the tab ID or part of the title or URL to choose a tab
|
- `b` — bring up a list of open tabs in the current window; you can type the tab ID or part of the title or URL to choose a tab
|
||||||
|
|
||||||
|
|
|
@ -2163,6 +2163,15 @@ export async function tabpush(windowId: number) {
|
||||||
return activeTabId().then(tabId => browser.tabs.move(tabId, { index: -1, windowId }))
|
return activeTabId().then(tabId => browser.tabs.move(tabId, { index: -1, windowId }))
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/** Switch to the tab currently playing audio, if any. */
|
||||||
|
//#background
|
||||||
|
export async function tabaudio() {
|
||||||
|
const tabs = await browser.tabs.query({ currentWindow: true, hidden: false, audible: true })
|
||||||
|
if (tabs.length > 0) {
|
||||||
|
return browser.tabs.update(tabs[0].id, { active: true })
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Moves all of the targetted window's tabs to the current window. Only works for windows of the same type
|
* Moves all of the targetted window's tabs to the current window. Only works for windows of the same type
|
||||||
* (can't merge a non-private tab with a private window).
|
* (can't merge a non-private tab with a private window).
|
||||||
|
|
|
@ -257,6 +257,7 @@ export class default_config {
|
||||||
"g^": "tabfirst",
|
"g^": "tabfirst",
|
||||||
g0: "tabfirst",
|
g0: "tabfirst",
|
||||||
g$: "tablast",
|
g$: "tablast",
|
||||||
|
ga: "tabaudio",
|
||||||
gr: "reader",
|
gr: "reader",
|
||||||
gu: "urlparent",
|
gu: "urlparent",
|
||||||
gU: "urlroot",
|
gU: "urlroot",
|
||||||
|
|
Loading…
Add table
Reference in a new issue