Skip to content

Commit

Permalink
feat: add shortcut for unlink-finder-icon
Browse files Browse the repository at this point in the history
  • Loading branch information
JimmyLv committed Mar 26, 2021
1 parent a84018e commit cd3144c
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/switch.js
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,10 @@ export default function initCardifyTheme() {
event.preventDefault();
await shareAndDownloadImage();
});
hotkeys("alt+shift+u", async function (event, handler) {
event.preventDefault();
document.querySelector('#unlink-finder-icon').click()
});

tippy("#mode-button-cardList", {
content: `Card List<sup>mode</sup> <span style="font-size:7pt">(Alt-Shift-1)</span>`,
Expand Down Expand Up @@ -111,5 +115,10 @@ export default function initCardifyTheme() {
allowHTML: true,
theme: "light-border",
});
tippy("#unlink-finder-icon", {
content: `Find Unlink<sup>mode</sup> <span style="font-size:7pt">(Alt-Shift-u)</span>`,
allowHTML: true,
theme: "light-border",
});
console.log("started styled-roam");
}

0 comments on commit cd3144c

Please sign in to comment.