News for hackers. Stuff that matters.
Re:Neovim v0.2.1 released by sigi45 on Wednesday November 08, 2017 @07:35AM (#15651756)
I was going to rant about this idea but it looks really good and not at all like gvim.
Re:Neovim v0.2.1 released by Sir_Cmpwn on Wednesday November 08, 2017 @11:38AM (#15654051)
No no no no no. This is based on Electron and is a non-starter.
Re:Neovim v0.2.1 released by derefr on Wednesday November 08, 2017 @12:30PM (#15654614)
How would you feel about Electron projects if Electron was instead:

1. a single shared runtime install, installed transparently by the first thing to need it (similar to how the Adobe Air first-use experience worked), rather than a vendored dependency?

2. a shared VM that ran its apps in separate V8 execution contexts (like how browsers isolate tabs), but with a lot of shared resources so that each Electron app didn't end up with a GB of (mostly redundant) memory consumption?

I find that most people don't object to HTML5 apps per se; they just object to the way Electron handles things. The above was going to be the strategy of Chrome's "app-only runtime" mode, until they just killed off Chrome Apps altogether. I still think it's a decent strategy, all-said.

Re:Neovim v0.2.1 released by Sir_Cmpwn on Wednesday November 08, 2017 @01:44PM (#15655558)
I would feel marginally better but still hate it. I don't like the web as a platform anyway, especially not one for applications with cancerous amounts of JavaScript. HTML is not a platform for desktop applications. It shouldn't be a platform for almost anything.
Re:Neovim v0.2.1 released by derefr on Wednesday November 08, 2017 @03:34PM (#15656688)
I've always thought that HTML made a pretty amazing platform for applications when you have the specific goal that the application should be an enhancement (of editing controls + toolbars + whatever) on top of a clean, semantic, static HTML document. Because then you get all the advantages of having a "document" even though you have an application. (These arguments don't apply to "native-ized" apps like Electron apps; only to actual apps-at-URLs-in-a-browser.)

You can, for example, print your application's interface (i.e. your document), without having to implement your own print-layout logic, because that logic can just be the browser doing CSS @media(print) to the DOM. (Which can, with a few @media(print)-scoped rules, hide all the toolbars to just leave the document.)

Or, users can use User-Agent stylesheets (think "forcing high-contrast" or "disabling serif fonts") and browser extensions to customize your application [or, more importantly, anyone's old closed-source abandonware application that's never gonna make an accessibility update ever again], because your application's interface is guaranteed to exist in the intermediary state of a DOM tree, where those things can get to it to munge it†.

† (This is also true in various ways for each OS UI framework—and you can create native "extensions" like screen-readers that use the OS accessibility APIs of each OS—but you have to redo this work. WebExtensions are cross-platform.)

Also, with web-apps, users get final control over how the application is sized and shaped on the desktop, and so apps are forced to be at least semi-responsive—which is easy, because the default layout algorithm for any container, if you don't override it, is a reflowable-text algorithm. Web-apps are the only apps where I'm (nearly) guaranteed to have the ability to adjust the em-widths of blocks of text so that they're actually comfortable to read.

And, as an added benefit, as long as you ensure that you really are serving a static HTML document at each URL that is progressively-enhanced into being your app—then your web-app can double as a programmatically-accessible infobase. Google can't index a native app. You can't scrape a native app. You can't embed microformats into a native app. Etc.

Re:Neovim v0.2.1 released by thegeomaster on Wednesday November 08, 2017 @02:22PM (#15655963)
Actually, I wouldn't mind it that much if it was as you described.

I believe that a web-based UI would still be slower than a native application, if only because of the huge number of abstractions in-between, but I'd say it's something that can be overcome by (a) newer hardware, (b) better development i.e. careful profiling and optimization, (c) advancements made by the browser engine developers, and (most likely) a combination of all three.

There's also the issue with the Web as a platform, but honestly, it's not as bad as purists on HN make it. No technology is perfect. I used to be a very loud opponent of using Web technologies for applications, but I realize that ship's pretty much sailed, and we could have had a much worse outcome than this.

My main gripe with Electron has always been the inability to share resources between instances. If firing up Slack or VSCode would have the same net impact on my memory use as opening a new Chrome tab, I'd gladly run them and quit complaining.

Re:Neovim v0.2.1 released by lemoncucumber on Wednesday November 08, 2017 @04:12PM (#15657093)
I would still hate it. When it comes to UX I care a lot about the little stuff, and with all web-wrapper apps I've ever used it's death by a thousand cuts. Lots of little things that work in native apps don't work in Electron apps.

Let's take Slack as an example. All the keyboard shortcuts use weird modifier keys like option instead of command, and I can't discover any of them by looking through the menu bar like I can in a native app.

Or for another example, the Services feature of macOS doesn't work correctly with Electron apps. In any native app I can select some text and then trigger a Service on that text (for example, I've defined a service to be able to select a bug id and hit a keyboard shortcut to view that bug in our bug tracker). No such luck in Slack.

Re:Neovim v0.2.1 released by jackmott on Wednesday November 08, 2017 @12:40PM (#15654753)
I'd like electron if it was just a natively, AOT compiled rendering library.
Re:Neovim v0.2.1 released by badosu on Wednesday November 08, 2017 @11:45AM (#15654106)
I stick to this philosophy for many things, tracked for many months the more efficient GUIs for neovim (mainly neovim-qt, see full list at [0]).

However I really wanted to have a little more interactivity (and visuals) than what the terminal can provide and so far Oni has delivered it good enough for me.

That said, there are a lot of daily editing issues to be solved before it can be said battle-tested.

[0]: https://github.com/neovim/neovim/wiki/Related-projects#gui

Re:Neovim v0.2.1 released by nategri on Wednesday November 08, 2017 @03:16PM (#15656509)
Was pretty curious about this until I saw that awful "e" word thanks for the heads up.
Re:Neovim v0.2.1 released by baldfat on Wednesday November 08, 2017 @07:43AM (#15651819)
But this looks just like a customized Vim in a terminal with what some may consider bloat.

> Oni brings several IDE-like integrations to neovim:

    Quick Info

    Code Completion

    Syntax / Compilation Errors

    Fuzzy Finding

    Status Bar
Re:Neovim v0.2.1 released by lsiebert on Wednesday November 08, 2017 @08:26AM (#15652135)
It's not a terminal though, so you can get GUI features that terminal nvim can't do.

Personally I use terminal vim not any sort of nvim (maybe I should change over but then I potentially have to maintain two sets of plugins, one for nvim and one for vim. ).

No if you want to call this out, I'd call it out for the lack of features. This only supports code completion in JS and TypeScript. I have code completion plus snippets for a lot more then that with vim.

Honestly if you want to wow me, someone should build a GUI configuration tool for neovim/vim. One big benefit of GUIs is that you can generally see all the possible settings with tool tips and explanations, and I can see that being useful for vimmers, especially if it did the right thing, like using ft-plugins to do filetype specific settings, instead of a bunch of one line autogroups based on file extension.

Yes there are vim config generators, but the neovim api means you could programmatically query the current configuration and display it along with the options, meaning you could have interactive configuration modification.

Re:Neovim v0.2.1 released by cstrahan on Wednesday November 08, 2017 @01:42PM (#15655530)
> maybe I should change over but then I potentially have to maintain two sets of plugins, one for nvim and one for vim

I use this in my ~/.config/nvim/init.vim:

  set runtimepath^=~/.vim runtimepath+=~/.vim/after
  let &packpath = &runtimepath
  source ~/.vimrc
That lets me directly use vim config from neovim.

Then I set up an alias in my zsh profile:

alias vim=nvim

All of my plugins thus far have worked without a hitch (and I have a lot of configuration/plugins). If I ever run into problems, I can bail out by removing the alias (or for a one-off editing session, I can just run: $ command vim).

You might give something like that a go.

Re:Neovim v0.2.1 released by lsiebert on Monday November 13, 2017 @12:13PM (#15688005)
two plugins failed until I installed https://github.com/neovim/python-client

Which seems to have fixed things.

Re:Neovim v0.2.1 released by elkelk on Wednesday November 08, 2017 @09:32AM (#15652718)
You'd be surprised, when I switched to nvim my plugins just worked.
Re:Neovim v0.2.1 released by fmoralesc on Wednesday November 08, 2017 @08:44AM (#15652271)
> This only supports code completion in JS and TypeScript. I have code completion plus snippets for a lot more then that with vim.

No, this only supports the extended features fro completion for those languages. It should use the simpler completion system for other languages, in which case you are using vim's support anyway.

Re:Neovim v0.2.1 released by nerdponx on Wednesday November 08, 2017 @09:14AM (#15652547)
I've been wanting to do exactly this for a long time, for exactly the reasons you state.
Re:Neovim v0.2.1 released by coldtea on Wednesday November 08, 2017 @10:08AM (#15653107)
>But this looks just like a customized Vim in a terminal with what some may consider bloat

But we can chose to ignore those "some", just like they can keep using whatever works for them.

Re:Neovim v0.2.1 released by nerdponx on Wednesday November 08, 2017 @09:15AM (#15652554)
You can literally use Neovim as the Sublime Text editing engine.
Re:Neovim v0.2.1 released by joejoebob on Wednesday November 08, 2017 @11:49AM (#15654154)
Is there a plugin for this?
Re:Neovim v0.2.1 released by lunixbochs on Wednesday November 08, 2017 @12:17PM (#15654464)
https://github.com/lunixbochs/actualvim

It's not just "literally use Neovim as the editing engine", I've tried to make editing the text in "Sublime Mode" work too, including running Sublime plugins. Work in progress, but afaik the most complete Vim integration for an existing editor. Waiting on updates to both Neovim and Sublime Text to polish it a bit more.

VSCodeVim is using it as a reference for some of their new work as well.

Re:Neovim v0.2.1 released by joejoebob on Wednesday November 08, 2017 @01:51PM (#15655635)
Thanks!