mirror of
https://github.com/RGBCube/nu_scripts
synced 2025-08-01 06:37:46 +00:00
in commands table rename usage to description (#990)
`usage` column under the `scope commands` table has been renamed to description since nushell version 0.98.0
This commit is contained in:
parent
09c4ca4ac0
commit
b5385a2af0
4 changed files with 9 additions and 9 deletions
|
@ -17,7 +17,7 @@ export def fuzzy-command-search [] {
|
|||
let max_indent = ($max_len / $tablen | into int)
|
||||
let command = ((help commands | each {|it|
|
||||
let name = ($it.name | str trim | ansi strip)
|
||||
$"($name)(pad-tabs $name $max_indent)($it.usage)"
|
||||
$"($name)(pad-tabs $name $max_indent)($it.description)"
|
||||
}) | str join (char nl) | fzf | split column (char tab) | get column1.0)
|
||||
if ($command | is-not-empty) {
|
||||
help $command
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue