mirror of
https://github.com/nushell/nushell.git
synced 2025-08-10 01:17:47 +02:00
support bracketed paste (#8907)
# Description Relative: #8113, #7630 It works on non-windows system This pr depends on https://github.com/nushell/reedline/pull/571
This commit is contained in:
@ -100,6 +100,7 @@ pub struct Config {
|
||||
pub enable_external_completion: bool,
|
||||
pub trim_strategy: TrimStrategy,
|
||||
pub show_banner: bool,
|
||||
pub bracketed_paste: bool,
|
||||
pub show_clickable_links_in_ls: bool,
|
||||
pub render_right_prompt_on_last_line: bool,
|
||||
pub explore: HashMap<String, Value>,
|
||||
@ -144,6 +145,7 @@ impl Default for Config {
|
||||
enable_external_completion: true,
|
||||
trim_strategy: TRIM_STRATEGY_DEFAULT,
|
||||
show_banner: true,
|
||||
bracketed_paste: true,
|
||||
show_clickable_links_in_ls: true,
|
||||
render_right_prompt_on_last_line: false,
|
||||
explore: HashMap::new(),
|
||||
@ -1212,6 +1214,9 @@ impl Value {
|
||||
"render_right_prompt_on_last_line" => {
|
||||
try_bool!(cols, vals, index, span, render_right_prompt_on_last_line);
|
||||
}
|
||||
"bracketed_paste" => {
|
||||
try_bool!(cols, vals, index, span, bracketed_paste);
|
||||
}
|
||||
// Legacy config options (deprecated as of 2022-11-02)
|
||||
// Legacy options do NOT reconstruct their values on error
|
||||
"use_ls_colors" => {
|
||||
|
Reference in New Issue
Block a user