From 32f18536e1d88bb303a3c0968956ec06a0f03828 Mon Sep 17 00:00:00 2001 From: Darren Schroeder <343840+fdncred@users.noreply.github.com> Date: Mon, 6 Jul 2020 10:30:47 -0500 Subject: [PATCH] Add space to special prompt chars (#2122) So spaces don't have to be escaped with quotes in the config.toml --- crates/nu-cli/src/commands/char_.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/crates/nu-cli/src/commands/char_.rs b/crates/nu-cli/src/commands/char_.rs index 1b684437b7..91bc257cf8 100644 --- a/crates/nu-cli/src/commands/char_.rs +++ b/crates/nu-cli/src/commands/char_.rs @@ -64,6 +64,7 @@ fn str_to_character(s: &str) -> Option { match s { "newline" | "enter" | "nl" => Some("\n".into()), "tab" => Some("\t".into()), + "sp" | "space" => Some(" ".into()), // Unicode names came from https://www.compart.com/en/unicode // Private Use Area (U+E000-U+F8FF) "branch" => Some('\u{e0a0}'.to_string()), // 