mirror of
https://github.com/tridactyl/tridactyl.git
synced 2026-09-10 07:16:33 -04:00
Merge pull request #5293 from ztstroud/feat/warn-tabonly-args
Improve user experience with tabopen and tabonly
This commit is contained in:
commit
1606193bd6
|
|
@ -2969,7 +2969,12 @@ async function tabFromIndex(index?: number | "%" | "#" | string): Promise<browse
|
|||
|
||||
/** Close all other tabs in this window */
|
||||
//#background
|
||||
export async function tabonly() {
|
||||
export async function tabonly(...args: string[]) {
|
||||
if (args.length > 0) {
|
||||
fillcmdline_tmp(3000, "# tabonly doesn't accept arguments, run without arguments to close all background tabs in this window")
|
||||
return
|
||||
}
|
||||
|
||||
const tabs = await browser.tabs.query({
|
||||
pinned: false,
|
||||
active: false,
|
||||
|
|
|
|||
|
|
@ -658,7 +658,7 @@ export class default_config {
|
|||
tabgroupswitch: "tgroupswitch",
|
||||
tabnew: "tabopen",
|
||||
tabm: "tabmove",
|
||||
tabo: "tabonly",
|
||||
tabo: "fillcmdline_tmp 3000 The :tabo alias has been removed. You can add it back with :command tabo tabonly",
|
||||
tn: "tabnext_gt",
|
||||
bn: "tabnext_gt",
|
||||
tnext: "tabnext_gt",
|
||||
|
|
|
|||
Loading…
Reference in a new issue