My mods of a post-modern modal text editor.
Go to file
Gokul Soumya 40916dff63
Move FilePicker::render from Component impl to normal impl
Merges the code for the Picker and FilePicker into a single Picker that
can show a file preview if a preview callback is provided. This change
was mainly made to facilitate refactoring out a simple skeleton of a
picker that does not do any filtering to be reused in a normal Picker
and a DynamicPicker (see #5714; in particular [mikes-comment] and
[gokuls-comment]).

The crux of the issue is that a picker maintains a list of predefined
options (eg. list of files in the directory) and (re-)filters them every
time the picker prompt changes, while a dynamic picker (eg. interactive
global search, #4687) recalculates the full list of options on every
prompt change. Using a filtering picker to drive a dynamic picker hence
does duplicate work of filtering thousands of matches for no reason. It
could also cause problems like interfering with the regex pattern in the
global search.

I tried to directly extract a PickerBase to be reused in Picker and
FilePicker and DynamicPicker, but the problem is that DynamicPicker is
actually a DynamicFilePicker (i.e. it can preview file contents) which
means we would need PickerBase, Picker, FilePicker, DynamicPicker and
DynamicFilePicker and then another way of sharing the previewing code
between a FilePicker and a DynamicFilePicker. By merging Picker and
FilePicker into Picker, we only need PickerBase, Picker and
DynamicPicker.

[gokuls-comment]: https://github.com/helix-editor/helix/issues/5714#issuecomment-1410949578
[mikes-comment]: https://github.com/helix-editor/helix/issues/5714#issuecomment-1407451963
2023-06-18 11:34:13 -05:00
.cargo enable rendering in integration tests (#5819) 2023-02-04 13:20:23 -08:00
.github build(deps): bump cachix/install-nix-action from 20 to 21 (#7170) 2023-05-30 09:49:45 +09:00
book Add forth-lsp and update tree-sitter-forth (#7334) 2023-06-16 23:12:29 +02:00
contrib Add 23.05 to the AppData 2023-05-18 16:01:26 +09:00
docs misc doc fixes/improvements (#7282) 2023-06-08 13:27:58 +09:00
helix-core Add config for default line ending (#5621) 2023-06-16 12:02:15 -05:00
helix-dap Fix unwrap bug in DAP (#6786) 2023-04-17 15:36:04 -05:00
helix-loader build(deps): bump tempfile from 3.5.0 to 3.6.0 (#7326) 2023-06-13 09:51:34 +09:00
helix-lsp Rebase cleanup/fixes and use lsp::CompletionItem in item_to_transaction directly 2023-05-18 22:25:32 +02:00
helix-parsec revamped snippet text element parsing 2023-03-16 15:46:08 +09:00
helix-term Move FilePicker::render from Component impl to normal impl 2023-06-18 11:34:13 -05:00
helix-tui Fix style overwriting in table rows with multiple cells (#7281) 2023-06-08 13:28:26 +09:00
helix-vcs build(deps): bump gix from 0.44.1 to 0.46.0 (#7325) 2023-06-13 09:51:47 +09:00
helix-view Use default line ending in open command (#7357) 2023-06-17 14:36:36 -05:00
runtime Add forth-lsp and update tree-sitter-forth (#7334) 2023-06-16 23:12:29 +02:00
xtask Fix docgen again 2023-05-18 21:58:17 +02:00
.envrc Work around a nix-direnv issue 2022-02-25 18:01:47 +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
.ignore Add a .ignore file to make ripgrep more useful (#3315) 2022-08-03 09:00:39 -05:00
base16_theme.toml Set ui.text.inactive for official themes 2022-12-17 13:59:05 -06:00
Cargo.lock build(deps): bump libc from 0.2.145 to 0.2.146 (#7327) 2023-06-13 09:52:06 +09:00
Cargo.toml Update tree-sitter to v0.20.10 (#6608) 2023-04-06 12:29:17 +09:00
CHANGELOG.md misc doc fixes/improvements (#7282) 2023-06-08 13:27:58 +09:00
default.nix build(nix): update flake deps, add default.nix file 2022-06-21 17:39:30 -05:00
flake.lock nix: Update flake dependencies 2023-05-11 11:30:46 +09:00
flake.nix nix: add overlay for convenient package usage (#7078) 2023-05-19 22:21:05 +09:00
grammars.nix nix: replace runCommandNoCC with runCommand (#3992) 2022-09-27 08:01:58 -05:00
languages.toml Add forth-lsp and update tree-sitter-forth (#7334) 2023-06-16 23:12:29 +02:00
LICENSE Add the LICENSE file. 2021-05-11 01:44:00 +09:00
logo.svg Add the new logo! 2022-12-02 12:06:17 +09:00
logo_dark.svg Add logo with text included (#4973) 2022-12-03 11:05:15 +09:00
logo_light.svg Add logo with text included (#4973) 2022-12-03 11:05:15 +09:00
README.md Rewrite and refactor all documentation (#5534) 2023-03-06 18:27:17 +09:00
rust-toolchain.toml update MSRV to 1.65 2023-03-05 15:54:02 +09: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 feat(debug): highlight current line (#5957) 2023-03-29 12:52:19 +09:00
VERSION Bump the version to 23.05 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 @JakeHL for designing the logo!