News for hackers. Stuff that matters.
Re:Helix: A Neovim inspired editor, written in Rust by luispauloml on Monday October 10, 2022 @02:32AM (#33148441)
>Those are by far the most important features for a text editor to have

I'd say that those features are useful for source code editing, not text in general.

Re:Helix: A Neovim inspired editor, written in Rust by Version467 on Monday October 10, 2022 @02:54AM (#33148548)
I'd say that has been true in the past (and is still mostly true today), but I think this will change in the future. I have been using lsp+treesitter for markdown editing and it's been an excellent experience. It's still early days, but with treesitter and lsp being as universal as they are I've been seeing a lot of people just experimenting with what's possible.

So yes, they are essential only for source code editing, but it's quite exciting to see what they can do for general text editing.

Re:Helix: A Neovim inspired editor, written in Rust by nine_k on Monday October 10, 2022 @03:40AM (#33148799)
I'm looking forward to seeing Org Mode implemented as a language server. It's unfortunate that such a great general text organization tool is locked into the relatively small Emacs user community.
Re:Helix: A Neovim inspired editor, written in Rust by medo-bear on Monday October 10, 2022 @04:34AM (#33149139)
orgmode is so not a markup language and cant be served via lsp. its a whole ecosystem built on top of emacs. short of rewriting it, implementing it fully in another editor would require a sort of virtual emacs machine running in the background
Re:Helix: A Neovim inspired editor, written in Rust by nine_k on Monday October 10, 2022 @02:20PM (#33154738)
Typescript or Rust are also not markup languages, and language servers for them allow for many interesting, non-trivial operations, so the model is capable.

Ergonomic keybindings would be a challenge though.

Re:Helix: A Neovim inspired editor, written in Rust by medo-bear on Monday October 10, 2022 @06:37PM (#33157208)
org-mode is more a program than a language. how would you implement org-capture or org-agenda through lsp?
Re:Helix: A Neovim inspired editor, written in Rust by b3morales on Monday October 10, 2022 @11:58AM (#33153034)
I am curious, what features does an LSP server provide for such a simple format as markdown?
Re:Helix: A Neovim inspired editor, written in Rust by Version467 on Tuesday October 11, 2022 @06:31AM (#33161600)
I'd say the most important thing is jumping to definitions. That's not terribly useful for standalone documents, but I use markdown for general note taking and it allows me to easily link other relevant notes. With that come a bunch of benefits, like autocomplete, finding all references, renaming/refactoring, hover preview, etc.

Other editors implement this specifically for markdown (i.e. Obsidian), but not needing to switch programs, as well as just having one set of motions/keyboard shortcuts has made a big difference in workflow for me. There are also a lot of other surprising benefits of treating raw text the same as code. I started using auto-completion with user defined snippets when writing Documentation (makes it much faster to integrate code blocks, tables, etc).

Many (if not all) of these things can be done in other ways, but I think it all just fits very well together and I enjoy that workflow tremendously.

Re:Helix: A Neovim inspired editor, written in Rust by p-e-w on Monday October 10, 2022 @03:35AM (#33148776)
LSP goes far beyond source code. It also covers an increasing number of markup and configuration languages, and there are even language servers for prose that perform grammar checking and offer style suggestions.
Re:Helix: A Neovim inspired editor, written in Rust by kazinator on Monday October 10, 2022 @05:10AM (#33149335)
Problem is, all of that sounds like a lot of crap to have running, and a lot of dependencies. That is not everyone's thing.

I like to be able to type "ps" and see one process for my editing session (with a low VM footprint in the low double digit megabytes at most, which had a startup time in the low hundreds of milliseconds.)