2020-05-20 11:14:51 +02:00
|
|
|
[package]
|
|
|
|
name = "helix-term"
|
2022-01-04 10:54:05 +01:00
|
|
|
version = "0.6.0"
|
2020-10-02 11:16:43 +02:00
|
|
|
description = "A post-modern text editor."
|
2020-05-20 11:14:51 +02:00
|
|
|
authors = ["Blaž Hrastnik <blaz@mxxn.io>"]
|
2021-10-22 05:07:41 +02:00
|
|
|
edition = "2021"
|
2021-05-10 18:42:34 +02:00
|
|
|
license = "MPL-2.0"
|
2021-06-18 16:41:03 +02:00
|
|
|
categories = ["editor", "command-line-utilities"]
|
|
|
|
repository = "https://github.com/helix-editor/helix"
|
|
|
|
homepage = "https://helix-editor.com"
|
2021-06-18 15:53:29 +02:00
|
|
|
include = ["src/**/*", "README.md"]
|
2021-12-10 03:04:31 +01:00
|
|
|
default-run = "hx"
|
2023-03-04 21:53:54 +01:00
|
|
|
rust-version = "1.65"
|
2020-05-20 11:14:51 +02:00
|
|
|
|
2021-06-03 22:46:56 +02:00
|
|
|
[features]
|
2022-12-01 09:35:23 +01:00
|
|
|
default = ["git"]
|
2022-03-17 02:52:14 +01:00
|
|
|
unicode-lines = ["helix-core/unicode-lines"]
|
2022-01-18 01:04:40 +01:00
|
|
|
integration = []
|
2022-12-01 09:35:23 +01:00
|
|
|
git = ["helix-vcs/git"]
|
2021-06-03 22:46:56 +02:00
|
|
|
|
2020-05-20 11:14:51 +02:00
|
|
|
[[bin]]
|
|
|
|
name = "hx"
|
|
|
|
path = "src/main.rs"
|
|
|
|
|
|
|
|
[dependencies]
|
2022-01-04 10:54:05 +01:00
|
|
|
helix-core = { version = "0.6", path = "../helix-core" }
|
|
|
|
helix-view = { version = "0.6", path = "../helix-view" }
|
|
|
|
helix-lsp = { version = "0.6", path = "../helix-lsp" }
|
2022-02-13 10:31:51 +01:00
|
|
|
helix-dap = { version = "0.6", path = "../helix-dap" }
|
2022-12-01 09:35:23 +01:00
|
|
|
helix-vcs = { version = "0.6", path = "../helix-vcs" }
|
2022-02-16 14:57:20 +01:00
|
|
|
helix-loader = { version = "0.6", path = "../helix-loader" }
|
2020-09-09 07:41:12 +02:00
|
|
|
|
2020-09-08 07:32:20 +02:00
|
|
|
anyhow = "1"
|
2023-01-03 04:07:25 +01:00
|
|
|
once_cell = "1.17"
|
2020-05-28 10:47:35 +02:00
|
|
|
|
2023-01-24 00:25:49 +01:00
|
|
|
which = "4.4"
|
2022-03-08 06:25:46 +01:00
|
|
|
|
2021-07-17 16:47:08 +02:00
|
|
|
tokio = { version = "1", features = ["rt", "rt-multi-thread", "io-util", "io-std", "time", "process", "macros", "fs", "parking_lot"] }
|
2021-05-09 10:52:55 +02:00
|
|
|
tui = { path = "../helix-tui", package = "helix-tui", default-features = false, features = ["crossterm"] }
|
2023-01-11 03:48:26 +01:00
|
|
|
crossterm = { version = "0.26", features = ["event-stream"] }
|
2021-07-17 16:47:08 +02:00
|
|
|
signal-hook = "0.3"
|
2021-08-21 16:21:35 +02:00
|
|
|
tokio-stream = "0.1"
|
2021-05-08 04:51:18 +02:00
|
|
|
futures-util = { version = "0.3", features = ["std", "async-await"], default-features = false }
|
2023-01-03 04:29:23 +01:00
|
|
|
arc-swap = { version = "1.6.0" }
|
2020-10-23 07:33:09 +02:00
|
|
|
|
|
|
|
# Logging
|
|
|
|
fern = "0.6"
|
2021-02-22 06:42:12 +01:00
|
|
|
chrono = { version = "0.4", default-features = false, features = ["clock"] }
|
2020-10-23 07:33:09 +02:00
|
|
|
log = "0.4"
|
2020-12-17 10:08:16 +01:00
|
|
|
|
|
|
|
# File picker
|
|
|
|
fuzzy-matcher = "0.3"
|
|
|
|
ignore = "0.4"
|
2021-03-05 08:07:46 +01:00
|
|
|
# markdown doc rendering
|
2022-01-18 02:41:44 +01:00
|
|
|
pulldown-cmark = { version = "0.9", default-features = false }
|
2021-11-04 04:24:52 +01:00
|
|
|
# file type detection
|
|
|
|
content_inspector = "0.2.4"
|
2021-03-25 07:26:25 +01:00
|
|
|
|
|
|
|
# config
|
2023-01-30 15:49:26 +01:00
|
|
|
toml = "0.7"
|
2021-03-26 08:02:13 +01:00
|
|
|
|
|
|
|
serde_json = "1.0"
|
|
|
|
serde = { version = "1.0", features = ["derive"] }
|
2021-07-17 16:47:08 +02:00
|
|
|
|
2021-09-21 18:03:12 +02:00
|
|
|
# ripgrep for global search
|
2023-03-07 02:18:28 +01:00
|
|
|
grep-regex = "0.1.11"
|
2023-03-07 01:18:45 +01:00
|
|
|
grep-searcher = "0.1.11"
|
2021-09-21 18:03:12 +02:00
|
|
|
|
2021-07-17 16:47:08 +02:00
|
|
|
[target.'cfg(not(windows))'.dependencies] # https://github.com/vorner/signal-hook/issues/100
|
|
|
|
signal-hook-tokio = { version = "0.3", features = ["futures-v0_3"] }
|
helix-term: send the STOP signal to all processes in the process group (#3546)
* 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 13:08:57 +01:00
|
|
|
libc = "0.2.132"
|
2022-02-21 13:39:23 +01:00
|
|
|
|
|
|
|
[build-dependencies]
|
|
|
|
helix-loader = { version = "0.6", path = "../helix-loader" }
|
2022-01-18 01:04:40 +01:00
|
|
|
|
|
|
|
[dev-dependencies]
|
2022-10-04 01:38:24 +02:00
|
|
|
smallvec = "1.10"
|
2023-01-31 00:47:30 +01:00
|
|
|
indoc = "2.0.0"
|
2023-02-28 02:24:06 +01:00
|
|
|
tempfile = "3.4.0"
|