Live data from Hacker News

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

github.com

1–10 of 145 posts

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

#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 for, open to suggestions :)

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

#6

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!

In general: There are a few theoretical advantages when it comes to doing advanced syntax "highlighting". Not that I've seen any GUI IDE/editor ever do syntax highlighting that couldn't be done in a terminal.

There are a few examples in the GUI based disassemblers world (like IDA pro) which use graphical arrows to show where branch/jump instructions goto. The usefulness of those is enough to convince me that perhaps more research needs to be done in this direction.

There is also the small advantage of being able to have more than one font type/size on the screen. Your navigator panel can be a smaller font size, Your inline documentation viewer can use a variable-width font.

The counter-argument to all that is always: "Is it worth giving up the ability to be used in a terminal to add those few features?"

Everything else can be defined as "style" and gets very subjective. nvui looks like it has nice animations and smooth scrolling.

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

#7
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…

Nvim already supports resizing splits with the mouse. Just :set mouse=a

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

#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.

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

#10

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!

A lot of performance issues when it comes to mouse based scrolling in the terminal.
Post reply on HN