id = "lsd"
name = "lsd"
homepage = "https://github.com/lsd-rs/lsd"
description = "A rewrite of GNU ls with lots of added features like colors, icons, tree-view, more formatting options etc."
icon = "https://github.com/lsd-rs.png?size=200"
executables = ["lsd"]
[dotfiles]
paths = [
"[configHome]/lsd/config.yaml",
"[configHome]/lsd/colors.yaml",
"[configHome]/lsd/icons.yaml",
]
exclude = []
secret = []
side_effect = false
[commands]
format = 1
label = "List directory"
description = "List files with lsd: hidden files, long table, tree, sorting and colour. Icon, date format and block layout options are left out."
quality = "ai-draft"
base = "fig:lsd"
parser = { end_of_options = "--", interleave = "permute", long_equals = true, short_attached = true, short_bundles = true }
[[commands.source]]
id = "fig"
kind = "completion"
url = "https://github.com/withfig/autocomplete/blob/master/src/lsd.ts"
license = "MIT"
[[commands.field]]
id = "paths"
label = "Folders or files"
type = "path"
path = { kind = "any", role = "input" }
position = 0
multiple = true
sources = ["fig"]
[[commands.field]]
id = "all"
label = "Show hidden files"
type = "boolean"
option = ["--all", "-a"]
sources = ["fig"]
[[commands.field]]
id = "almost_all"
label = "Hidden files except . and .."
type = "boolean"
option = ["--almost-all", "-A"]
sources = ["fig"]
[[commands.field]]
id = "long"
label = "Long table"
type = "boolean"
option = ["--long", "-l"]
sources = ["fig"]
[[commands.field]]
id = "tree"
label = "Tree view"
type = "boolean"
option = ["--tree"]
sources = ["fig"]
[[commands.field]]
id = "depth"
label = "Max depth"
type = "integer"
option = ["--depth"]
sources = ["fig"]
[[commands.field]]
id = "recursive"
label = "Recurse into directories"
type = "boolean"
option = ["--recursive", "-R"]
sources = ["fig"]
[[commands.field]]
id = "directory_only"
label = "Directories themselves"
type = "boolean"
option = ["--directory-only", "-d"]
sources = ["fig"]
[[commands.field]]
id = "sort"
label = "Sort by"
type = "enum"
option = ["--sort"]
choices = [{ value = "size", label = "Size" }, { value = "time", label = "Time" }, { value = "version", label = "Version" }, { value = "extension", label = "Extension" }]
sources = ["fig"]
[[commands.field]]
id = "reverse"
label = "Reverse sort"
type = "boolean"
option = ["--reverse", "-r"]
sources = ["fig"]
[[commands.field]]
id = "group_dirs"
label = "Group directories"
type = "enum"
option = ["--group-dirs"]
choices = [{ value = "none", label = "None" }, { value = "first", label = "First" }, { value = "last", label = "Last" }]
sources = ["fig"]
[[commands.field]]
id = "color"
label = "Colour"
type = "enum"
option = ["--color"]
choices = [{ value = "always", label = "Always" }, { value = "auto", label = "Auto" }, { value = "never", label = "Never" }]
sources = ["fig"]
[[commands.task]]
id = "long_list"
label = "Long listing"
fields = ["paths", "long", "all"]
set = { long = [true] }
[[commands.task]]
id = "tree_view"
label = "Tree view"
fields = ["paths", "tree", "depth", "all"]
set = { tree = [true] }
[[commands.group]]
id = "basic"
label = "Basic"
fields = ["paths", "all", "long", "tree", "depth"]
[[commands.group]]
id = "advanced"
label = "Advanced"
fields = ["almost_all", "recursive", "directory_only", "sort", "reverse", "group_dirs", "color"]