remove non-default menus

these are the menus i could not find in the `add_menus` function
(https://github.com/nushell/nushell/blob/9a6a3a731/crates/nu-cli/src/reedline_config.rs#L86-L90)
This commit is contained in:
amtoine 2023-07-13 18:27:05 +02:00
parent ae7e8111c0
commit a09a1c5643
No known key found for this signature in database
GPG Key ID: 37AAE9B486CFF1AB

View File

@ -362,73 +362,6 @@ $env.config = {
description_text: yellow description_text: yellow
} }
} }
# Example of extra menus created using a nushell source
# Use the source field to create a list of records that populates
# the menu
{
name: commands_menu
only_buffer_difference: false
marker: "# "
type: {
layout: columnar
columns: 4
col_width: 20
col_padding: 2
}
style: {
text: green
selected_text: green_reverse
description_text: yellow
}
source: { |buffer, position|
scope commands
| where name =~ $buffer
| each { |it| {value: $it.name description: $it.usage} }
}
}
{
name: vars_menu
only_buffer_difference: true
marker: "# "
type: {
layout: list
page_size: 10
}
style: {
text: green
selected_text: green_reverse
description_text: yellow
}
source: { |buffer, position|
scope variables
| where name =~ $buffer
| sort-by name
| each { |it| {value: $it.name description: $it.type} }
}
}
{
name: commands_with_description
only_buffer_difference: true
marker: "# "
type: {
layout: description
columns: 4
col_width: 20
col_padding: 2
selection_rows: 4
description_rows: 10
}
style: {
text: green
selected_text: green_reverse
description_text: yellow
}
source: { |buffer, position|
scope commands
| where name =~ $buffer
| each { |it| {value: $it.name description: $it.usage} }
}
}
] ]
keybindings: [ keybindings: [