add :w command
This commit is contained in:
@@ -20,6 +20,10 @@
|
|||||||
const cmdEvent = new CustomEvent("closebuffer");
|
const cmdEvent = new CustomEvent("closebuffer");
|
||||||
window.dispatchEvent(cmdEvent);
|
window.dispatchEvent(cmdEvent);
|
||||||
},
|
},
|
||||||
|
w: () => {
|
||||||
|
const cmdEvent = new CustomEvent("savebuffer");
|
||||||
|
window.dispatchEvent(cmdEvent);
|
||||||
|
},
|
||||||
help: () => {
|
help: () => {
|
||||||
const cmdEvent = new CustomEvent("openhelp");
|
const cmdEvent = new CustomEvent("openhelp");
|
||||||
window.dispatchEvent(cmdEvent);
|
window.dispatchEvent(cmdEvent);
|
||||||
|
@@ -57,4 +57,10 @@ import CommandLine from "./CommandLine.astro";
|
|||||||
window.addEventListener("openiccf", () => {
|
window.addEventListener("openiccf", () => {
|
||||||
window.location.href = "https://vimhelp.org/uganda.txt.html#iccf";
|
window.location.href = "https://vimhelp.org/uganda.txt.html#iccf";
|
||||||
});
|
});
|
||||||
|
|
||||||
|
window.addEventListener("savebuffer", () => {
|
||||||
|
if (window.showSaveFilePicker) {
|
||||||
|
window.showSaveFilePicker();
|
||||||
|
}
|
||||||
|
});
|
||||||
</script>
|
</script>
|
||||||
|
Reference in New Issue
Block a user