Live data from Hacker News

Helix: Post-Modern Text Editor

helix-editor.com

71–80 of 169 posts

Re: Helix: Post-Modern Text Editor

#71
I quite like it. I use my own fork of it that introduces a few things that make it more familiar for vim users. It’s definitely different but a lot of it is better.

It’s the first editor I’m seriously giving a try as a hardcore, many years vim user.

If you want a more vim like behavior you can play with my patches: https://github.com/helix-editor/helix/pulls/mitsuhiko

Re: Helix: Post-Modern Text Editor

#72
post #69

Other than Kakoune, is there anything else in this vein? Preferably not written in Rust?

https://github.com/martanne/vis

Fascinating stuff, thanks for the link.

I found this quote from the page linked by that repo's README about what "structural regexps" are:

“The current UNIX® text processing tools are weakened by the built-in concept of a line. There is a simple notation that can describe the `shape' of files when the typical array-of-lines picture is inadequate. That notation is regular expressions. Using regular expressions to describe the structure in addition to the contents of files has interesting applications, and yields elegant methods for dealing with some problems the current tools handle clumsily. When operations using these expressions are composed, the result is reminiscent of shell pipelines.”

Seems like a rather insightful understanding and domain-widening effort when it comes to manipulating programs. I've always wanted something like paredit, but for everything else besides lisps.

Re: Helix: Post-Modern Text Editor

#73

Earlier quoted context omitted.

"Not written in Rust"? Is Rust at that level on the hype-curve by now? :-D

It's just notably bad for beginners, and getting worse all the time. I've been in software for over three decades and I haven't seen the obsession this bad since Java, which has apparently come a long way towards UX, and also didn't ever put out new BS every six weeks that I can recall. Rust on the other hand, is an absolute nightmare for beginners. I've spent a lot of time throughout my career working with non-progr…

I’m curious though how as a user of the editor the programming language even matters (beyond how complex it is to compile).

And if you do want to contribute I’m reasonably certain that helix by virtue of how it’s programmed is the easiest to contribute to I have come across.

Re: Helix: Post-Modern Text Editor

#74

Having to switch between "normal" and "insert" modes all the time is one of the things that turns me off from vi and its family tree, and is consequently something that turns me off of Helix, too. There are a lot of neat ideas here, though, and I wonder how many could be hacked into other editors like Emacs.

I’m the same way- my MacBook trackpad is closer to my fingers than the escape key! Not to mention, in VSCode I can do anything with the command palette with cmd+P without the need for separate modes and without the need to memorize a million shortcuts. If I know the first letter or two of the command, then it’s only 3 keystrokes away. For example, “Evaluate Math Expression” is “cmd+shift+p”+”ev”+”enter”. The command…

> If I know the first letter or two of the command, then it’s only 3 keystrokes away. For example, “Evaluate Math Expression” is “cmd+shift+p”+”ev”+”enter”. The command palette also provides great additional explorability with the fuzzy searchable menu + descriptions.

Similar deal for me in Emacs, especially with things like ivy or helm. Pretty much anything more complex than an existing keystroke is a simple M(eta)-x and a couple letters (and spaces for wildcards). My setup even extends that to search results, opening files, you name it.

Something like Vim or Helix could probably get most of the way there by defaulting to "insert" mode and having some keystroke like Esc or M-x to temporarily switch into a "command" mode.

Re: Helix: Post-Modern Text Editor

#75

Having to switch between "normal" and "insert" modes all the time is one of the things that turns me off from vi and its family tree, and is consequently something that turns me off of Helix, too. There are a lot of neat ideas here, though, and I wonder how many could be hacked into other editors like Emacs.

I’m the same way- my MacBook trackpad is closer to my fingers than the escape key! Not to mention, in VSCode I can do anything with the command palette with cmd+P without the need for separate modes and without the need to memorize a million shortcuts. If I know the first letter or two of the command, then it’s only 3 keystrokes away. For example, “Evaluate Math Expression” is “cmd+shift+p”+”ev”+”enter”. The command…

It is really great that your workflow works for you, and you enjoy working that way! It seems like you've spent time getting used to this workflow, and now get to reap the benefits.

Be careful though, just because you are used to doing something in a specific way, doesn't mean that your way of doing it is superior!

Re: Helix: Post-Modern Text Editor

#76

Earlier quoted context omitted.

"Not written in Rust"? Is Rust at that level on the hype-curve by now? :-D

It's just notably bad for beginners, and getting worse all the time. I've been in software for over three decades and I haven't seen the obsession this bad since Java, which has apparently come a long way towards UX, and also didn't ever put out new BS every six weeks that I can recall. Rust on the other hand, is an absolute nightmare for beginners. I've spent a lot of time throughout my career working with non-progr…

I don't think rust is particularly bad for beginners. It makes subtle bugs harder to write, so the bugs you get tend to be pretty straightforward and easy to diagnose.

There is obviously a bit of upfront investment, but it's comparable to most other languages (less than C++, for example). I have a much easier time writing rust than C, for example, and I'm a very mediocre programmer.

Re: Helix: Post-Modern Text Editor

#77
post #52
post #25

Earlier quoted context omitted.

Remap capslock to CTRL when held and ESC when tapped. Good idea for vim too

Looks interesting. I've always remapped capslock to CTRL myself, of course, but haven't thought of remapping tap-capslock to ESC. It looks like you need external software to do this though (like Karabiner Elements on mac, or xcape on linux, etc). (That being said, if you're used to jk/kj/fd/jj/jf, many years of muscle memory would still take a while to erase...)

Do it now and your only regret will be not doing it sooner :)

Re: Helix: Post-Modern Text Editor

#78

Earlier quoted context omitted.

"Not written in Rust"? Is Rust at that level on the hype-curve by now? :-D

It's just notably bad for beginners, and getting worse all the time. I've been in software for over three decades and I haven't seen the obsession this bad since Java, which has apparently come a long way towards UX, and also didn't ever put out new BS every six weeks that I can recall. Rust on the other hand, is an absolute nightmare for beginners. I've spent a lot of time throughout my career working with non-progr…

>new BS every six weeks

My project advances the state of the art, your project publishes updates, his project puts out new BS.[0]

Also, I'd like to know whoever's recommending Rust for _beginners_? Nobody should be doing that. Not even the most hardcore fan I know would push that.

[0]: https://en.wikipedia.org/wiki/Emotive_conjugation

Re: Helix: Post-Modern Text Editor

#79

Long-time Vim/NeoVim user here...about 20 or so years with it being my daily driver for the last 8. As soon as I found Helix, I was unsure whether it would become my new editor, but I've been using it every day for a few months and haven't really looked back. The only thing I still use Vim for is `vimdiff` with Git, but I don't think I need to, just been lazy about configuring Helix to do the same thing. Helix does e…

I am contributor to helix that is working on bringing diff functionality to helix. You can check the current progress on the first related PR on github (https://github.com/helix-editor/helix/pull/3890). The PR is pretty far along. A new gitoxide release is happening today and once that is out we will only be waiting for an upstream library to merge my fixes.

The machinery developed in that PR contains most of the heavy lifting for implementing a vimdiff tool. The only thing that is missing is support in the rendering system to display them. I will be collaborating with one of the maintainers to make that happen as well so we will get a diff mode in helix sooner rather then later.

Re: Helix: Post-Modern Text Editor

#80

Earlier quoted context omitted.

Emacs is under constant improvement and so are it’s many packages. Emacs looks like modern Emacs

Doom Emacs looks like modern Emacs.

Not a fan to be honest. I stick with vanilla so when it breaks I can read the manual. Although I know Doom works great and makes a lot of people happy, it doesn’t do anything you can’t do yourself by downloading packages and configuring them to your needs.
Post reply on HN