Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

layout config-option: long #1080

Open
goyalyashpal opened this issue Aug 13, 2024 · 1 comment
Open

layout config-option: long #1080

goyalyashpal opened this issue Aug 13, 2024 · 1 comment

Comments

@goyalyashpal
Copy link

goyalyashpal commented Aug 13, 2024

not a bug, but a feature request...

$ #- os: 
$ inxi --system | tail -n1
  Desktop: Cinnamon v: 6.0.4 Distro: NixOS 24.05 (Uakari)

$ lsd --version
lsd 1.1.2

$ echo $TERM
xterm-256color

$ echo $LS_COLORS
...

Expected behavior

  • the layout config option has some value say "long" to specify long-listing i.e. equivalent to -l or --long cli flag.
  • documentation for blocks itself mentions this 😄

lsd/README.md

Lines 143 to 145 in 9b310da

# == Blocks ==
# This specifies the columns and their order when using the long and the tree
# layout.

Actual behavior

layout only accepts grid, tree, oneline and errors out at long value.

$ lsd
lsd: Configuration file /home/.../.config/lsd/config.yaml format error, layout: unknown variant `long`, expected one of `grid`, `tree`, `oneline` at line 4 column 9.

lsd: Configuration file /home/.../.config/lsd/config.yaml format error, layout: unknown variant `long`, expected one of `grid`, `tree`, `oneline` at line 4 column 9.

lsd: Configuration file /home/.../.config/lsd/config.yaml format error, layout: unknown variant `long`, expected one of `grid`, `tree`, `oneline` at line 4 column 9.

   <...LISTING-CONTENT...>

lsd/README.md

Lines 209 to 213 in 9b310da

# == Layout ==
# Which layout to use. "oneline" might be a bit confusing here and should be
# called "one-per-line". It might be changed in the future.
# Possible values: grid, tree, oneline
layout: grid

@goyalyashpal
Copy link
Author

i just realised that it would require an option in CLI to enable the grid layout lol.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant