mirror of
https://github.com/nushell/nushell.git
synced 2025-08-17 03:01:15 +02:00
remove some old documentation, relocate others (#4726)
* remove some old documentation, relocate others * small tweak to default config
This commit is contained in:
@ -1,95 +0,0 @@
|
||||
filesize_format = "B" # can be b, kb, kib, mb, mib, gb, gib, etc
|
||||
filesize_metric = true # true => (KB, MB, GB), false => (KiB, MiB, GiB)
|
||||
skip_welcome_message = false # Note to nushell developer: This is expected to be false, when testing nushell itself
|
||||
disable_table_indexes = false
|
||||
nonzero_exit_errors = true
|
||||
startup = [
|
||||
"alias la = ls --all",
|
||||
"alias ll = ls --long",
|
||||
"def nudown [] {fetch https://api.github.com/repos/nushell/nushell/releases | get assets | select name download_count}",
|
||||
"def nuver [] {version | pivot key value}",
|
||||
]
|
||||
table_mode = "other" # basic, compact, compact_double, light, thin, with_love, rounded, reinforced, heavy, none, other
|
||||
plugin_dirs = ["D:\\Src\\GitHub\\nu-plugin-lib\\samples\\Nu.Plugin.Len\\bin\\Debug\\netcoreapp3.1"]
|
||||
pivot_mode = "auto" # auto, always, never
|
||||
ctrlc_exit = false
|
||||
complete_from_path = true
|
||||
rm_always_trash = true
|
||||
|
||||
[env]
|
||||
# nu now reads PROMPT_COMMAND env var instead of "prompt" config parameter
|
||||
# and if fails to parse it, it silently ignores it and uses default prompt
|
||||
PROMPT_COMMAND = "build-string (ansi gb) (pwd) (ansi reset) '(' (ansi cb) (do -i { git rev-parse --abbrev-ref HEAD } | str trim ) (ansi reset) ')' (char newline) (ansi yb) (date format '%m/%d/%Y %I:%M:%S%.3f %p') (ansi reset) '> ' "
|
||||
|
||||
# for each of the options in the color_config section, you are able to set
|
||||
# the color alone or with one of the following attributes.
|
||||
# color, abbreviation
|
||||
# green g
|
||||
# red r
|
||||
# blue u
|
||||
# black b
|
||||
# yellow y
|
||||
# purple p
|
||||
# cyan c
|
||||
# white w
|
||||
# attribute, abbreviation
|
||||
# bold b
|
||||
# underline u
|
||||
# italic i
|
||||
# dimmed d
|
||||
# reverse r
|
||||
# abbreviated: green bold = gb, red underline = ru, blue dimmed = ud
|
||||
# or verbose: green_bold, red_underline, blue_dimmed
|
||||
|
||||
[color_config]
|
||||
primitive_int = "green"
|
||||
primitive_decimal = "red"
|
||||
primitive_filesize = "ur"
|
||||
primitive_string = "pb"
|
||||
primitive_line = "yellow"
|
||||
primitive_columnpath = "cyan"
|
||||
primitive_pattern = "white"
|
||||
primitive_boolean = "green"
|
||||
primitive_date = "ru"
|
||||
primitive_duration = "blue"
|
||||
primitive_range = "purple"
|
||||
primitive_path = "yellow"
|
||||
primitive_binary = "cyan"
|
||||
separator_color = "purple"
|
||||
header_align = "l" # left|l, right|r, center|c
|
||||
header_color = "c" # green|g, red|r, blue|u, black|b, yellow|y, purple|p, cyan|c, white|w
|
||||
index_color = "rd"
|
||||
leading_trailing_space_bg = "white"
|
||||
|
||||
[line_editor]
|
||||
max_history_size = 100000
|
||||
history_duplicates = "ignoreconsecutive" # alwaysadd,ignoreconsecutive
|
||||
history_ignore_space = false
|
||||
completion_type = "circular" # circular, list, fuzzy
|
||||
completion_prompt_limit = 100
|
||||
keyseq_timeout_ms = 500 # ms
|
||||
edit_mode = "emacs" # vi, emacs
|
||||
auto_add_history = true
|
||||
bell_style = "audible" # audible, none, visible
|
||||
color_mode = "enabled" # enabled, forced, disabled
|
||||
tab_stop = 4
|
||||
|
||||
[textview]
|
||||
term_width = "default" # "default" or a number
|
||||
tab_width = 4
|
||||
colored_output = true
|
||||
true_color = true
|
||||
header = true
|
||||
line_numbers = true
|
||||
grid = false
|
||||
vcs_modification_markers = true
|
||||
snip = true
|
||||
wrapping_mode = "NoWrapping" # Character, NoWrapping
|
||||
use_italics = true
|
||||
paging_mode = "QuitIfOneScreen" # Always, QuitIfOneScreen, Never
|
||||
pager = "less"
|
||||
theme = "TwoDark"
|
||||
|
||||
# To add path and env do this
|
||||
# > config set path $nu.path
|
||||
# > config set env $nu.env
|
@ -112,7 +112,7 @@ extern "git push" [
|
||||
let default_theme = {
|
||||
# color for nushell primitives
|
||||
separator: white
|
||||
leading_trailing_space_bg: { attr: b }
|
||||
leading_trailing_space_bg: { attr: n } # no fg, no bg, attr non effectively turns this off
|
||||
header: green_bold
|
||||
empty: blue
|
||||
bool: white
|
||||
@ -198,7 +198,7 @@ let $config = {
|
||||
modifier: none
|
||||
keycode: tab
|
||||
mode: emacs # emacs vi_normal vi_insert
|
||||
event: {
|
||||
event: {
|
||||
until: [
|
||||
{ send: menu name: completion_menu }
|
||||
{ send: menunext }
|
||||
@ -217,7 +217,7 @@ let $config = {
|
||||
modifier: control
|
||||
keycode: char_x
|
||||
mode: emacs # emacs vi_normal vi_insert
|
||||
event: {
|
||||
event: {
|
||||
until: [
|
||||
{ send: menu name: history_menu }
|
||||
{ send: menupagenext }
|
||||
|
@ -1,440 +0,0 @@
|
||||
# These are the common keys acrosso modes taken directly from Rustyline. If
|
||||
# you want to change the keybinding you should change the letter after
|
||||
# "key:". If you want to change the modifier you should change or add the
|
||||
# modifier after "key:", such as:
|
||||
# key:
|
||||
# Char: A
|
||||
# modifiers:
|
||||
# CTRL:
|
||||
# binding:
|
||||
# blah:
|
||||
# Available modifiers are CTRL, ALT, SHIFT, NONE, CTRL_SHIFT,
|
||||
# ALT_SHIFT, CTRL_ALT, CTRL_ALT_SHIFT
|
||||
|
||||
##########################################################
|
||||
# Common From https://github.com/kkawakam/rustyline#actions
|
||||
##########################################################
|
||||
|
||||
# Control Backspace, delete 1 word at a time
|
||||
- key:
|
||||
Backspace:
|
||||
modifiers:
|
||||
CTRL:
|
||||
binding:
|
||||
Kill:
|
||||
BackwardWord:
|
||||
repeat: 1
|
||||
word: Big
|
||||
|
||||
# Alt Backspace, delete 1 word at a time
|
||||
- key:
|
||||
Backspace:
|
||||
modifiers:
|
||||
ALT:
|
||||
binding:
|
||||
Kill:
|
||||
BackwardWord:
|
||||
repeat: 1
|
||||
word: Big
|
||||
|
||||
# Move cursor to the beginning of line
|
||||
- key:
|
||||
Home:
|
||||
binding:
|
||||
Move: BeginningOfLine
|
||||
|
||||
# Move cursor to end of line
|
||||
- key:
|
||||
End:
|
||||
binding:
|
||||
Move: EndOfLine
|
||||
|
||||
# Move cursor one character left
|
||||
- key:
|
||||
Left: #Left Arrow Key
|
||||
binding:
|
||||
Move:
|
||||
BackwardChar: 1
|
||||
|
||||
# Move cursor one character right
|
||||
- key:
|
||||
Right: #Right Arrow Key
|
||||
binding:
|
||||
Move:
|
||||
ForwardChar: 1
|
||||
|
||||
# Complete Hint
|
||||
- key:
|
||||
Right:
|
||||
modifiers:
|
||||
SHIFT:
|
||||
binding:
|
||||
CompleteHint:
|
||||
- key:
|
||||
Char: F
|
||||
modifiers:
|
||||
CTRL:
|
||||
binding:
|
||||
CompleteHint:
|
||||
|
||||
# Interrupt/Cancel edition
|
||||
- key:
|
||||
Char: C
|
||||
modifiers:
|
||||
CTRL:
|
||||
binding:
|
||||
Interrupt:
|
||||
|
||||
# (if line is not empty) Delete character under cursor
|
||||
- key:
|
||||
Char: D
|
||||
modifiers:
|
||||
CTRL:
|
||||
binding:
|
||||
EndOfFile:
|
||||
|
||||
# Delete character under cursor
|
||||
- key:
|
||||
Delete:
|
||||
binding:
|
||||
Kill:
|
||||
ForwardChar: 1
|
||||
|
||||
# Finish the line entry
|
||||
- key:
|
||||
Char: J
|
||||
modifiers:
|
||||
CTRL:
|
||||
binding:
|
||||
AcceptLine:
|
||||
- key:
|
||||
Char: M
|
||||
modifiers:
|
||||
CTRL:
|
||||
binding:
|
||||
AcceptLine:
|
||||
|
||||
# This makes multiline editing stop working since Enter accepts a line
|
||||
# - key:
|
||||
# Enter:
|
||||
# binding:
|
||||
# AcceptLine:
|
||||
|
||||
# Next match from history
|
||||
- key:
|
||||
Down: #Down Arrow Key
|
||||
binding:
|
||||
LineDownOrNextHistory: 1
|
||||
|
||||
# Previous match from history
|
||||
- key:
|
||||
Up: #Up Arrow Key
|
||||
binding:
|
||||
LineUpOrPreviousHistory: 1
|
||||
|
||||
# Reverse Search history (Ctrl-S forward, Ctrl-G cancel)
|
||||
- key:
|
||||
Char: R
|
||||
modifiers:
|
||||
CTRL:
|
||||
binding:
|
||||
ReverseSearchHistory:
|
||||
|
||||
# Forward Search history (Ctrl-R backward, Ctrl-G cancel)
|
||||
- key:
|
||||
Char: S
|
||||
modifiers:
|
||||
CTRL:
|
||||
binding:
|
||||
ForwardSearchHistory:
|
||||
|
||||
# Transpose previous character with current character
|
||||
- key:
|
||||
Char: T
|
||||
modifiers:
|
||||
CTRL:
|
||||
binding:
|
||||
TransposeChars:
|
||||
|
||||
# Delete from start of line to cursor
|
||||
- key:
|
||||
Char: U
|
||||
modifiers:
|
||||
CTRL:
|
||||
binding:
|
||||
Kill: BeginningOfLine
|
||||
|
||||
# Insert any special character without performing its associated action (#65)
|
||||
- key:
|
||||
Char: Q
|
||||
modifiers:
|
||||
CTRL:
|
||||
binding:
|
||||
QuotedInsert:
|
||||
- key:
|
||||
Char: V
|
||||
modifiers:
|
||||
CTRL:
|
||||
binding:
|
||||
QuotedInsert:
|
||||
|
||||
# Delete word leading up to cursor (using white space as a word boundary)
|
||||
- key:
|
||||
Char: W
|
||||
modifiers:
|
||||
CTRL:
|
||||
binding:
|
||||
Kill:
|
||||
BackwardWord:
|
||||
repeat: 1
|
||||
word: Big
|
||||
|
||||
# Paste from Yank buffer
|
||||
- key:
|
||||
Char: Y
|
||||
modifiers:
|
||||
CTRL:
|
||||
binding:
|
||||
Yank:
|
||||
repeat: 1
|
||||
anchor: Before
|
||||
|
||||
# Suspend (Unix only)
|
||||
- key:
|
||||
Char: Z
|
||||
modifiers:
|
||||
CTRL:
|
||||
binding:
|
||||
Suspend:
|
||||
|
||||
# Undo
|
||||
- key:
|
||||
Char: "_"
|
||||
modifiers:
|
||||
CTRL:
|
||||
binding:
|
||||
Undo: 1
|
||||
|
||||
# KeyPress::UnknownEscSeq => Cmd::Noop,
|
||||
- key:
|
||||
UnknownEscSeq:
|
||||
binding:
|
||||
Noop:
|
||||
##########################################################
|
||||
# Possible options for key:
|
||||
##########################################################
|
||||
# /// Unsupported escape sequence (on unix platform)
|
||||
# UnknownEscSeq,
|
||||
# /// ⌫ or `KeyEvent::Ctrl('H')`
|
||||
# Backspace,
|
||||
# /// ⇤ (usually Shift-Tab)
|
||||
# BackTab,
|
||||
# /// Paste (on unix platform)
|
||||
# BracketedPasteStart,
|
||||
# /// Paste (on unix platform)
|
||||
# BracketedPasteEnd,
|
||||
# /// Single char
|
||||
# Char(char),
|
||||
# /// ⌦
|
||||
# Delete,
|
||||
# /// ↓ arrow key
|
||||
# Down,
|
||||
# /// ⇲
|
||||
# End,
|
||||
# /// ↵ or `KeyEvent::Ctrl('M')`
|
||||
# Enter,
|
||||
# /// Escape or `KeyEvent::Ctrl('[')`
|
||||
# Esc,
|
||||
# /// Function key
|
||||
# F(u8),
|
||||
# /// ⇱
|
||||
# Home,
|
||||
# /// Insert key
|
||||
# Insert,
|
||||
# /// ← arrow key
|
||||
# Left,
|
||||
# // /// `KeyEvent::Char('\0')`
|
||||
# Null,
|
||||
# /// ⇟
|
||||
# PageDown,
|
||||
# /// ⇞
|
||||
# PageUp,
|
||||
# /// → arrow key
|
||||
# Right,
|
||||
# /// ⇥ or `KeyEvent::Ctrl('I')`
|
||||
# Tab,
|
||||
# /// ↑ arrow key
|
||||
# Up,
|
||||
|
||||
##########################################################
|
||||
# Possible options for command binding
|
||||
##########################################################
|
||||
# /// abort
|
||||
# Abort, // Miscellaneous Command
|
||||
# /// accept-line
|
||||
# AcceptLine,
|
||||
# /// beginning-of-history
|
||||
# BeginningOfHistory,
|
||||
# /// capitalize-word
|
||||
# CapitalizeWord,
|
||||
# /// clear-screen
|
||||
# ClearScreen,
|
||||
# /// complete
|
||||
# Complete,
|
||||
# /// complete-backward
|
||||
# CompleteBackward,
|
||||
# /// complete-hint
|
||||
# CompleteHint,
|
||||
# /// Dedent current line
|
||||
# Dedent(Movement),
|
||||
# /// downcase-word
|
||||
# DowncaseWord,
|
||||
# /// vi-eof-maybe
|
||||
# EndOfFile,
|
||||
# /// end-of-history
|
||||
# EndOfHistory,
|
||||
# /// forward-search-history
|
||||
# ForwardSearchHistory,
|
||||
# /// history-search-backward
|
||||
# HistorySearchBackward,
|
||||
# /// history-search-forward
|
||||
# HistorySearchForward,
|
||||
# /// Indent current line
|
||||
# Indent(Movement),
|
||||
# /// Insert text
|
||||
# Insert { repeat: RepeatCount, string: String },
|
||||
# /// Interrupt signal (Ctrl-C)
|
||||
# Interrupt,
|
||||
# /// backward-delete-char, backward-kill-line, backward-kill-word
|
||||
# /// delete-char, kill-line, kill-word, unix-line-discard, unix-word-rubout,
|
||||
# /// vi-delete, vi-delete-to, vi-rubout
|
||||
# Kill(Movement),
|
||||
# /// backward-char, backward-word, beginning-of-line, end-of-line,
|
||||
# /// forward-char, forward-word, vi-char-search, vi-end-word, vi-next-word,
|
||||
# /// vi-prev-word
|
||||
# Move(Movement),
|
||||
# /// Inserts a newline
|
||||
# Newline,
|
||||
# /// next-history
|
||||
# NextHistory,
|
||||
# /// No action
|
||||
# Noop,
|
||||
# /// vi-replace
|
||||
# Overwrite(char),
|
||||
# /// Paste from the clipboard
|
||||
# #[cfg(windows)]
|
||||
# PasteFromClipboard,
|
||||
# /// previous-history
|
||||
# PreviousHistory,
|
||||
# /// quoted-insert
|
||||
# QuotedInsert,
|
||||
# /// vi-change-char
|
||||
# ReplaceChar { repeat: RepeatCount, ch: char },
|
||||
# /// vi-change-to, vi-substitute
|
||||
# Replace {
|
||||
# movement: Movement,
|
||||
# replacement: Option<String>,
|
||||
# },
|
||||
# /// reverse-search-history
|
||||
# ReverseSearchHistory,
|
||||
# /// self-insert
|
||||
# SelfInsert { repeat: RepeatCount, ch: char },
|
||||
# /// Suspend signal (Ctrl-Z on unix platform)
|
||||
# Suspend,
|
||||
# /// transpose-chars
|
||||
# TransposeChars,
|
||||
# /// transpose-words
|
||||
# TransposeWords(RepeatCount),
|
||||
# /// undo
|
||||
# Undo(RepeatCount),
|
||||
# /// Unsupported / unexpected
|
||||
# Unknown,
|
||||
# /// upcase-word
|
||||
# UpcaseWord,
|
||||
# /// vi-yank-to
|
||||
# ViYankTo(Movement),
|
||||
# /// yank, vi-put
|
||||
# Yank { repeat: RepeatCount, anchor: Anchor },
|
||||
# /// yank-pop
|
||||
# YankPop,
|
||||
# /// moves cursor to the line above or switches to prev history entry if
|
||||
# /// the cursor is already on the first line
|
||||
# LineUpOrPreviousHistory(RepeatCount),
|
||||
# /// moves cursor to the line below or switches to next history entry if
|
||||
# /// the cursor is already on the last line
|
||||
# LineDownOrNextHistory(RepeatCount),
|
||||
# /// accepts the line when cursor is at the end of the text (non including
|
||||
# /// trailing whitespace), inserts newline character otherwise
|
||||
# AcceptOrInsertLine,
|
||||
|
||||
##########################################################
|
||||
# Possible options for Word
|
||||
##########################################################
|
||||
# /// non-blanks characters
|
||||
# Big,
|
||||
# /// alphanumeric characters
|
||||
# Emacs,
|
||||
# /// alphanumeric (and '_') characters
|
||||
# Vi,
|
||||
|
||||
##########################################################
|
||||
# Possible options for At
|
||||
##########################################################
|
||||
# /// Start of word.
|
||||
# Start,
|
||||
# /// Before end of word.
|
||||
# BeforeEnd,
|
||||
# /// After end of word.
|
||||
# AfterEnd,
|
||||
|
||||
##########################################################
|
||||
# Possible options for Anchor
|
||||
##########################################################
|
||||
# /// After cursor
|
||||
# After,
|
||||
# /// Before cursor
|
||||
# Before,
|
||||
|
||||
##########################################################
|
||||
# Possible options for CharSearch
|
||||
##########################################################
|
||||
# /// Forward search
|
||||
# Forward(char),
|
||||
# /// Forward search until
|
||||
# ForwardBefore(char),
|
||||
# /// Backward search
|
||||
# Backward(char),
|
||||
# /// Backward search until
|
||||
# BackwardAfter(char),
|
||||
|
||||
##########################################################
|
||||
# Possible options for Movement
|
||||
##########################################################
|
||||
# /// Whole current line (not really a movement but a range)
|
||||
# WholeLine,
|
||||
# /// beginning-of-line
|
||||
# BeginningOfLine,
|
||||
# /// end-of-line
|
||||
# EndOfLine,
|
||||
# /// backward-word, vi-prev-word
|
||||
# BackwardWord(RepeatCount, Word), // Backward until start of word
|
||||
# /// forward-word, vi-end-word, vi-next-word
|
||||
# ForwardWord(RepeatCount, At, Word), // Forward until start/end of word
|
||||
# /// vi-char-search
|
||||
# ViCharSearch(RepeatCount, CharSearch),
|
||||
# /// vi-first-print
|
||||
# ViFirstPrint,
|
||||
# /// backward-char
|
||||
# BackwardChar(RepeatCount),
|
||||
# /// forward-char
|
||||
# ForwardChar(RepeatCount),
|
||||
# /// move to the same column on the previous line
|
||||
# LineUp(RepeatCount),
|
||||
# /// move to the same column on the next line
|
||||
# LineDown(RepeatCount),
|
||||
# /// Whole user input (not really a movement but a range)
|
||||
# WholeBuffer,
|
||||
# /// beginning-of-buffer
|
||||
# BeginningOfBuffer,
|
||||
# /// end-of-buffer
|
||||
# EndOfBuffer,
|
@ -1,33 +0,0 @@
|
||||
{
|
||||
"bare_member": "ff0000",
|
||||
"close_delimiter": "ffffff",
|
||||
"comment": "ff0000",
|
||||
"decimal": "0000ff",
|
||||
"dot": "ffffff",
|
||||
"dot_dot": "0000ff",
|
||||
"dot_dot_left_angle_bracket": "00ff00",
|
||||
"external_command": "ffffff",
|
||||
"external_word": "0000ff",
|
||||
"flag": "0000ff",
|
||||
"garbage": "ff0000",
|
||||
"glob_pattern": "ffffff",
|
||||
"identifier": "ff0000",
|
||||
"int": "ffffff",
|
||||
"internal_command": "ff0000",
|
||||
"it_variable": "ffffff",
|
||||
"keyword": "0000ff",
|
||||
"open_delimiter": "ff0000",
|
||||
"operator": "ff0000",
|
||||
"path": "ff0000",
|
||||
"pipe": "ff0000",
|
||||
"separator": "0000ff",
|
||||
"shorthand_flag": "ff0000",
|
||||
"size_number": "ffffff",
|
||||
"size_unit": "0000ff",
|
||||
"string": "0000ff",
|
||||
"string_member": "ffffff",
|
||||
"type": "0000ff",
|
||||
"variable": "0000ff",
|
||||
"whitespace": "ffffff",
|
||||
"word": "ffffff"
|
||||
}
|
Reference in New Issue
Block a user