fix menus in default config (#7352)

Simply fixes menus commands_with_description, commands_menu
This commit is contained in:
John Johnstone 2022-12-05 03:23:58 +00:00 committed by GitHub
parent 57ff668d2e
commit db6c804b17
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -394,8 +394,8 @@ let-env config = {
}
source: { |buffer, position|
$nu.scope.commands
| where command =~ $buffer
| each { |it| {value: $it.command description: $it.usage} }
| where name =~ $buffer
| each { |it| {value: $it.name description: $it.usage} }
}
}
{
@ -437,8 +437,8 @@ let-env config = {
}
source: { |buffer, position|
$nu.scope.commands
| where command =~ $buffer
| each { |it| {value: $it.command description: $it.usage} }
| where name =~ $buffer
| each { |it| {value: $it.name description: $it.usage} }
}
}
]