My mods of a post-modern modal text editor.
Find a file
Daniel Martí e7f25d88ca
Avoid extra indentation on Go switches (#6817)
Unlike other languages, in Go, switches themselves are not indented;
it's just each case body which is indented by one level:

   switch foo {
   case "bar":
      baz()
   }

As such, we shouldn't `@indent` for type_switch_statement nor
expression_switch_statement, as otherwise inserted lines show up as:

   switch foo {
      // inserted with "o"
   case "bar":
         // inserted with "o"
      baz()
   }

With the fix, the inserted lines are indented properly:

   switch foo {
   // inserted with "o"
   case "bar":
      // inserted with "o"
      baz()
   }

I also verified that indentation on selects similarly works well.

Thanks to Triton171 for helping with this fix.
2023-04-25 18:05:23 -05:00
.cargo enable rendering in integration tests (#5819) 2023-02-04 13:20:23 -08:00
.github Recursive create the pkgname directory when creating a release tarball 2023-04-03 10:54:57 +09:00
book make :u alias :update (#6835) 2023-04-23 04:07:34 +02:00
contrib Add changelog notes for the 23.03 release (#6455) 2023-03-31 15:21:05 +09:00
docs Document how to run tests (#6268) 2023-03-11 08:03:19 -06:00
helix-core build(deps): bump etcetera from 0.5.0 to 0.7.1 (#6873) 2023-04-25 11:52:17 +09:00
helix-dap Fix unwrap bug in DAP (#6786) 2023-04-17 15:36:04 -05:00
helix-loader build(deps): bump etcetera from 0.5.0 to 0.7.1 (#6873) 2023-04-25 11:52:17 +09:00
helix-lsp Fix typos (#6643) 2023-04-07 23:10:38 +08:00
helix-parsec revamped snippet text element parsing 2023-03-16 15:46:08 +09:00
helix-term Add extend_to_first_nonwhitespace (#6837) 2023-04-25 19:14:06 +02:00
helix-tui build(deps): bump bitflags from 2.1.0 to 2.2.1 (#6869) 2023-04-25 11:51:12 +09:00
helix-vcs update dependencies 2023-03-31 15:19:10 +09:00
helix-view build(deps): bump bitflags from 2.1.0 to 2.2.1 (#6869) 2023-04-25 11:51:12 +09:00
runtime Avoid extra indentation on Go switches (#6817) 2023-04-25 18:05:23 -05:00
xtask feat: lint for ui.virtual and catch present and future virtual based features (#6320) 2023-03-15 23:17:00 +09: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 etcetera from 0.5.0 to 0.7.1 (#6873) 2023-04-25 11:52:17 +09:00
Cargo.toml Update tree-sitter to v0.20.10 (#6608) 2023-04-06 12:29:17 +09:00
CHANGELOG.md changelog: Add remaining notes for 23.03 (#6498) 2023-04-01 12:10:41 +09:00
default.nix build(nix): update flake deps, add default.nix file 2022-06-21 17:39:30 -05:00
flake.lock build(nix): update flake dependencies, remove deprecated code from flake 2023-04-02 01:58:10 +03:00
flake.nix build(nix): update flake dependencies, remove deprecated code from flake 2023-04-02 01:58:10 +03:00
grammars.nix nix: replace runCommandNoCC with runCommand (#3992) 2022-09-27 08:01:58 -05:00
languages.toml Replace *.cabal in Haskell roots with cabal.project (#6828) 2023-04-21 12:51:17 +09: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 Add changelog notes for the 23.03 release (#6455) 2023-03-31 15:21:05 +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!