News for hackers. Stuff that matters.
Re:Helix: a post-modern modal text editor by ljm on Tuesday June 01, 2021 @03:25PM (#27359972)
It's great to see more projects in the space, but for me it's not really about the editor itself any more, it's about the ecosystem and the extensibility. The act of selecting and changing text is just a small part of the problem space.

I use emacs not because I'm a neckbeard, but because I can script it to do whatever the hell I like. I switch to vscode when I want to do something my emacs setup isn't yet good for (like, working with Typescript).

On the flip side, I use sublime text as a notepad replacement because it's that fast. I still use nano as my default editor for commit messages. Sometimes I use vim because that's what I happened to type to open a file.

This isn't a comment on helix editor itself...just that, it's a pretty saturated space and I'm keen to see something as novel as light table play out again, but only more successfully.

Re:Helix: a post-modern modal text editor by simias on Tuesday June 01, 2021 @04:31PM (#27360883)
It's interesting because I come from the exact opposite direction. I started with IDEs, then Emacs for almost 15 years, and last year I switched to Vim.

Ecosystems change all the time, even if you've been coding in C for decades chances are that you've dealt with a bunch of build and package systems over the years.

The more time passes the more I value ecosystem- and language-agnostic tools. Dummy completion, tag-based cross-reference (admittedly not completely language-agnostic, but close enough), find, (rip)grep, fzf etc...

No setup, no configuration, it's lightning fast and it just works.

I'm not arguing that my approach is better than yours btw, if you like more integrated environments then go for it. I just sometimes wonder if "kids these days" even consider that there's a world outside of Visual Studio and ultra-heavy language runtimes. The zen of a 10 line Makefile.

Re:Helix: a post-modern modal text editor by zozbot234 on Tuesday June 01, 2021 @05:09PM (#27361324)
LSP and Tree-sitter seem to have the right approach, aiming to provide a standard layer that can support a wide variety of languages and ecosystems throughout. Language-agnostic tools can interoperate with this approach too but they only provide very basic features, not really enough to compare well with existing workflows.
Re:Helix: a post-modern modal text editor by linsomniac on Tuesday June 01, 2021 @06:23PM (#27362232)
Just this morning I upgraded to NeoVim 0.5 and set up TreeSitter and LSP with Lunar. I haven't had much time to play with it today, but it's looking good so far. https://github.com/ChristianChiarulli/LunarVim
Re:Helix: a post-modern modal text editor by rodgerd on Tuesday June 01, 2021 @06:09PM (#27362075)
LSP seems like a real blessing for editor authors, since "it can't do anything useful with my preferred programming language" has been a big lock-in.
Re:Helix: a post-modern modal text editor by xpe on Wednesday June 02, 2021 @07:22AM (#27367357)
?. This is a back handed compliment? Can you explain?
Re:Helix: a post-modern modal text editor by rodgerd on Thursday June 03, 2021 @10:23PM (#27389851)
If you're trying to get people to try your new editor, no matter how awesome the ideas that you're trying, you're going to lose a chunk of your audience if it doesn't support C syntax highlighting, a chunk if it doesn't support Python intellisense, and so on and so forth. You can have the best idea in the world, but people will play with it, and decide that they love it but can't use it for "real work" unless you slog through adding native support for a bunch of languages and runtimes/compiler suites.

That's a huge burden.

Now, if you implement LSP, you get "for free" support for C#, C, Python, Rust, etc etc. People can evaluate your editor on its merits as a text editor, not on whether you had the time and energy to add support for their favourite language.

Re:Helix: a post-modern modal text editor by rob74 on Wednesday June 02, 2021 @10:33AM (#27369146)
I guess he means that LSP (at least in theory) enables "simple" editors to offer features which in the past have been the domain of IDEs (code completion etc.), and for editors supporting LSP, the support for a given language will (again in theory) be as good in one editor as in the next one you might want to try out...
Re:Helix: a post-modern modal text editor by mraza007 on Tuesday June 01, 2021 @07:51PM (#27362978)
I totally agree with you !!! I think using visual studio code gives you everything out of the box like all these extensions just makes things very easier for you.

But learning tools such as vim and learning how to configure those really helps you get out of the comfort zone

I was a regular vscode user but after using vim my workflow really improved

I have nothing against vscode users but sometimes getting out of comfort zone really helps you

Re:Helix: a post-modern modal text editor by pjmlp on Wednesday June 02, 2021 @02:48AM (#27365702)
The 10 line Makefile doesn't do Smalltalk like development experience, nor is able to single step GPGPU shaders, do live editing of GUIs, graphical visualization of running tasks and threads, provide graphical architecture diagrams, correlate lines of code with the people that edited it and to which tickets the PR were made to.
Re:Helix: a post-modern modal text editor by MisterTea on Wednesday June 02, 2021 @10:34AM (#27369151)
Those are called tools. They can be separated. Not everything has to be a multi gigabyte monstrosity swiss army knife. You can think microsoft for gas lighting you into that line of thinking.
Re:Helix: a post-modern modal text editor by jcranmer on Wednesday June 02, 2021 @10:47AM (#27369306)
The problem with separating out tools is that the resulting tools tend not to work very well with each other and suffer as a result. I'll use gdb as an example: using it standalone means I can use whatever text editor I prefer to read the code, but now I'm forced to manually schlep between the debugger and the editor to do debugging: let me figure out what file I need to look at for this current function, and manually open it in the editor. Okay, now let me copy-paste this function name to break on. Oh, here's a value I want to inspect, let me go manually type this in. And constantly back and forth between the editor and the debugger.

Having the tools all work together in one environment is honestly a far superior experience than having each tool live in its own bubble and requiring you to do all the coordination work yourself, with all of the repetition and scope for mistypes in the process.

Re:Helix: a post-modern modal text editor by pjmlp on Wednesday June 02, 2021 @10:44AM (#27369262)
Tools work best when they are designed to work together.

Anything else is a klundge.

If I have to thank anyone, it is Xerox PARC, TI, Genera, Apple and Borland, long before Microsoft mattered at all.

Re:Helix: a post-modern modal text editor by HeavyStorm on Wednesday June 02, 2021 @11:08PM (#27376812)
I thank Microsoft for building tools that make my life easier and my work a delight.

Yours was a very ungrounded commentary.

Re:Helix: a post-modern modal text editor by majkinetor on Tuesday June 01, 2021 @04:49PM (#27361077)
Yeah, give me generics and a language to pipeline them into anything I want. Full stop. Let Harry Potter and his friends play with magic.
Re:Helix: a post-modern modal text editor by Scarbutt on Tuesday June 01, 2021 @05:34PM (#27361647)
Seems you are agreeing with GP.
Re:Helix: a post-modern modal text editor by kevincox on Tuesday June 01, 2021 @03:55PM (#27360359)
It is a chicken and egg problem though. The quality of the ecosystem can be improved with a really strong editor underneath. However bringing the ecosystem to the editor is incredibly hard.

I think vim is a messy pile of hacks, and I would love to see that changed. Neovim is nice with the extend and evolve approach but I'm always looking for something that can really provide a clean base for extensions to build on. (Yes ,yes, I know emacs is an editor-writing IDE)

On the other hand I see nothing about plugins here. I think the approach to extensions is a very important question to answer early on.

Re:Helix: a post-modern modal text editor by atweiden on Tuesday June 01, 2021 @05:53PM (#27361894)
If you like VSCode, you might be interested in Onivim — it’s a VSCode/Vim hybrid.
Re:Helix: a post-modern modal text editor by linsomniac on Tuesday June 01, 2021 @06:37PM (#27362366)
Not sure about OniVim1, but just last week I bought the OniVim2 Early Access license, after watching oni 1/2 for a few years. I will say that it seems a bit early, but it does look promising. For example: My main workstation loses syntax highlighting after I do two motion commands ("jj" or "Gk" for example).
Re:Helix: a post-modern modal text editor by zbaylin on Tuesday June 01, 2021 @07:57PM (#27363020)
Hey, Onivim contributor here. Thanks for the feedback! I will mention that syntax highlighting fixes are something we’re gonna be focusing on in the coming weeks/months so if you haven’t already, feel free to file an issue on GitHub (or comment on one that looks similar)!
Re:Helix: a post-modern modal text editor by kristiandupont on Wednesday June 02, 2021 @02:57AM (#27365768)
Onivim looks great! Does it/will it support remote development like VSCode? I do all my development on a virtual machine. I love everything about VSCode except for the vim plugin.
Re:Helix: a post-modern modal text editor by WiiManic on Wednesday June 02, 2021 @04:35AM (#27366345)
(Another dev here!)

Its a workflow we are looking into supporting, but its difficult. VSCode has extensions that are licenesed in a different way to the rest, which includes all the remote development ones (WSL/SSH/Docker).

Their license can be found on the marketplace, but broadly they can "only be used with Visual Studio Family products" (or something of similar wording, i.e. Code only, some are VS only). They are also fully closed source as well, the GH repos are just for issues.

So we'd like to support that sort of workflow, but it will mean more work on our end since we can't use that existing work due to the license.

Re:Helix: a post-modern modal text editor by pradn on Tuesday June 01, 2021 @04:17PM (#27360695)
How about Emacs in eVIl mode?
Re:Helix: a post-modern modal text editor by Koshkin on Tuesday June 01, 2021 @04:19PM (#27360727)
The worst of both worlds?
Re:Helix: a post-modern modal text editor by drums8787 on Tuesday June 01, 2021 @04:25PM (#27360805)
Nah, it's the best. A recent thread on this convinced me to try Doom Emacs. It's great and just doubled my nerd factor.
Re:Helix: a post-modern modal text editor by sph on Tuesday June 01, 2021 @05:01PM (#27361243)
Evil mode is better than VIM itself and a good editor for the Emacs operating system which previously lacked one.
Re:Helix: a post-modern modal text editor by alpaca128 on Tuesday June 01, 2021 @06:06PM (#27362051)
Many people constantly recommending Evil mode don't seem to get why some use Vim.

No, Evil mode is not better than Vim itself. For one it's slower, defining keybindings is much more verbose, everything outside the actual text file has completely different controls, and I lose most of the seamless interoperability with other terminal tools. And it runs within an environment that tries to be literally every text-related tool by itself, making it overly complicated in many aspects.

Re:Helix: a post-modern modal text editor by soraminazuki on Wednesday June 02, 2021 @05:52AM (#27366801)
> No, Evil mode is not better than Vim itself

Emacs provides a convincing Vim layer on top of a hackable LISP runtime. While there's not much point in trying to decide which one is "better," it's not an entirely unfounded point.

> For one it's slower

Could you be more specific? At least for me, there's no noticeable lag when using Evil mode.

> defining keybindings is much more verbose

This is why some use Vim? I don't see how this:

    (define-key evil-normal-state-map (kbd "w") 'some-function)
is any worse than this:

    nnoremap w :<C-u>call some-function()<CR>
I for one could care less about how keybindings are set, as it's just something that I write once in a config file and forget about.

> everything outside the actual text file has completely different controls

It's because Emacs is more of a runtime for elisp applications. As such, it makes sense to have different behaviors for each key depending on context. FWIW evil-collection does a pretty good job of making keybindings feel consistent outside of ordinary text buffers, so you won't have to fall back to Emacs keybindings these days.

> I lose most of the seamless interoperability with other terminal tools

This is plainly false. Shell interoperability in evil works exactly the same as in Vim.

> overly complicated in many aspects

This doesn't mean much without specifics. Implementation complexity isn't inherently a bad thing as long as it provides value.

Besides, Emacs is a just a LISP interpreter at its core. If anything, it's easy for programmers to grasp and hack on.

Re:Helix: a post-modern modal text editor by jdiez17 on Wednesday June 02, 2021 @06:43AM (#27367100)
> Could you be more specific? At least for me, there's no noticeable lag when using Evil mode.

Long-time Vim user here. I tried switching to Doom Emacs for a few months. I really, really wanted to like it. As a nerd, the infinite customizability is like catnip to me. It has a really mature plugin ecosystem and you can have a really comfy computing setup with magit, org mode, dired, mu4e, etc...

But Emacs is intrinsically slow as molasses. The nail in the coffin for me was the scrolling performance. And I don't mean line-by-line. Even going half a page, or a full page at a time, pegs a CPU core and there is noticeable latency. The Doom Emacs documentation straight up admits it [0]. They recommend crazy things like turning off line numbers. Even with newfangled native Elisp compiler, it doesn't come even close to vim on alacritty.

[0] https://github.com/hlissner/doom-emacs/blob/develop/docs/faq...

Re:Helix: a post-modern modal text editor by lelanthran on Wednesday June 02, 2021 @03:39PM (#27373064)
> But Emacs is intrinsically slow as molasses. The nail in the coffin for me was the scrolling performance.

Just to play devils advocate (in reality I'm a die-hard-never-use-anything-else vim user, and have been since 1996-ish), I did once manage to set up vim with so many highlighting and display options that I made my i7 crawl whenever I tried to scroll.

(The main thing that pegged the core to 100% was ':set cul' with ':set number' and various different syntax highlighting for numbers, highlighted numbers, highlighted line, syntax-highlighting within a highlighted-line, etc).

So, yeah, vim can be slow too if you nerdgasm all over the config :-)

Re:Helix: a post-modern modal text editor by soraminazuki on Wednesday June 02, 2021 @10:17AM (#27368968)
As an actual user of both editors, I have a hard time believing that scrolling performance between the two is different in a way that's recognizable. For both, scrolling is instantaneous unless

1. you spam the scroll key

2. you're viewing a exceptionally large buffer

3. syntax highlighting happens to perform badly on the buffer

4. some plugin is blocking the editor

For Vim, the forth situation has vastly improved with async APIs pioneered by Neovim, but it still can happen nonetheless.

As for the advice about turning off line numbers, that's just a micro-optimization. I've seen similar advice with Vim too. set nonumber nocursorline etc etc... I don't follow any of those overzealous optimization advice either on Vim or Emacs, and scrolling performance is just fine most of the time. Though for Vim, "set lazyredraw" did make a big difference in terms of scrolling performance, but that piece of advice isn't the sort that hampers usability so I don't think it really counts as an overzealous micro-optimization.

But back to Emacs, my view is that general editing performance is just fine. When you think about it, if general editing performance were noticeably horrid, that would be a deal breaker for pretty much everyone. It's mostly blocking operations that's causing problems, but that's a slightly different situation from Emacs being sluggish in general. Vim used to have this problem too up until a few years ago, but it ceased to be a major source of pain after plugins adopted async APIs. I just wish Emacs would follow suite.

Re:Helix: a post-modern modal text editor by pdimitar on Thursday June 03, 2021 @09:11AM (#27380738)
On a beefy (iMac Pro) macOS workstation Emacs 27.2 is often slow at scrolling, which is also admitted in various places -- it has to do with the more pixels, apparently. Regardless of the fact that this station can also play various games at 5K resolution fairly decently...

There are zero excuses for a widely used editor program to lag that badly in 2021, on very strong hardware nonetheless.

One "hack" I found is to have your font not contain emojis. That was literally the only thing that actually helped.

And Emacs itself isn't at fault that LSP does its thing in a synchronous manner in the same main UI thread and makes Emacs super slow. I know that. But I also know that NeoVIM does the same thing asynchronously and doesn't stutter.

Sadly I'll be done with Emacs soon. I like it quite a lot but I'm not seeing any will to make it adequately fast or, at the very least, make it so its main UI thread can't be blocked.

This sends a message to me that the maintainers are using Emacs in a specific way and don't care about how others are using it. Which means that it's time to part ways.

Re:Helix: a post-modern modal text editor by 1_player on Wednesday June 02, 2021 @02:20PM (#27372125)
Doom Emacs isn't Emacs. My handmade init.el was much lighter than Doom Emacs or Spacemacs ever where. Not really fair comparing a full blown setup with plugin with a barebones VIM one.
Re:Helix: a post-modern modal text editor by dhagz on Wednesday June 02, 2021 @09:11AM (#27368266)
I've been pretty happy with Emacs 27. I haven't noticed significant slowness with that version.
Re:Helix: a post-modern modal text editor by 1_player on Tuesday June 01, 2021 @06:41PM (#27362403)
> everything outside the actual text file has completely different controls

Not sure what you mean by this

> lose most of the seamless interoperability with other terminal tools

It's not like VIM is more or less interoperable than Emacs is with other shell tools. They live in their own space, you don't (often) pipe stuff in or out of it.

Though there's not much to read into my comment, it was an attempt of being witty, but evil mode is the best VIM implementation found in any editor and just for the fact that Elisp >> Vimscript, makes evil mode a better environment than VIM itself.

Re:Helix: a post-modern modal text editor by apocolyps6 on Tuesday June 01, 2021 @07:39PM (#27362866)
> They live in their own space, you don't (often) pipe stuff in or out of it.

Well that's not true at least for vim.

: read !FOO

will run the FOO command and read the results back into the current buffer. I usually search my codebase by reading the results of a grep into a temporary buffer and 'gf'ing to the appropriate file

Re:Helix: a post-modern modal text editor by soraminazuki on Wednesday June 02, 2021 @02:42AM (#27365649)
As a Vim user who uses Emacs for note taking, I can guarantee Evil mode does far better at emulating Vim than you give credit for. In fact, the example you provided works just as well with Evil. The only built-in editing command which I notice missing from Vim is reliable undo/redo, which is sadly a fundamental Emacs limitation and a deal breaker. Apart from that, it's remarkably well-made.
Re:Helix: a post-modern modal text editor by motform on Wednesday June 02, 2021 @02:57AM (#27365774)
Emacs 28 is finally adding modern undo-redo: http://git.savannah.gnu.org/cgit/emacs.git/commit/?id=2645ae...

Recent versions of evil have the option of choosing undo backend, and I have found the new buildin one impeccable thus far.

Re:Helix: a post-modern modal text editor by soraminazuki on Wednesday June 02, 2021 @10:35AM (#27369163)
My understanding is that it's still not as good as Vim's builtin undo though. Vim has a persistent undo tree that consistently works and doesn't confuse users. AFAIK the best attempt at it in Emacs is the undotree package, but it unfortunately has a reputation of being unreliable.
Re:Helix: a post-modern modal text editor by apocolyps6 on Thursday June 03, 2021 @05:43PM (#27387747)
I've made no statement about emacs or evil mode. I was just correcting the user I was responding to about vim having interoperability with the rest of unix
Re:Helix: a post-modern modal text editor by c2the3rd on Wednesday June 02, 2021 @01:21AM (#27365137)
C-u M-! does the exact same thing in Emacs.
Re:Helix: a post-modern modal text editor by flukus on Thursday June 03, 2021 @02:37AM (#27377900)
But that goes back to the original point they made, everything outside of the actual text editing and you're in EMACS land with all of it's controls. Even with something as complete as spacemacs, the default landing page when you open it has different key bindings.
Re:Helix: a post-modern modal text editor by lelanthran on Wednesday June 02, 2021 @03:42PM (#27373107)
> I usually search my codebase by reading the results of a grep into a temporary buffer and 'gf'ing to the appropriate file

I used to do that too, I now use the Ack plugin which is almost instantaneous on a codebase that grep used to take 2s-3s long to search. The speed isn't what matters though, it's the fact that Ack only searches source code, not all files so my results is less polluted with irrelevant matches.

Re:Helix: a post-modern modal text editor by apocolyps6 on Thursday June 03, 2021 @05:41PM (#27387720)
my grep of choice is `ag "searchterm" -G .py` or the like. I don't notice any delay, and I'm specifying the file extension
Re:Helix: a post-modern modal text editor by rhabarba on Wednesday June 02, 2021 @12:39AM (#27364908)
There isn’t much Vim can do which ed cannot, though.
Re:Helix: a post-modern modal text editor by gnubison on Friday June 04, 2021 @12:12AM (#27390465)
Except for some extra trivialities, like everything that isn't an ex command (and some that are).
Re:Helix: a post-modern modal text editor by umanwizard on Tuesday June 01, 2021 @09:56PM (#27363916)
> They live in their own space, you don't (often) pipe stuff in or out of it.

...huh? I pipe things into vim absolutely all the time.

I don’t mean to be rude but this is exactly the sort of thing OP meant by “people recommending evil don’t understand why people like vi(m)”.

    whatever_command | vim -
and edit the results as needed.
Re:Helix: a post-modern modal text editor by acomar on Wednesday June 02, 2021 @01:06AM (#27365049)
and in emacs you can just redirect the command output to a buffer. or honestly, 99% of the time, I don't even bother redirecting and muck with the output directly in the eshell buffer.
Re:Helix: a post-modern modal text editor by 1_player on Wednesday June 02, 2021 @03:22AM (#27365897)
No reason to be rude, I have used VIM for 15 years, I know how it works.

Yes you can pipe stuff in and out, you can do in Emacs as well.

My point being that VIM isn't better than Emacs on this aspect, and they're not like other shell tools where COMMON usage is by piping stuff in and out; they're not like cat, more, wc. They live in their own space.

Re:Helix: a post-modern modal text editor by tharne on Wednesday June 02, 2021 @10:25AM (#27369066)
This needs to be brought up more. The "emacs + evil" crowd tends to see vim as a set of ergonomic keybindings, but it's so much more. It's the "seamless interoperability with other terminal tools" alongside the keybindings and text-editing grammar that makes vim so powerful.
Re:Helix: a post-modern modal text editor by prussian on Tuesday June 01, 2021 @05:25PM (#27361533)
not sure about worse. enabling evil-ex-visual-char-range allows you to do things ex commands in (neo)vim cannot do. That is, run things like !rev on a visual select. in (neo)vim this reverses the whole line where with (evil-ex-visual-char-range t) enabled in evil does what I'd argue is expected, only reversing the string selected in visual mode.
Re:Helix: a post-modern modal text editor by gnubison on Tuesday June 01, 2021 @06:47PM (#27362443)
OTOH, Neovim lets you edit the ex command line; e.g. '!}' might expand to ':.,.+5!', which lets you execute any other ex command simply by deleting the '!'. They both have advantages, and I'm certainly not advocating that forcing ex commands to work on lines is the best idea.
Re:Helix: a post-modern modal text editor by samus on Wednesday June 02, 2021 @01:39AM (#27365254)
That would be... an editor with Emacs keybindings, extendable with Vimscript?
Re:Helix: a post-modern modal text editor by deviantfero on Tuesday June 01, 2021 @07:01PM (#27362570)
This could probably help you, it's my emacs setup for typescript, it works like a charm:

https://gist.github.com/deviantfero/45b9354b433f44450de51c82...

make sure you add `:ensure t` if you don't have it automatically set to true.

* web-mode for general html/css/typescript/javascript editing

* tide + company for autocompletion

* flycheck for eslint support

* prettier for auto format on save if configuration is present

lsp is good for many other languages, but for javascript/typescript it's just not there yet

Re:Helix: a post-modern modal text editor by Rapzid on Tuesday June 01, 2021 @04:26PM (#27360823)
> I'm keen to see something as novel as light table play out again

All these years and I was starting to believe I had imagined light table. How else could one explain no editors adopting inline, always-on evaluation?!

Re:Helix: a post-modern modal text editor by icholy on Tuesday June 01, 2021 @04:49PM (#27361081)
I think that Julia's Pluto notebooks are the closest realisation of that dream.
Re:Helix: a post-modern modal text editor by bjornjajayaja on Tuesday June 01, 2021 @07:42PM (#27362895)
VS code has nice features but man.. every time I close the editor an update gets applied. I uninstalled because of that.

Lately I prefer purpose built IDEs for whatever task is needed. I’m over with editor evangelism. :)

Funny thing is a lot of the features are... just like a file system or Perl script to rip through and replace strings.

Re:Helix: a post-modern modal text editor by lallysingh on Tuesday June 01, 2021 @08:20PM (#27363260)
I'm an emacser, but I disagree. Most editors are awful. IDE editors are generally poor (name it, I've probably tried it).

Large language ecosystems are only good when you don't need them. If they're just gravy, then life is good. If you need a lot of stuff to be moderately productive, that sucks.

LSP is the shining hope here, but you suddenly get into questions about your build environment, and that's another rabbit hole just to get decent completions.

Re:Helix: a post-modern modal text editor by FractalHQ on Tuesday June 01, 2021 @08:30PM (#27363330)
> Most editors are awful. IDE editors are generally poor (name it, I've probably tried it).

What’s awful about VSCode? Genuinely curious. I use it daily and enjoy it. I love all the extensions I have access to.

> If you need a lot of stuff to be moderately productive, that sucks.

I don’t see why I would ever not have access to my extensions, nor is it very difficult to copy-paste my extensions.json file to a new machine and press “install all”.

Re:Helix: a post-modern modal text editor by cnasc on Tuesday June 01, 2021 @08:42PM (#27363414)
> What’s awful about VSCode? Genuinely curious.

- palpably slow on a recent 16-inch high-specced MBP

- does a lot of extra distracting stuff that can’t be easily turned off (I know I opened a .java file, I don’t need you to open an extra tab that takes focus to tell me I don’t have a Java extension installed. I especially don’t need you to try and launch several Java-related daemons that you know I don’t have and then also put up some notifications about failure to find them)

Re:Helix: a post-modern modal text editor by lallysingh on Wednesday June 02, 2021 @08:09AM (#27367715)
VSCode is fine, not great. Nice scrollbar. Still rather mouse dependent, not enough keyboard navigation (e.g. for git, AFAICT), and tabbed layouts don't use large monitors well. I like many files visible at once to see context.

Re:extensions: great when they work well. But they tend to move fast, and come and go fast. That makes combinations of them brittle. If they're conveniences, that's no problem. But if they're necessary parts of my workflow, then life can suck.

Re:Helix: a post-modern modal text editor by gassiss on Wednesday June 02, 2021 @11:35PM (#27376965)
With regards to keyboard navigation it gets really good if you work for it (no harder than you would with an editor like EMACS or Vim).

I use vim extension which works well for editing the files themselves. Accessing pretty much almost anything else can be done using the command palete and you can manually assing keybinds to it as well.

Re:Helix: a post-modern modal text editor by lobocinza on Tuesday June 01, 2021 @11:45PM (#27364593)
While I generally agree some ecosystems may require an IDE (Java). Some may say that the ecosystem is the problem and not the lack of an IDE. And I would not disagree.
Re:Helix: a post-modern modal text editor by Buttons840 on Tuesday June 01, 2021 @10:43PM (#27364191)
I name Helix (since we're on the topic), what do you think about this Helix editor in comparison to Emacs?
Re:Helix: a post-modern modal text editor by xenodium on Wednesday June 02, 2021 @05:14AM (#27366561)
> I use emacs not because I'm a neckbeard, but because I can script it to do whatever the hell I like.

This. With some elisp knowledge, you can bend Emacs your way. No need to write full-blown packages. A function here and there can get ya very far. I wrote about this yesterday[1]

[1] https://xenodium.com/emacs-dwim-do-what-i-mean

Re:Helix: a post-modern modal text editor by TacticalCoder on Tuesday June 01, 2021 @04:20PM (#27360731)
> I still use nano as my default editor for commit messages.

You don't work with Git as a DVCS? Or you work with Git and Emacs but don't use Magit!?

Re:Helix: a post-modern modal text editor by ljm on Tuesday June 01, 2021 @04:45PM (#27361032)
I use magit extensively because it's an utter fucking marvel, but sometimes I'm in a shell without emacs open, or I have to run some internal tooling that wraps around git.

My point overall was that I see all of these as a collection of tools. Which one I choose depends a lot on context, and it's served me well to be baseline comfortable with all of them rather than depending too heavily on my emacs setup.

Re:Helix: a post-modern modal text editor by mijoharas on Tuesday June 01, 2021 @05:47PM (#27361814)
I'll admit to doing that. Command line git is baked into my muscle memory now.

(magit is brilliant, but for some reason it's never stuck with me, unless I want to interactively stage a few specific chunks, and then it's much nicer than using the cli).

Re:Helix: a post-modern modal text editor by m8s on Tuesday June 01, 2021 @03:55PM (#27360364)
Maybe I'm not the common use case, but when you say "because [Sublime] is that fast", what do you mean? Creating a new file in VSCode, for example, couldn't be any faster. Is it the case that you close VSCode often? Is it booting the application that is slow? This isn't criticism by the way, I'm genuinely curious since I hear this a lot.
Re:Helix: a post-modern modal text editor by robenkleene on Tuesday June 01, 2021 @04:03PM (#27360494)
VSCode is many times slower than most non-Electron apps, e.g., in the below examples it's 9 and 14 times slower:

1. It takes nine times as long as Vim to open a minified JavaScript file, and then format it with Prettier: https://twitter.com/robenkleene/status/1285631026648276993

2. It takes 14 times as long to open an empty text file than BBEdit: https://twitter.com/robenkleene/status/1257724392458661889

I'm just as surprised as you are that people do see it, that some people don't see it. I have no idea what the explanation is, but there's something radically different about me versus people who can tolerate VSCode's slowness (I'll use VSCode if I have to, but I'll avoid it if at all possible, just because it's slow).

Re:Helix: a post-modern modal text editor by floydnoel on Tuesday June 01, 2021 @04:18PM (#27360702)
I think what the poster you replied to may have been referring to is that the marginal cost once the editor is open is roughly zero. If VS Code is being used, a user can hit Ctrl/Cmd-N and have a new empty text field in no time. Similarly, opening a text file is so quick that I can't perceive any passing of time between clicking on it in the file tree and seeing the file open. Perhaps users with slower computers have a different experience?
Re:Helix: a post-modern modal text editor by robenkleene on Tuesday June 01, 2021 @04:29PM (#27360857)
The second example I posted, illustrating that VSCode is 14 times slower than BBEdit, was opening a file with VSCode already open (it's not obvious, but VSCode was already open in both recordings, so this difference has nothing to do with its launch time).

There's some truth to your comment though, in that VSCode's optimizations are very on rails, i.e., if you go the slightest bit off the beaten path (like I opened a file from the Finder, instead of from the sidebar, in the BBEdit/VSCode video), then VSCode approach to optimization falls apart (you can find accounts of the tricks VSCode uses to appear fast online, there's a lot of smoke and mirrors based around specific workflows -- I think making a new tab is actually the example they use). It wouldn't surprise me if part of the reason I perceive it as so slow is I expect every feature to be fast, not just to most common ones. And I think this is a perfectly fair metric to measure by. Emacs, Vim, BBEdit, and Sublime Text are all fast at everything they do, therefore I think it's fair to call VSCode a slow editor, even if technically it's average for a couple of features.

Re:Helix: a post-modern modal text editor by alpaca128 on Tuesday June 01, 2021 @06:43PM (#27362418)
Often VS Code literally takes longer to process a single key input than Vim takes to start, load all plugins and open a session with multiple files on my machine.

Granted, it's not a high-end workstation, just a laptop from 2016. But I don't think it's slow; when Vim first released it could have beaten the fastest supercomputer. Now of course that's a matter of perspective, but I hope I'm not the only one who thinks editing a package.json shouldn't make any modern PC sweat.

Re:Helix: a post-modern modal text editor by wruza on Tuesday June 01, 2021 @08:19PM (#27363246)
Can’t speak for everyone, but 1,2 aren’t operations that I do hundreds of times a day even remotely. Otoh, I can see the difference^ in scrolling highlighted text between my 6600 and 8700 boxes in vim (which is my main tool; tried and ditched vscode for many reasons but speed, which is fine at both boxes). Maybe I could see that if I looked for it, but it’s not of any import.

^ not just slower, vim annoyingly skips scroll events if they arrive too fast. My system is configured for 6-7 lines per WM_SCROLL, and I guess that adds to the problem. As a result I have to scroll slower (at 6600 box) for vim to scroll faster.

On editors in general: I’d like to have an editor as a library for which I could create modes/cli/behaviors myself. I believe that the sharpest tool is the one you sharpened yourself and for basic editing there is notepad2 and alikes. Vscode is much closer to that, but it’s too cumbersome to create/update personal extensions, so dumb vim hacks be it.

Re:Helix: a post-modern modal text editor by acomar on Wednesday June 02, 2021 @01:14AM (#27365098)
> On editors in general: I’d like to have an editor as a library for which I could create modes/cli/behaviors myself.

this is what emacs is and what makes everything else feel so poor by contrast.

Re:Helix: a post-modern modal text editor by mariusor on Wednesday June 02, 2021 @03:08AM (#27365829)
> I’d like to have an editor as a library for which I could create modes/cli/behaviors myself

I think 4coder[1] might be close to what you want. It's been popularized by being used in the HandMade Hero streams.

[1] https://4coder.itch.io/4coder

Re:Helix: a post-modern modal text editor by treeman79 on Tuesday June 01, 2021 @05:17PM (#27361430)
I’m looking for jumping to definitions, etc. In a dynamic language. ruby.

In IntelliJ command B will take me where something is defied, be it system library or in code base. Not perfect but close.

I’ve not had luck getting vim to do this.

Re:Helix: a post-modern modal text editor by robenkleene on Tuesday June 01, 2021 @05:48PM (#27361831)
Vim has supported jump to definition via `ctags` for decades, works great for Ruby. Here's a tutorial from ThoughtBot (https://thoughtbot.com/upcase/videos/intelligent-navigation-...).

Vim also supports the same LSP implementations that VSCode uses via Coc.nvim (https://github.com/neoclide/coc.nvim), which provides the same code navigation features that VSCode has, including jump to definition.

Re:Helix: a post-modern modal text editor by Koshkin on Tuesday June 01, 2021 @04:22PM (#27360761)
Eats memory, too... Eight Gigabytes And Constantly Swapping!
Re:Helix: a post-modern modal text editor by debaserab2 on Tuesday June 01, 2021 @05:45PM (#27361787)
I still prefer sublime text for opening very large files or jotting quick notes.

VSCode load times are heavily correlated to what files I had open last and what extensions I have installed that trigger because of my previously opened files.

When I freshly install VSCode on a machine, it feels blazingly fast. A couple months later when I've loaded up a few linting extensions? Not so much. Of course, the power of these extensions is why I'm using VSCode in the first place. I've yet to see an IDE that can integrate these types of features and not slow-down in some aspect, and VSCode does seem to try to stay as lightweight as possible.

VScode also often has notification prompts when I open it, either from extensions, or as popups generated from the editor itself. This doesn't add load time perse, but it does add to my mental perception of it's load time.

Re:Helix: a post-modern modal text editor by ljm on Tuesday June 01, 2021 @04:52PM (#27361118)
I can open and close an instance of sublime whenever I need to, without having to keep it running somewhere. I'll only use it for tweaking the odd file here and there when I'm in Windows.

I also literally only use VSCode when I have to work with Typescript.

Re:Helix: a post-modern modal text editor by dataflow on Tuesday June 01, 2021 @04:27PM (#27360844)
> On the flip side, I use sublime text as a notepad replacement because it's that fast.

Try SciTE if you want something super lightweight!

Re:Helix: a post-modern modal text editor by mypalmike on Wednesday June 02, 2021 @12:56AM (#27364990)
In case you didn't know, you can reasonably use sublime text for commit messages by making your editor "subl -w".
Re:Helix: a post-modern modal text editor by zygy on Tuesday June 01, 2021 @03:53PM (#27360330)
Re:Helix: a post-modern modal text editor by thomasahle on Tuesday June 01, 2021 @05:47PM (#27361806)
It's interesting he values company management so much. What's stopping Microsoft from one day abandoning VS Code, like Atom was abandoned? Is Microsoft even making any money from it?
Re:Helix: a post-modern modal text editor by hizanberg on Tuesday June 01, 2021 @11:12PM (#27364382)
It’s a play for dev mindshare where they get to control the platform and have access to devs using their software, they have no intentions of making money from it directly only to maximize its appeal & marketshare. It’s a cross-platform dev environment they can easily deliver extensions to connect to their commercial products.

There’s no point in them continuing to invest in fragmenting the dev community by developing 2 competing platforms now that they own GitHub so I’m not expecting to see any increased investments in Atom.

Re:Helix: a post-modern modal text editor by azalemeth on Wednesday June 02, 2021 @02:44AM (#27365667)
I didn't know atom was abandoned. That's sad. Do you mind linking to a release that states that officially?

For me, plain vim is a great thing. My computer is hot enough without another electron app, and for that reason I've never tried VSCode (ium) -- I feel there is a vast amount I still have left to learn in vim, and although I've been using it for >10 years, I'm far from an advanced user. It just works, is fast, and matches my brain.

Microsoft also has a very, very long way to win back my headspace. I take it this new editor -- which I will give a quick go to -- doesn't come with telemetry and nonfree core code, for example.

Re:Helix: a post-modern modal text editor by torh on Wednesday June 02, 2021 @04:49AM (#27366417)
I'm looking at the graph, and in 2019 the text editor popularity combined was a whooping 117%!