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