Live data from Hacker News

Nvui: A NeoVim GUI written in C++ and Qt

github.com

31–40 of 145 posts

Re: Nvui: A NeoVim GUI written in C++ and Qt

#31
If you want a vim GUI, Onivim 2 is usable and doing a Vim GUI slightly differently (made libvim, and is doing the UI in Revery an OCAML offshoot). I've been using it a few hours each week to edit python/ts/js/md and it's worked surprisingly well. This also looks really good, and I'm happy to see next-gen vim get love.

Re: Nvui: A NeoVim GUI written in C++ and Qt

#32

Earlier quoted context omitted.

Last I checked Github doesn't support embedded videos. It's far from ideal, and I doubt anyone is claiming otherwise, but GIFs in Github READMEs are entirely standard practice. EDIT: Well, there you go. Video was introduced within Github this year: https://github.blog/2021-05-13-video-uploads-available-githu...

No idea why he's getting downvoted but megabytes of GIFs absolutely don't belong in a code repo. Author could have just put a screenshot in there put the video inside the github .wiki.git repo. EDIT: didn't think I have to clarify this, but when I say put a screenshot, I mean "A"(1) screenshot, if necessary.

Even the screenshots don’t belong in the code repository, there’s another 2MB in this instance. I think you can still get the README to embed images from elsewhere? And if not, just link to it, “screenshots over here”.

The compromises being made in bloating repositories because GitHub presents the README as project info rather than at least allowing you to separate it are painful.

Re: Nvui: A NeoVim GUI written in C++ and Qt

#33

What's the elevator pitch for Neovim over regular Vim or GVim? I see verbiage about extensibility and modern guis, but has any Vim user actually seen real world benefit after switching to NeoVim? Is it all just icing?

I am willing to take the philosophical stance that even if NeoVim was only a 1:1 feature parity of Vim, it would still be a GoodThing. We need to find a way to dig ourselves out of endless backwards compatibility and advance the state of software. Supporting 8.3 filenames no longer has its place.

This[0] post about the early days of NeoVim development made some interesting points about Vim, but one choice quote I recalled and had to google,

> Some of Vim’s source code isn’t even valid text. It’s not ASCII or UTF-8. The venerable file can’t figure out the encoding...

Re-building things to a more solid foundation enables new workflows that are currently challenging. As a Vim user, I have longingly looked at the Emacs ecosystem, with its saner extension language (though Emacs lisp has its own historical baggage weighing them down). Once Lua becomes the default, I expect to see new evolution in features that would otherwise not have made it to the Vim scene. At worst, I can imagine VSCode javascript plugins get transpiled to Lua to run within NeoVim.

[0] https://geoff.greer.fm/2015/01/15/why-neovim-is-better-than-...

Re: Nvui: A NeoVim GUI written in C++ and Qt

#34
post #5

This looks very interesting. Are there any advantages to using it as opposed to neovim in a terminal? I guess my question can be posed to any gui text editor. Still, nice project!

I have not tried this one yet, but what I'd like to see in a nvim gui: - Splits I can drag around to move and resize with a mouse - "Native" window tabs instead of terminal-style tabs - A gvim-style menu bar with some operations for which I can't be bothered to remember the key combination. So, overall, mostly mouse support and better discoverability. I've tried a few though and haven't really found what I'm looking…

> menu bar with some operations for which I can't be bothered to remember the key combination.

now, that's a good one.

Re: Nvui: A NeoVim GUI written in C++ and Qt

#35

What's the elevator pitch for Neovim over regular Vim or GVim? I see verbiage about extensibility and modern guis, but has any Vim user actually seen real world benefit after switching to NeoVim? Is it all just icing?

Gvim isn't really an "or" in this case, it's just a GUI for vim. Some things I like about neovim over vim. - Lua integration as first class citizen. - Treesitter - lsp built in - Feeling that the community is super active and in a period of movement. I love being able to hack and add specific functionality to my own workflow in lua just as part of the editor. I can add features in a way that I just can't in VS Code o…

> can add features in a way that I just can't in VS Code

I have no knowledge about VSCode's JS nor NVim's Lua APIs beyond that one can write extensions in these langs. Would you be able to expand on what can you do with Lua in Nvim that can't be done in VSCode? That could really be a tipping point for me.

Re: Nvui: A NeoVim GUI written in C++ and Qt

#36

What's the elevator pitch for Neovim over regular Vim or GVim? I see verbiage about extensibility and modern guis, but has any Vim user actually seen real world benefit after switching to NeoVim? Is it all just icing?

On top of 0.5 providing tree-sitter syntax highlighting and LSP support natively, it supports lua. Vim configurations can now be completely written in lua.

As a result, the plugin ecosystem is exploding. You can find a directory of neovim specific plugins here: https://neovimcraft.com

Re: Nvui: A NeoVim GUI written in C++ and Qt

#37

Earlier quoted context omitted.

Eww, a 20MB GIF with harsh dithering artefacts. And then another 22MB in two more GIFs. All in the repository. (a) GIF is not the right format here, use a video format because it’ll produce a visually superior result (proper colour, no dithering needed—not that it actually is even with animated GIFs) and much more usable result (not autoplaying if the user agent’s configuration says not to, allowing scrubbing, showin…

Last I checked Github doesn't support embedded videos. It's far from ideal, and I doubt anyone is claiming otherwise, but GIFs in Github READMEs are entirely standard practice. EDIT: Well, there you go. Video was introduced within Github this year: https://github.blog/2021-05-13-video-uploads-available-githu...

A screenshot or two, sure. And maybe chrismorgan's point could have been, well, perhaps expressed more gently. :) But the general point about multi-megabyte image files that are only there to enhance the README file perhaps not being ideal to have in your code repo, and something you could have on a separate non-repo page that goes into more detail, seems pretty reasonable.

Re: Nvui: A NeoVim GUI written in C++ and Qt

#38
post #31

If you want a vim GUI, Onivim 2 is usable and doing a Vim GUI slightly differently (made libvim, and is doing the UI in Revery an OCAML offshoot). I've been using it a few hours each week to edit python/ts/js/md and it's worked surprisingly well. This also looks really good, and I'm happy to see next-gen vim get love.

Oni looks nice, but is a non-free program with an EULA so I would rather not use it. However it also states that a release is relicensed under the MIT/X11 license after 12 months from its release.

Re: Nvui: A NeoVim GUI written in C++ and Qt

#39
post #24
post #5

Earlier quoted context omitted.

I have not tried this one yet, but what I'd like to see in a nvim gui: - Splits I can drag around to move and resize with a mouse - "Native" window tabs instead of terminal-style tabs - A gvim-style menu bar with some operations for which I can't be bothered to remember the key combination. So, overall, mostly mouse support and better discoverability. I've tried a few though and haven't really found what I'm looking…

> Splits I can drag around to move and resize with a mouse You can already use the mouse to resize splits in neovim, :set mouse+=a > "Native" window tabs instead of terminal-style tabs Which features would "native" tabs provide that aren't already available? > A gvim-style menu bar with some operations for which I can't be bothered to remember the key combination. Which operations would you put under the menu?

I want native style tabs and line numbers. By native style, I mean both of them in some way separate from the main code window. When I have line numbers enabled in nvim and if I select code using mouse to copy, line numbers get selected automatically and only way to get what I want is to use visual mode or turn off numbers. Its a bit slower than selecting with mouse for me

Re: Nvui: A NeoVim GUI written in C++ and Qt

#40
post #8

The window animations are really nice: https://github.com/rohit-px2/nvui/blob/main/assets/display/v... I wonder if it's possible to reduce duration slightly. Personally I find animations useful and a great improvement to UX but I prefer as short durations as possible. I also set 0.5x animation duration / scale on Android and it makes it feel much snappier, but don't like outright disabling them.

Eww, a 20MB GIF with harsh dithering artefacts. And then another 22MB in two more GIFs. All in the repository. (a) GIF is not the right format here, use a video format because it’ll produce a visually superior result (proper colour, no dithering needed—not that it actually is even with animated GIFs) and much more usable result (not autoplaying if the user agent’s configuration says not to, allowing scrubbing, showin…

I believe the best practice is to use a dedicated "media" branch for screenshots/gifs/webp. Then you can use them on your readme like this ![alt text](../media/demo.gif?raw=true).

You can rewrite history on the media branch so the files don't accumulate whenever you update them.

I found this idea here: https://medium.com/@minamimunakata/how-to-store-images-for-u...

Post reply on HN