My mods of a post-modern modal text editor.
Find a file
Gabriel Hansson c1488267e5
(Updated) Apply motion API refinements (#6078)
* _apply_motion generalization where possible

API encourages users to not forget setting `editor.last_motion` when
applying a motion. But also not setting `last_motion` without applying a
motion first.

* (rename) will_find_char -> find_char

method name makes it sound like it would be returning a boolean.

* use _apply_motion in find_char

Feature that falls out from this is that repetitions of t,T,f,F are
saved with the context extention/move and count. (Not defaulting to extend
by 1 count).

* Finalize apply_motion API

last_motion is now a private field and can only be set by calling
Editor.apply_motion(). Removing need (and possibility) of writing:

`motion(editor); editor.last_motion = motion`

Now it's just: `editor.apply_motion(motion)`

* editor.last_message: rm Box wrap around Arc

* Use pre-existing `Direction` rather than custom `SearchDirection`.

* `LastMotion` type alias for `Option<Arc<dyn Fn(&mut Editor)>>`

* Take motion rather than cloning it.

Co-authored-by: Michael Davis <mcarsondavis@gmail.com>

* last_motion as Option<Motion>.

* Use `Box` over `Arc` for `last_motion`.

---------

Co-authored-by: Michael Davis <mcarsondavis@gmail.com>
2023-07-09 16:50:24 -04: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 21 to 22 (#7392) 2023-06-20 15:24:46 +02:00
book docs: Update mdBook theme and improve maintainability (#7524) 2023-07-09 19:20:38 +02:00
contrib Add 23.05 to the AppData 2023-05-18 16:01:26 +09:00
docs remove mention of Wasm from vision.md (#7395) 2023-06-19 23:10:50 -05:00
helix-core build(deps): bump indoc from 2.0.1 to 2.0.2 (#7529) 2023-07-04 02:13:58 +02:00
helix-dap Fix unwrap bug in DAP (#6786) 2023-04-17 15:36:04 -05:00
helix-loader Fix :log-open when --log is specified (#7573) 2023-07-09 16:35:07 +02:00
helix-lsp build(deps): bump tokio from 1.28.2 to 1.29.1 (#7528) 2023-07-04 02:13:39 +02:00
helix-parsec revamped snippet text element parsing 2023-03-16 15:46:08 +09:00
helix-term (Updated) Apply motion API refinements (#6078) 2023-07-09 16:50:24 -04: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.47.0 to 0.48.0 (#7531) 2023-07-04 03:06:16 +02:00
helix-view (Updated) Apply motion API refinements (#6078) 2023-07-09 16:50:24 -04:00
runtime Add language support for persistent library syntax (#7261) 2023-07-09 19:17:01 +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 docs: Update mdBook theme and improve maintainability (#7524) 2023-07-09 19:20:38 +02:00
base16_theme.toml Set ui.text.inactive for official themes 2022-12-17 13:59:05 -06:00
Cargo.lock build(deps): bump gix from 0.47.0 to 0.48.0 (#7531) 2023-07-04 03:06:16 +02: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 language support for persistent library syntax (#7261) 2023-07-09 19:17:01 +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!