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: update
Selman Kayrancioglu
5 months ago
77d457e3
10a23b28
+20
-18
1 changed file
expand all
collapse all
unified
split
private_dot_config
glide
glide.ts
+20
-18
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
-
);
3
3
+
glide.prefs.set("media.videocontrols.picture-in-picture.audio-toggle.enabled", true);
7
4
glide.prefs.set("browser.tabs.insertAfterCurrent", false);
8
5
glide.prefs.set("browser.tabs.insertRelatedAfterCurrent", false);
6
6
+
glide.prefs.set("browser.uidensity", 1);
7
7
+
glide.prefs.set("browser.startup.page", 3);
8
8
+
glide.prefs.set("browser.warnOnQuitShortcut", 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
-
);
10
10
+
glide.g.mapleader = "\\";
11
11
+
glide.o.hint_size = "16px";
12
12
+
13
13
+
glide.keymaps.set("normal", "o", "keys <D-l>", {
14
14
+
description: "Focus the address bar",
15
15
+
});
16
16
+
17
17
+
glide.keymaps.set("normal", "<S-j>", "tab_next", {
18
18
+
description: "Scroll down",
19
19
+
});
20
20
+
21
21
+
glide.keymaps.set("normal", "<S-k>", "tab_prev", {
22
22
+
description: "Scroll down",
23
23
+
});
18
24
19
25
glide.keymaps.set(
20
26
"normal",
21
27
"<S-o>",
22
28
async ({ tab_id }) => {
23
23
-
await browser.tabs.create({
24
24
-
active: true,
25
25
-
openerTabId: tab_id,
26
26
-
});
29
29
+
await browser.tabs.create({ active: true, openerTabId: tab_id });
27
30
await glide.keys.send("<D-l>");
28
31
},
29
32
{ description: "Open a new tab and focus the address bar" },
···
57
60
glide.autocmds.create("UrlEnter", /https:\/\/github\.com\/.*\/.*/, () => {
58
61
glide.buf.keymaps.set("normal", "<C-g>p", async ({ tab_id }) => {
59
62
const path = glide.ctx.url.pathname;
60
60
-
const { org, repo } =
61
61
-
path.match(/^\/(?<org>[^/]+)\/(?<repo>[^/]+)/)?.groups ?? {};
63
63
+
const { org, repo } = path.match(/^\/(?<org>[^/]+)\/(?<repo>[^/]+)/)?.groups ?? {};
62
64
63
65
const pkggodev_url = `https://pkg.go.dev/github.com/${org}/${repo}`;
64
66
await browser.tabs.create({