Add buffer_editor example with arguments in config nu --doc (#15122)

Counterpart to https://github.com/nushell/nushell.github.io/pull/1810 -
Adds an example to the `config nu --doc` for using a `buffer_editor`
with arguments.

Closes https://github.com/nushell/nushell.github.io/issues/1660 and
resolves the main issue in #14893, but we'll leave it open based on
[this
suggestion](https://github.com/nushell/nushell/issues/14893#issuecomment-2607670442)
This commit is contained in:
Douglas 2025-02-14 18:51:54 -05:00 committed by GitHub
parent fb7b0a8c11
commit 2cb059146b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -97,6 +97,8 @@ $env.config.edit_mode = "emacs"
# Tip: Set to "editor" to use the default editor on Unix platforms using
# the Alternatives system or equivalent
$env.config.buffer_editor = "editor"
# To set arguments for the editor, a list can be used:
$env.config.buffer_editor = ["emacsclient", "-s", "light", "-t"]
# cursor_shape_* (string)
# -----------------------