5 ms·
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.
by teamspirit 5y ago
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!
- cossatot 5y agoI like having gvim or macvim as the default text editor to open files when the are clicked from Dolphin/Finder/etc so that I can read and edit the file with vim and my config, rather than whatever the OS default low power GUI text editor is. Maybe I could rig up something to open a new terminal and then open vim in that but vim in a GUI works quite well.
- alpaca128 5y agoI've been using NeoVide (same idea) for the last few weeks and I've noticed three differences: the colors/font are closer to the intended look, it's got nice smooth (and quick) animations, and it seems like the rendering is faster than in the terminal to a degree it feels more responsive. Overall I like it a lot.
- auxym 5y agoI 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 :)
- O_H_E 5y ago> menu bar with some operations for which I can't be bothered to remember the key combination. now, that's a good one.
- ComputerGuru 5y agoNvim already supports resizing splits with the mouse. Just :set mouse=a
- notthemessiah 5y agoSounds like neovim-gtk has 2/3 (you can resize splits with the mouse, but you can't move them), but unfortunately, it's infrequently updated, sometimes I experience glitches, and it sometimes fails to build. https://github.com/daa84/neovim-gtk/ https://github.com/daa84/neovim-gtk/
- jchook 5y ago> 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?
- mah3s 5y agoI 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
- jchook 5y agoThere are lots of great ways to handle this in vim. You can sync your system clipboard with vim, for example. This also works well with clipboard history apps like Alfred or CopyQ. Also, :set mouse+=a solves the line number selection issue.
- yoz-y 5y ago> 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?
- Lio 5y ago> 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.
- CJefferson 5y ago
- p00f 5y ago> native window tabs You might want to watch https://github.com/glacambre/nwin https://github.com/glacambre/nwin
- phire 5y agoIn 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.
- jcelerier 5y ago> 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 ?
- Lio 5y agoMany 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 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/ https://sw.kovidgoyal.net/kitty/underlines/ Vim and NeoVim both support coloured undercurls too.
- da39a3ee 5y agoIf you run your editor in a terminal, how do you do things like ctrl+click on a compiler error in the terminal and have the file opened in your editor at the correct line?
- chrischen 5y agoA lot of performance issues when it comes to mouse based scrolling in the terminal.
- deleted 5y ago[deleted]