Live data from Hacker News

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

github.com

71–80 of 145 posts

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

#71
post #66
post #47

Earlier quoted context omitted.

> Which features would "native" tabs provide that aren't already available? In ideal world: reordering, tearing off and merging. > Which operations would you put under the menu? Ostensibly, all of them?

> In ideal world: reordering, tearing off and merging. That's an interesting idea. It sounds like it should be technically possible in the terminal too. Same would go with drag copying text.

"tearing off" to me means creating a new window -- I don't know any terminal which lets you down a new window (although terminal lovers wouldn't want that I imagine).

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

#72
post #54

It seems neat, though I would never seriously use an editor that I couldn't run in a terminal. Too much of my work happens remotely. Additionally, in my mind a terminal serves a similar role as plain HTML web pages - it constrains what can be done and I am extremely used to it, which makes it very easy and quick to use. On the other hand in a GUI editor (or a JS-heavy web page) it feels that it has more possibilities…

These are all valid points, but I don't think they apply here. This is a GUI frontend for Neovim, which is a terminal editor. So yes you can use the the editor in the terminal. This just gives you the option to run the same editor in a GUI for when you need it.

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

#73
post #54

It seems neat, though I would never seriously use an editor that I couldn't run in a terminal. Too much of my work happens remotely. Additionally, in my mind a terminal serves a similar role as plain HTML web pages - it constrains what can be done and I am extremely used to it, which makes it very easy and quick to use. On the other hand in a GUI editor (or a JS-heavy web page) it feels that it has more possibilities…

> Too much of my work happens remotely.

... You know that GUI apps are able to edit code over SSH too, right ?

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

#74

Earlier quoted context omitted.

What for example? I genuinely haven't noticed any difference out of the box. I usually also don't like deviations, hence why I can't stand Emacs' Evil mode.

There was quite a few, but off the top of my head: 1. searching for stuff with / jumps prematurely to destination, drives me nuts. 2. I have most "smart" features (auto-indent type stuff) disabled for C++ mode in my .vimrc, which works fine in vim but is completely ignored by neovim. It requires futzing around with post/pre loading of plugins, which - 1.who has the time to do these things 2. makes for incompatible in…

Ah, coincidentally my preferences make the first two non-issues:

I always set Vim to jump to the first search result in realtime because that lets me take a glance at another part of the file and then immediately jump back with Esc. So that way I didn't notice this apparently became a default setting in NeoVim. Which is still a weird thing and shouldn't happen imho.

And I always have all kinds of smart features disabled in every situation because almost nothing annoys me more in software, and as far as I can tell nothing changed with the switch.

The init.vim thing is definitely cumbersome when you just want to try it out, even though in the end it's just a symbolic link.

> I might revisit neovim the day I have enough time on my hand to figure out how to install the whole tresitter shebang.

I just did that last week, it's relatively straightforward with the guide in the vim-treesitter readme but requires the nightly build until NeoVim 0.5 releases. And if I'm not mistaken that future version will make it easier too.

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

#75
post #6

Earlier quoted context omitted.

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…

> Not that I've seen any GUI IDE/editor ever do syntax highlighting that couldn't be done in a terminal. A very basic feature is that IDEs underlines in yellow for warnings and in red for errors, as well as show fix-it popups when hovering the mouse around the error area I don't believe a terminal can do that while keeping syntax highlighting no ?

Many terminals can display coloured undercurls that are different to the current text colour if that's what you mean.

E.g. here's a plugin for simple-term to add support for it: https://github.com/hexoctal/st-undercurl

The Kitty terminal has all kinds of graphics addons including coloured undercurls and images too:

https://sw.kovidgoyal.net/kitty/underlines/

Vim and NeoVim both support coloured undercurls too.

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

#76
post #66

Earlier quoted context omitted.

> In ideal world: reordering, tearing off and merging. That's an interesting idea. It sounds like it should be technically possible in the terminal too. Same would go with drag copying text.

"tearing off" to me means creating a new window -- I don't know any terminal which lets you down a new window (although terminal lovers wouldn't want that I imagine).

You can have tabs in vim instead of the terminal. Check :tabedit for example.

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

#77
post #66

Earlier quoted context omitted.

> In ideal world: reordering, tearing off and merging. That's an interesting idea. It sounds like it should be technically possible in the terminal too. Same would go with drag copying text.

"tearing off" to me means creating a new window -- I don't know any terminal which lets you down a new window (although terminal lovers wouldn't want that I imagine).

It's not something I'd want personally but I don't see why it wouldn't be possible for those that do.

The iTerm2/tmux integration show that's you can map TUI windows on to GUI windows including splits into new GUI windows.

It's actually possible to have both the TUI representation and GUI representation connected to the same remote tmux session.

https://iterm2.com/documentation-tmux-integration.html

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

#78
post #57

Earlier quoted context omitted.

There has been a lot of talk around here lately about modernizing emacs. It really seems to me that neovim is shaping up to be the new “modern” emacs. With full lua integration, lsp, gui clients, and projects like neorg it’s getting a lot closer to building its own emacs like ecosystem.

I like the NeoVim project and think Lua is a great scripting language, and so I wish the project all the best, but it is not attempting to scratch many of the itches that Emacs and Elisp do for many of us old timers.

Would you care to elaborate a bit? I think both Emacs and Vim have valid use cases, and I am interested to hear your opinion.

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

#79
post #76

Earlier quoted context omitted.

"tearing off" to me means creating a new window -- I don't know any terminal which lets you down a new window (although terminal lovers wouldn't want that I imagine).

You can have tabs in vim instead of the terminal. Check :tabedit for example.

Yes that's the idea. Tearing off a tab in vim and creating a new terminal window with an instance of vim having contents of that tab. This is possible in vim guis but afaik not in any terminal version.

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

#80
post #69

Earlier quoted context omitted.

You can already do that inside regular (neo)vim, using https://github.com/wfxr/code-minimap

I’ve seen it, it’s really innovative but I was hoping for a more traditional one that has actual characters.

I'm sorry, I might have been misinterpreting, could I you explain what you mean by actual characters? Even VSCode's minimap draws some shapes, but they're too small to discern any characters.
Post reply on HN