Hacker Newsnew | past | comments | ask | show | jobs | submit | phelipetls's commentslogin

Or use requestAnimationFrame to run infinitely at ~60fps

    window.requestAnimationFrame(function clickButton() {
        document.querySelector(".main-btn").click()
        window.requestAnimationFrame(clickButton)
    })


This doesn't seem to logarithmically scale when you get the click percent increase upgrade, while the other code does.


I probably wouldn't enjoy programming as much as I do if it wasn't for Vim. Thank you.


Hard agree. Vim made typing/editing a pure joy.


Looks great. Didn't expect it to be developed with React Native. I was thinking of doing the same for learning purposes.

By the way, I can't scroll in the Credits screen.


I come from JS world, so React Native was the first option that came to mind.

I forgot to wrap that screen in scroll view as I thought it wouldn't be too long. I will fix it in the next version, thanks :)


It's unfortunate that some VS Code extensions, e.g. remote development extensions, can't be used in Onivim 2 due to license restrictions[1].

[1]: https://github.com/VSCodium/vscodium/issues/196#issuecomment...


Can any VS Code extensions be used in Onivim 2? Despite appearances, Onivim isn't a VS Code fork, it doesn't use Electron, and it's not written in Javascript-- it just happens to take substantial inspiration from VS Code's UI.


We host the VSCode extension host, which is how Oni2 can use VSCode extensions.

I.e, the whole front end and core editor is native code (ReasonML/C), and then there is a nicely typed interface where we communicate with a node instance to run VSCode extensions. We broadly end up with Oni2 <-> Ext Host <-> Extension.

We have to implement the Oni2 side for each thing, so parse the message sent, and how to action on that and render it, but it lets us run VSCode extensions, still in a native editor.

There are some caveats, like the license issue mentioned, the largest being that extensions that heavily depend on rendering custom components / web pages aren't possible, just since Revery has no browser etc to render anything like that with.

We've focused on language ones to start though, and that has meant we support a decent selection of langauges as adding one feature unblocks loads of extensions.


> Can any VS Code extensions be used in Onivim 2?

Yes, this is basically the entire point of Onivim (use vscode extensions with vim). https://open-vsx.org/


This is very cool. Something similar can be done by using pandoc and exporting to revealjs or beamer, but it's less straightforward.


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: