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