From 2cb059146b0da8da96a16dfd10143dcfb3cae231 Mon Sep 17 00:00:00 2001 From: Douglas <32344964+NotTheDr01ds@users.noreply.github.com> Date: Fri, 14 Feb 2025 18:51:54 -0500 Subject: [PATCH] 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) --- crates/nu-utils/src/default_files/doc_config.nu | 2 ++ 1 file changed, 2 insertions(+) diff --git a/crates/nu-utils/src/default_files/doc_config.nu b/crates/nu-utils/src/default_files/doc_config.nu index 0486774894..b5817985e4 100644 --- a/crates/nu-utils/src/default_files/doc_config.nu +++ b/crates/nu-utils/src/default_files/doc_config.nu @@ -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) # -----------------------