mirror of
https://github.com/nushell/nushell
synced 2024-12-29 06:23:11 +00:00
80a183dde2
# Description This merges @horasal 's changes from #10246 and #10269 Closes #10205 Closes #8714 Fixes the bug that editor paths with spaces are unusable Closes #10210 Closes #10269 # User-Facing Changes You can now either pass a string with the name of the executable or a list with the executable and any flags to `$env.config.buffer_editor`/`$env.EDITOR`/`$env.VISUAL` Both the external buffer editor of reedline (by default bound to `Ctrl-o`) and the commands `config nu` and `config env` will respect those variables in the following order: 1. `$env.config.buffer_editor` 2. `$env.EDITOR` 3. `$env.VISUAL` Example: ``` $env.EDITOR = "nvim" # The system-wide EDITOR is neovim $env.config.buffer_editor = ["vim" "-p2"] # Force vim to open two tabs (not particularly useful) $env.config.buffer_editor = null # Unset `buffer_editor` -> Uses `$env.EDITOR` ergo nvim ``` # Tests + Formatting None --------- Co-authored-by: Horasal <1991933+horasal@users.noreply.github.com>
44 lines
1.4 KiB
TOML
44 lines
1.4 KiB
TOML
[package]
|
|
authors = ["The Nushell Project Developers"]
|
|
description = "CLI-related functionality for Nushell"
|
|
repository = "https://github.com/nushell/nushell/tree/main/crates/nu-cli"
|
|
edition = "2021"
|
|
license = "MIT"
|
|
name = "nu-cli"
|
|
version = "0.85.1"
|
|
|
|
[lib]
|
|
bench = false
|
|
|
|
[dev-dependencies]
|
|
nu-cmd-lang = { path = "../nu-cmd-lang", version = "0.85.1" }
|
|
nu-command = { path = "../nu-command", version = "0.85.1" }
|
|
nu-test-support = { path = "../nu-test-support", version = "0.85.1" }
|
|
rstest = { version = "0.18.1", default-features = false }
|
|
|
|
[dependencies]
|
|
nu-cmd-base = { path = "../nu-cmd-base", version = "0.85.1" }
|
|
nu-engine = { path = "../nu-engine", version = "0.85.1" }
|
|
nu-path = { path = "../nu-path", version = "0.85.1" }
|
|
nu-parser = { path = "../nu-parser", version = "0.85.1" }
|
|
nu-protocol = { path = "../nu-protocol", version = "0.85.1" }
|
|
nu-utils = { path = "../nu-utils", version = "0.85.1" }
|
|
nu-color-config = { path = "../nu-color-config", version = "0.85.1" }
|
|
nu-ansi-term = "0.49.0"
|
|
reedline = { version = "0.24.0", features = ["bashisms", "sqlite"] }
|
|
|
|
chrono = { default-features = false, features = ["std"], version = "0.4" }
|
|
crossterm = "0.27"
|
|
fancy-regex = "0.11"
|
|
fuzzy-matcher = "0.3"
|
|
is_executable = "1.0"
|
|
log = "0.4"
|
|
miette = { version = "5.10", features = ["fancy-no-backtrace"] }
|
|
once_cell = "1.18"
|
|
percent-encoding = "2"
|
|
sysinfo = "0.29"
|
|
unicode-segmentation = "1.10"
|
|
uuid = { version = "1.4.1", features = ["v4"] }
|
|
|
|
[features]
|
|
plugin = []
|