this repo has no description

.config/glide: add config

+158
+34
private_dot_config/glide/biome.json
··· 1 + { 2 + "$schema": "https://biomejs.dev/schemas/2.2.4/schema.json", 3 + "vcs": { 4 + "enabled": false, 5 + "clientKind": "git", 6 + "useIgnoreFile": false 7 + }, 8 + "files": { 9 + "ignoreUnknown": false 10 + }, 11 + "formatter": { 12 + "enabled": true, 13 + "indentStyle": "tab" 14 + }, 15 + "linter": { 16 + "enabled": true, 17 + "rules": { 18 + "recommended": true 19 + } 20 + }, 21 + "javascript": { 22 + "formatter": { 23 + "quoteStyle": "double" 24 + } 25 + }, 26 + "assist": { 27 + "enabled": true, 28 + "actions": { 29 + "source": { 30 + "organizeImports": "on" 31 + } 32 + } 33 + } 34 + }
+70
private_dot_config/glide/glide.ts
··· 1 + glide.prefs.set("toolkit.legacyUserProfileCustomizations.stylesheets", true); 2 + glide.prefs.set("devtools.debugger.prompt-connection", false); 3 + glide.prefs.set( 4 + "media.videocontrols.picture-in-picture.audio-toggle.enabled", 5 + true, 6 + ); 7 + glide.prefs.set("browser.tabs.insertAfterCurrent", false); 8 + glide.prefs.set("browser.tabs.insertRelatedAfterCurrent", false); 9 + 10 + glide.keymaps.set( 11 + "normal", 12 + "o", 13 + async () => { 14 + await glide.keys.send("<D-l>"); 15 + }, 16 + { description: "Focus the address bar" }, 17 + ); 18 + 19 + glide.keymaps.set( 20 + "normal", 21 + "<S-o>", 22 + async ({ tab_id }) => { 23 + await browser.tabs.create({ 24 + active: true, 25 + openerTabId: tab_id, 26 + }); 27 + await glide.keys.send("<D-l>"); 28 + }, 29 + { description: "Open a new tab and focus the address bar" }, 30 + ); 31 + 32 + glide.keymaps.set( 33 + "normal", 34 + "d", 35 + async ({ tab_id }) => { 36 + await browser.tabs.remove(tab_id); 37 + }, 38 + { description: "Close current tab" }, 39 + ); 40 + 41 + glide.keymaps.set("normal", "<C-]>", "forward", { 42 + description: "Go forward in history", 43 + }); 44 + glide.keymaps.set("normal", "<C-[>", "back", { 45 + description: "Go back in history", 46 + }); 47 + 48 + glide.keymaps.set( 49 + "normal", 50 + "u", 51 + async () => { 52 + await browser.sessions.restore(); 53 + }, 54 + { description: "Open recently closed tab" }, 55 + ); 56 + 57 + glide.autocmds.create("UrlEnter", /https:\/\/github\.com\/.*\/.*/, () => { 58 + glide.buf.keymaps.set("normal", "<C-g>p", async ({ tab_id }) => { 59 + const path = glide.ctx.url.pathname; 60 + const { org, repo } = 61 + path.match(/^\/(?<org>[^/]+)\/(?<repo>[^/]+)/)?.groups ?? {}; 62 + 63 + const pkggodev_url = `https://pkg.go.dev/github.com/${org}/${repo}`; 64 + await browser.tabs.create({ 65 + url: pkggodev_url, 66 + active: true, 67 + openerTabId: tab_id, 68 + }); 69 + }); 70 + });
+16
private_dot_config/glide/package.json
··· 1 + { 2 + "name": "glide-config", 3 + "private": true, 4 + "version": "0.0.1", 5 + "description": "", 6 + "scripts": { 7 + "tsc": "tsc" 8 + }, 9 + "keywords": [], 10 + "author": "", 11 + "license": "", 12 + "dependencies": { 13 + "typescript": "^5.9.2" 14 + }, 15 + "devDependencies": { "@biomejs/biome": "2.2.4" } 16 + }
+38
private_dot_config/glide/tsconfig.json
··· 1 + { 2 + "$schema": "https://json.schemastore.org/tsconfig", 3 + "exclude": [ 4 + "node_modules" 5 + ], 6 + "compilerOptions": { 7 + "lib": ["DOM", "DOM.Iterable", "DOM.AsyncIterable", "ESNext"], 8 + "types": [ 9 + "./glide.d.ts" 10 + ], 11 + "target": "esnext", 12 + "module": "esnext", 13 + "moduleDetection": "force", 14 + "allowJs": true, 15 + "noEmit": true, 16 + /** 17 + * Recommended type checking rules. 18 + * 19 + * Feel free to modify these. 20 + */ 21 + "strict": true, 22 + "noImplicitAny": true, 23 + "strictNullChecks": true, 24 + "strictFunctionTypes": true, 25 + "strictBindCallApply": true, 26 + "strictPropertyInitialization": true, 27 + "noImplicitThis": true, 28 + "alwaysStrict": true, 29 + "noUncheckedIndexedAccess": true, 30 + "noImplicitOverride": true, 31 + "noPropertyAccessFromIndexSignature": true, 32 + "skipLibCheck": true, 33 + "noErrorTruncation": true, 34 + "erasableSyntaxOnly": true, 35 + "noUnusedLocals": true, 36 + "noUnusedParameters": true 37 + } 38 + }