mirror of
https://github.com/nushell/nushell
synced 2025-01-14 14:14:13 +00:00
parent
6efabef8d3
commit
3144dc7f93
2 changed files with 8 additions and 0 deletions
|
@ -568,6 +568,13 @@ pub async fn cli(
|
||||||
|
|
||||||
rl.set_edit_mode(edit_mode);
|
rl.set_edit_mode(edit_mode);
|
||||||
|
|
||||||
|
let max_history_size = config::config(Tag::unknown())?
|
||||||
|
.get("history_size")
|
||||||
|
.map(|i| i.value.expect_int())
|
||||||
|
.unwrap_or(100);
|
||||||
|
|
||||||
|
rl.set_max_history_size(max_history_size as usize);
|
||||||
|
|
||||||
let key_timeout = config::config(Tag::unknown())?
|
let key_timeout = config::config(Tag::unknown())?
|
||||||
.get("key_timeout")
|
.get("key_timeout")
|
||||||
.map(|s| s.value.expect_int())
|
.map(|s| s.value.expect_int())
|
||||||
|
|
|
@ -37,6 +37,7 @@ Syntax: `config {flags}`
|
||||||
| table_mode | "light" or other | enable lightweight or normal tables |
|
| table_mode | "light" or other | enable lightweight or normal tables |
|
||||||
| edit_mode | "vi" or "emacs" | changes line editing to "vi" or "emacs" mode |
|
| edit_mode | "vi" or "emacs" | changes line editing to "vi" or "emacs" mode |
|
||||||
| key_timeout | integer (milliseconds) | vi: the delay to wait for a longer key sequence after ESC |
|
| key_timeout | integer (milliseconds) | vi: the delay to wait for a longer key sequence after ESC |
|
||||||
|
| history_size | integer | maximum entries that will be stored in history (100 default) |
|
||||||
| completion_mode | "circular" or "list" | changes completion type to "circular" (default) or "list" mode |
|
| completion_mode | "circular" or "list" | changes completion type to "circular" (default) or "list" mode |
|
||||||
|
|
||||||
## Examples
|
## Examples
|
||||||
|
|
Loading…
Reference in a new issue