My mods of a post-modern modal text editor.
Go to file
Pascal Kuthe 38ee845b05 don't overload LS with completion resolve requests
While moving completion resolve to the event system in #9668 we introduced what
is essentially a "DOS attack" on slow LSPs. Completion resolve requests were
made in the render loop and debounced with a timeout. Once the timeout expired
the resolve request was made. The problem is the next frame would immediately
request a new completion resolve request (and mark the old one as obsolete but
because LSP has no notion of cancelation the server would still process it). So
we were in essence sending one completion request to the server every 150ms and
only stopped if the server managed to respond before we rendered a new frame.
This caused overload on slower machines/with slower LS.

In this PR I revamped the resolve handler so that a request is only ever
resolved once. Both by checking if a request is already in-flight and by marking
failed resolve requests as resolved.
2024-04-22 12:27:47 +09:00
.cargo Add hook/event system 2024-01-23 11:20:19 +09:00
.github build(deps): bump peaceiris/actions-mdbook from 1 to 2 (#10314) 2024-04-09 09:41:41 +09:00
book Update lang-support.md for new wiki page name (#10508) 2024-04-19 10:26:04 +09:00
contrib Make Helix.appdata.xml spec-compliant (#10051) 2024-03-30 19:51:46 +01:00
docs use workspace inheritance for common version (#8925) 2023-12-05 10:54:18 +09:00
helix-core use newtype parttern for langauge server id 2024-04-22 12:27:47 +09:00
helix-dap remove redundant imports (#10154) 2024-04-04 23:28:44 +09:00
helix-event build(deps): bump ahash from 0.8.9 to 0.8.11 (#9813) 2024-03-06 11:09:13 +09:00
helix-loader typofix (#10125) 2024-04-03 23:05:48 +09:00
helix-lsp don't overload LS with completion resolve requests 2024-04-22 12:27:47 +09:00
helix-parsec use workspace inheritance for common version (#8925) 2023-12-05 10:54:18 +09:00
helix-stdx don't manually grapheme align ts highlights (#10310) 2024-04-11 00:14:08 +09:00
helix-term don't overload LS with completion resolve requests 2024-04-22 12:27:47 +09:00
helix-tui Override crossterm's support for NO_COLOR. (#10514) 2024-04-20 10:19:12 +09:00
helix-vcs Update gix to version 0.62 (#10451) 2024-04-15 14:44:00 -05:00
helix-view use newtype parttern for langauge server id 2024-04-22 12:27:47 +09:00
runtime feat(themes): jump-label for modus themes (#10538) 2024-04-21 09:42:50 -05:00
xtask chore: remove unused xtask themelint (#10294) 2024-04-08 18:15:31 +02:00
.envrc direnv: Watch the rust-toolchain file (#8921) 2023-11-29 11:01:12 +09:00
.gitattributes Add .gitattributes (#3318) 2022-08-03 08:21:51 -05:00
.gitignore Remove vale from .gitignore 2022-07-26 10:22:28 +09:00
base16_theme.toml feat(themes): add ui.virtual.ruler for base16_default 2024-04-18 11:50:23 -04:00
Cargo.lock use newtype parttern for langauge server id 2024-04-22 12:27:47 +09:00
Cargo.toml use newtype parttern for langauge server id 2024-04-22 12:27:47 +09:00
CHANGELOG.md typo (#10060) 2024-03-31 13:59:46 +02:00
default.nix build(nix): update flake deps, add default.nix file 2022-06-21 17:39:30 -05:00
flake.lock flake.lock: Bump flake inputs to prevent a warning message (#9816) 2024-03-06 00:00:34 +09:00
flake.nix Fix version of Nix package (#9013) 2023-12-09 03:04:09 +09:00
grammars.nix Make nix flake respect unused grammars (#9326) 2024-01-14 15:11:40 +01:00
languages.toml feat: update bash grammar to latest tree-sitter-bash rev (#10526) 2024-04-20 07:41:55 -05:00
LICENSE Add the LICENSE file. 2021-05-11 01:44:00 +09:00
logo.svg Reduce logo sizes even more (#9211) 2024-01-02 23:16:37 +01:00
logo_dark.svg Reduce logo sizes even more (#9211) 2024-01-02 23:16:37 +01:00
logo_light.svg Reduce logo sizes even more (#9211) 2024-01-02 23:16:37 +01:00
README.md Update README.md to add link to Kakoune and Neovim (#9119) 2023-12-19 15:50:39 +01:00
rust-toolchain.toml bump MSRV to 1.70.0 (#8877) 2023-11-25 13:55:49 +01:00
rustfmt.toml Add rustfmt.toml to force formatting to use rustfmt defaults 2021-07-23 18:11:22 +09:00
screenshot.png update screenshot (#1879) 2022-03-30 00:16:57 +09:00
shell.nix build(nix): update flake deps, add default.nix file 2022-06-21 17:39:30 -05:00
theme.toml fix(themes): correct typo in theme.toml 2024-04-18 11:50:23 -04:00

Helix

Build status GitHub Release Documentation GitHub contributors Matrix Space

Screenshot

A Kakoune / Neovim inspired editor, written in Rust.

The editing model is very heavily based on Kakoune; during development I found myself agreeing with most of Kakoune's design decisions.

For more information, see the website or documentation.

All shortcuts/keymaps can be found in the documentation on the website.

Troubleshooting

Features

  • Vim-like modal editing
  • Multiple selections
  • Built-in language server support
  • Smart, incremental syntax highlighting and code editing via tree-sitter

It's a terminal-based editor first, but I'd like to explore a custom renderer (similar to Emacs) in wgpu or skulpin.

Note: Only certain languages have indentation definitions at the moment. Check runtime/queries/<lang>/ for indents.scm.

Installation

Installation documentation.

Packaging status

Contributing

Contributing guidelines can be found here.

Getting help

Your question might already be answered on the FAQ.

Discuss the project on the community Matrix Space (make sure to join #helix-editor:matrix.org if you're on a client that doesn't support Matrix Spaces yet).

Credits

Thanks to @jakenvac for designing the logo!