Comments (6)
I agree. But vim.wasm is not in the phase for now. I'm now trying to fix/improve base implementations to make vim.wasm run faster/more robustly. I want to extend fundamental features like :write
you're pointing after current fixes are done.
Anyway, thank you for reporting this. To keep your idea in my mind, I'll label this issue as 'enhancement'.
from vim.wasm.
Here is a screenshot.
from vim.wasm.
i was going to ask something like this, so my question is how can i get what i write?, i mean if i want to use what i write for an API, for example
from vim.wasm.
Possible implementation would be:
- Implement a JavaScript function which is supposed to be called at writing a file. In the function, we can show dialog or do something.
- In C,
:write
is implemented indo_write()
function ofex_cmds.c
. Call above JavaScript function indo_write()
with the file name and the buffer content
from vim.wasm.
After some thoughts, I implemented :export
special command to download current buffer or specific file at 4c81d4c.
I did not hook :write
because browser does not overwrite existing file (e.g. when downloading foo.txt
twice, foo (1).txt
is downloaded at second time). Each :write
generates a new file and it would be annoying.
from vim.wasm.
Cool, good job!
from vim.wasm.
Related Issues (20)
- Build not working HOT 10
- Build sometimes fails with bad memory access
- Can't generate from release tarball HOT 2
- VimWasm.cmdline() does not update screen
- /usr/local/share/vim/autoload/dist does not exist
- Vim crashes with empty string argument HOT 3
- <C-D> in the command-line mode is not giving the possible completions.
- vim.wasm installation process HOT 1
- Add sound support
- " '' should be object " appears when starting firefox HOT 5
- Unable to switch splits in the browser
- Cross origin isolation HOT 1
- wasm-ld: error: unknown file type: vim.bc HOT 5
- SharedArrayBuffer restricted in new browser versions HOT 10
- Potential PWA App
- Feature Request: embed .wasm file inside of vim.html so you have a single html file with everything. Like vim.html
- vim.wasm with networking protocol: IPFS, Remote-storage?
- Clipboard read on visual select HOT 5
- Access to vim api and context from a containing app HOT 1
- `.cmdline()` method not working HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from vim.wasm.