4 ms·
A massive improvement would be if saving didn't open the save dialog and instead just saved the file. I understand why it doesn't work this way but it is a must
by zikzak 6y ago
A massive improvement would be if saving didn't open the save dialog and instead just saved the file. I understand why it doesn't work this way but it is a must for a decent editor. Autosave being almost as important, of course (hitting ctrl-s at every keystroke is deep in my psyche, though).
- pimterry 6y agoIn theory the new file system API would allow for this: https://web.dev/file-system-access/ https://web.dev/file-system-access/. Ask for a path & save permissions once, and then you're allowed to continue saving to that file however you like, until the tab/browser is closed (and then next time you need to ask for permission again). Significantly more complex though as you need a bunch of JS, and it's Chromium-only right now.
- zserge 6y agoI'm afraid that won't be allowed for data URLs anyway, they can't access localStorage, or their cookies, or even redirect their own URL location.
- sergeykish 6y agoIt is limitation of modern browser, first browser was browser-editor. Opera Unite was a server running in the browser, have not tried it though... There is Web Server as Chrome extension [1], MIT license. PWA should be able to intercept PUT request and stub GET request with empty page. [1] https://chrome.google.com/webstore/detail/web-server-for-chrome/ofhbbkphhbklhfoeikjpcbhemlocgigb https://chrome.google.com/webstore/detail/web-server-for-chr... [2] https://github.com/kzahel/web-server-chrome https://github.com/kzahel/web-server-chrome