No description
Find a file
Cole Helbling 34934733b3
helix-term: send the STOP signal to all processes in the process group ()
* helix-term: send the STOP signal to all processes in the process group

From kill(3p):

    If pid is 0, sig shall be sent to all processes (excluding an unspecified set
    of  system processes) whose process group ID is equal to the process group ID
    of the sender, and for which the process has permission to send a signal.

This fixes the issue of running `git commit`, attempting to suspend
helix with ^Z, and then not regaining control over the terminal and
having to press ^Z again.

* helix-term: use libc directly to send STOP signal

* helix-term: document safety of libc::kill

* helix-term: properly handle libc::kill's failure

I misread the manpage for POSIX `kill` -- it returns `-1` in
the failure case, and sets `errno`, which is retrieved via
`std::io::Error::last_os_error()`, has its string representation printed
out, and then exits with the matching status code (or 1 if, for whatever
reason, there is no matching status code).

* helix-term: expand upon why we need to SIGSTOP the entire process group

Also add a link back to one of the upstream issues.
2023-03-13 20:08:57 +08:00
.cargo
.github
book Theme onelight add inlay-hint () 2023-03-12 11:56:54 -05:00
contrib
docs Document how to run tests () 2023-03-11 08:03:19 -06:00
helix-core Test indentation level calculation () 2023-03-12 12:41:07 -05:00
helix-dap
helix-loader
helix-lsp LSP: No-op client/registerCapability requests () 2023-03-13 09:29:58 +09:00
helix-parsec
helix-term helix-term: send the STOP signal to all processes in the process group () 2023-03-13 20:08:57 +08:00
helix-tui tui: Log keyboard enhancement query time 2023-03-08 10:49:32 +09:00
helix-vcs Add a version-control statusline element () 2023-03-10 16:42:42 -06:00
helix-view Feat: LSP Type Hints () 2023-03-11 11:32:14 +09:00
runtime Autumn theme: add ui.virtual.inlay-hint config () 2023-03-12 11:59:09 -05:00
xtask
.envrc
.gitattributes Add .gitattributes () 2022-08-03 08:21:51 -05:00
.gitignore Remove vale from .gitignore 2022-07-26 10:22:28 +09:00
.ignore
base16_theme.toml
Cargo.lock helix-term: send the STOP signal to all processes in the process group () 2023-03-13 20:08:57 +08:00
Cargo.toml
CHANGELOG.md Add changelog notes for 22.12 () 2022-12-07 11:54:50 +09:00
default.nix
flake.lock build(nix): fix devshell 2023-02-25 07:06:30 +03:00
flake.nix
grammars.nix
languages.toml Feat: LSP Type Hints () 2023-03-11 11:32:14 +09:00
LICENSE Add the LICENSE file. 2021-05-11 01:44:00 +09:00
logo.svg
logo_dark.svg
logo_light.svg
README.md
rust-toolchain.toml
rustfmt.toml Add rustfmt.toml to force formatting to use rustfmt defaults 2021-07-23 18:11:22 +09:00
screenshot.png
shell.nix build(nix): update flake deps, add default.nix file 2022-06-21 17:39:30 -05:00
theme.toml
VERSION

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!