From 978cad5c3171ef2c4b9438e2c8ac7c0e322cd352 Mon Sep 17 00:00:00 2001 From: Sebastian Schulze Date: Tue, 12 Oct 2021 12:13:43 +0200 Subject: [PATCH] [tridactyl] Run sanitise in the rc script --- dot_tridactylrc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dot_tridactylrc b/dot_tridactylrc index a60ae4d..20b28b0 100644 --- a/dot_tridactylrc +++ b/dot_tridactylrc @@ -1,5 +1,5 @@ " Mostly 'inspired' by @bovine3dom's tridactylrc - +sanitise tridactyllocal tridactylsync alias tabsort jsb browser.tabs.query({}).then(tabs => tabs.sort((t1, t2) => t1.url.localeCompare(t2.url)).forEach((tab, index) => browser.tabs.move(tab.id, {index}))) alias tabuniq jsb browser.tabs.query({}).then(tabs => browser.tabs.remove(tabs.filter((tab, index) => tabs.slice(index + 1).find(t => t.url == tab.url)).map(tab => tab.id)))