this repo has no description

.config/glide: add refresh, fuzzy repo picker mappings

+23
+23
private_dot_config/glide/glide.ts
··· 22 22 description: "Scroll down", 23 23 }); 24 24 25 + glide.keymaps.set("normal", "r", "reload", { description: "Reload the page" }); 26 + glide.keymaps.set("normal", "R", "reload_hard", { description: "Reload the page, bypass cache" }); 27 + 25 28 glide.keymaps.set( 26 29 "normal", 27 30 "<S-o>", ··· 74 77 glide.keymaps.set("normal", "wi", async () => { 75 78 await glide.keys.send("<D-A-i>"); 76 79 }); 80 + 81 + glide.keymaps.set("normal", "<Leader>pr", async () => { 82 + const cmd = await glide.process.execute("/opt/homebrew/bin/fish", ["-c", "ghwu"]); 83 + let stdout = ""; 84 + for await (const chunk of cmd.stdout) { 85 + stdout += chunk; 86 + } 87 + 88 + const selection = stdout 89 + .split("\n") 90 + .map((s) => s.trim()) 91 + .filter(Boolean); 92 + 93 + if (selection.length === 0) { 94 + return; 95 + } 96 + 97 + const url = selection[0]; 98 + await browser.tabs.create({ url, active: true }); 99 + });