add some commands
This commit is contained in:
@@ -3,7 +3,6 @@
|
|||||||
aria-hidden="true"
|
aria-hidden="true"
|
||||||
id="command-line-input"
|
id="command-line-input"
|
||||||
type="text"
|
type="text"
|
||||||
size="1"
|
|
||||||
class="bg-base focus:outline-none active:outline-none cursor-default caret-transparent m-0"
|
class="bg-base focus:outline-none active:outline-none cursor-default caret-transparent m-0"
|
||||||
/>
|
/>
|
||||||
<div id="caret" aria-hidden="true" class="bg-text inline-block"> </div>
|
<div id="caret" aria-hidden="true" class="bg-text inline-block"> </div>
|
||||||
@@ -21,6 +20,10 @@
|
|||||||
const cmdEvent = new CustomEvent("closebuffer");
|
const cmdEvent = new CustomEvent("closebuffer");
|
||||||
window.dispatchEvent(cmdEvent);
|
window.dispatchEvent(cmdEvent);
|
||||||
},
|
},
|
||||||
|
help: () => {
|
||||||
|
const cmdEvent = new CustomEvent("openhelp");
|
||||||
|
window.dispatchEvent(cmdEvent);
|
||||||
|
},
|
||||||
"help iccf": () => {
|
"help iccf": () => {
|
||||||
const cmdEvent = new CustomEvent("openiccf");
|
const cmdEvent = new CustomEvent("openiccf");
|
||||||
window.dispatchEvent(cmdEvent);
|
window.dispatchEvent(cmdEvent);
|
||||||
|
@@ -49,4 +49,12 @@ import CommandLine from "./CommandLine.astro";
|
|||||||
statusIndicator.classList.add("bg-blue");
|
statusIndicator.classList.add("bg-blue");
|
||||||
statusIndicator.classList.remove("bg-peach");
|
statusIndicator.classList.remove("bg-peach");
|
||||||
});
|
});
|
||||||
|
|
||||||
|
window.addEventListener("openhelp", () => {
|
||||||
|
window.location.href = "https://vimhelp.org/";
|
||||||
|
});
|
||||||
|
|
||||||
|
window.addEventListener("openiccf", () => {
|
||||||
|
window.location.href = "https://vimhelp.org/uganda.txt.html#iccf";
|
||||||
|
});
|
||||||
</script>
|
</script>
|
||||||
|
Reference in New Issue
Block a user