Michael Davis 48373d4a2b
Clear completion when switching windows via click (#8118)
The completion component assumes that it operates on the same View but
it's possible to break this assumption by switching windows through
left-clicking. I believe we should clear the completion menu when
switching windows to fix this.

This change fixes a panic for this scenario:

* Open a buffer with LSP completion available
* Split the window (for example '<C-w>v')
* Enter insert mode and trigger the completion menu
* Select a completion candidate (for example with '<C-n>')
* Switch to the original window by left-clicking in its area
* Enter insert mode and make edits (for example 'o<backspace>')

This will trip the 'assert_eq' in Document::restore.
2023-08-31 15:12:32 +09:00
2023-08-30 16:38:29 +09:00
2023-05-18 16:01:26 +09:00
2023-04-17 15:36:04 -05:00
2023-05-18 21:58:17 +02:00
2022-02-25 18:01:47 +09:00
2022-08-03 08:21:51 -05:00
2022-07-26 10:22:28 +09:00
2021-05-11 01:44:00 +09:00
2022-12-02 12:06:17 +09:00
2023-07-17 14:09:19 +09:00
2023-03-05 15:54:02 +09:00
2022-03-30 00:16:57 +09:00
2023-05-18 16:01:26 +09: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!

Description
A post-modern modal text editor.
Readme MPL-2.0 90 MiB
Languages
Rust 81.9%
Scheme 17.1%
Handlebars 0.4%
Nix 0.3%
CSS 0.1%