folders.save();
folders.build_folder_view(folder_item_click);
+
+ // Enable :w for vim mode
+ // This is such a freaking hack. I don't know how to properly wait for the module
+ // to be ready, so my best attempt is to just wait for 1 second, then require the
+ // module.
+ setTimeout(() => {
+ let ace_vim = require("ace/keyboard/vim");
+ ace_vim.Vim.defineEx("write", 'w', folder_save_current_file)
+ }, 1000);
}
function disable_ide_mode() {
folders.save();
}
}
-}
\ No newline at end of file
+}
-const app_version = 2;
+const app_version = 3;
const cacheName = 'cache-v1';
const precacheResources = [
return fetch(event.request);
})
);
-});
\ No newline at end of file
+});