zed initial setup

This commit is contained in:
js0ny 2025-02-10 22:32:18 +00:00
parent da0cc1d6e8
commit 56faf63bd2
5 changed files with 66 additions and 6 deletions

View file

@ -425,6 +425,12 @@ mapkey(",p", "Switch to GitHub Page", function () {
repo = href.split("/")[4];
window.location.href = gh.pageLink(owner, repo);
}, { domain: /github.com/ });
mapkey(",r", "Copy short [r]efeference owner/repo", function () {
const href = window.location.href;
owner = href.split("/")[3];
repo = href.split("/")[4];
Clipboard.write(`${owner}/${repo}`);
}, { domain: /github.com/ });
// github.dev
mapkey(",r", "Switch to GitHub Repo", function () {
const url = new URL(window.location.href);