News for hackers. Stuff that matters.
Re:Nvui: A NeoVim GUI written in C++ and Qt by chrisseaton on Monday August 30, 2021 @08:16AM (#28354865)
> And smooth scrolling works on regular neovim with https://github.com/psliwka/vim-smoothie

Doesn't 'smooth scrolling' mean scrolling in increments less than a full line, to avoid the janky jarring jump from one line to the next?

I don't get how you can do smooth scrolling in a terminal interface? The screenshots in that link aren't smooth - they jump whole lines at a time, unlike the screenshots you can see on the NeoVim page.

Re:Nvui: A NeoVim GUI written in C++ and Qt by MontyCarloHall on Monday August 30, 2021 @08:39AM (#28355011)
> I don't get how you can do smooth scrolling in a terminal interface?

Via a terminal bitmap rendering protocol like sixel [0], or KiTTY’s terminal graphics protocol [1]? I wonder if a library like notcurses [2] could allow for efficient rendering of text to a terminal graphics framebuffer?

[0] https://saitoha.github.io/libsixel/

[1] https://sw.kovidgoyal.net/kitty/graphics-protocol/

[2] https://github.com/dankamongmen/notcurses

Re:Nvui: A NeoVim GUI written in C++ and Qt by chrisseaton on Monday August 30, 2021 @08:40AM (#28355028)
You mean do all the text rendering yourself and stream the image to the terminal? At that point why use a terminal rather than a graphics window?
Re:Nvui: A NeoVim GUI written in C++ and Qt by MontyCarloHall on Monday August 30, 2021 @08:47AM (#28355086)
Remote access is the big one. It’s 2021 and ssh somehow still remains by far the most robust protocol for remote interaction. X forwarding is awful, and VNC and its ilk require forwarding an entire desktop, which is inconvenient if you’re just interested in working in a single application, or having your client machine do its own window management.

I agree, it’s an ironic state of affairs that in the era of cloud computing and thin clients (everything old is new again!) TUI graphics might be one of the best way of actually working remotely on those cloud VMs.

Re:Nvui: A NeoVim GUI written in C++ and Qt by jcelerier on Monday August 30, 2021 @10:58AM (#28356278)
Why do this when you can just sshfs the source folder and configure your IDE to run its build commands through SSH?
Re:Nvui: A NeoVim GUI written in C++ and Qt by chrisseaton on Monday August 30, 2021 @11:47AM (#28356843)
I've been trying this for IntelliJ to be able to develop Java on a remote instance and it's intractably slow. Haven't figured out where the problem is yet - I guess maybe IntelliJ does some things that expect performance that the remote file system isn't able to provide.
Re:Nvui: A NeoVim GUI written in C++ and Qt by __s on Monday August 30, 2021 @08:46AM (#28355071)
It's all relative. smoothie scrolls over multiple renders, rather than jumping a page all at once

One line is plenty resolution. What next, you'll ask for subpixel rendering to deliver subpixel smooth scrolling?

Re:Nvui: A NeoVim GUI written in C++ and Qt by dTal on Monday August 30, 2021 @10:13AM (#28355844)
And why not? Video games are fully antialiased. Why shouldn't I demand at least the same care and attention to technical detail in my productive tools?
Re:Nvui: A NeoVim GUI written in C++ and Qt by WhyNotHugo on Tuesday August 31, 2021 @07:39AM (#28366603)
Subpixel scrolling would likely be invisible to the human eye.

Apple has even dropped subpixel rendering entirely, since that was only really needed in lower resolution displays.

Re:Nvui: A NeoVim GUI written in C++ and Qt by chrisseaton on Monday August 30, 2021 @08:52AM (#28355125)
Well anyway ultimately this is the concrete advantage of a GUI that was asked about - it can do better than janky whole-line scrolling.