this repo has no description
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

๐Ÿง‘โ€๐Ÿ’ป Open work folder in explorer instead of vscode

+11 -2
+9 -2
src/components/LocalFileLink.astro
··· 4 4 title: string; 5 5 text: string; 6 6 keybind?: string; 7 + openWith: "vscode" | "vnd.gwennlbh.explorer"; 7 8 }; 8 9 9 - const { href, title, text, keybind } = Astro.props; 10 + const { href, title, text, keybind, openWith } = Astro.props; 10 11 --- 11 12 12 13 <script> ··· 23 24 <a 24 25 data-keybind={keybind} 25 26 class="edit-button" 26 - href={`vscode://file/${href.replace("/home/uwun/", "C:/Users/ewen/").replace("~/", "C:/Users/ewen/")}`} 27 + href={[ 28 + openWith === "vscode" ? "vscode://file" : "vnd.gwennlbh.explorer.exe:", 29 + href 30 + .replace("/home/uwun/", "C:/Users/ewen/") 31 + .replace("~/", "C:/Users/ewen/") 32 + .replaceAll("/", "\\"), 33 + ].join("/")} 27 34 title={title} 28 35 > 29 36 {text}
+2
src/components/StrongHeader.astro
··· 42 42 <LocalFileLink 43 43 keybind="e" 44 44 href={editButton} 45 + openWith="vscode" 45 46 title="edit (if you're me only :3)" 46 47 text="/ed" 47 48 /> ··· 50 51 <LocalFileLink 51 52 keybind="o" 52 53 href={editFolderButton} 54 + openWith="vnd.gwennlbh.explorer" 53 55 title="open folder (if you're me only :3)" 54 56 text="/o" 55 57 />