From 796d4920ab52b34cc5ba5f60a60adc6454ad5951 Mon Sep 17 00:00:00 2001 From: Darren Schroeder <343840+fdncred@users.noreply.github.com> Date: Sun, 27 Feb 2022 16:03:21 -0600 Subject: [PATCH] add char separators (#4667) * add char separators * sir clipster * unclippy --- crates/nu-command/src/strings/char_.rs | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/crates/nu-command/src/strings/char_.rs b/crates/nu-command/src/strings/char_.rs index 5dcada6e95..a7e0458b7c 100644 --- a/crates/nu-command/src/strings/char_.rs +++ b/crates/nu-command/src/strings/char_.rs @@ -132,6 +132,20 @@ lazy_static! { // This is the "other" section "bel" => '\x07'.to_string(), // Terminal Bell "backspace" => '\x08'.to_string(), // Backspace + + // separators + "file_separator" => '\x1c'.to_string(), + "file_sep" => '\x1c'.to_string(), + "fs" => '\x1c'.to_string(), + "group_separator" => '\x1d'.to_string(), + "group_sep" => '\x1d'.to_string(), + "gs" => '\x1d'.to_string(), + "record_separator" => '\x1e'.to_string(), + "record_sep" => '\x1e'.to_string(), + "rs" => '\x1e'.to_string(), + "unit_separator" => '\x1f'.to_string(), + "unit_sep" => '\x1f'.to_string(), + "us" => '\x1f'.to_string(), }; }