-
-
Couldn't load subscription status.
- Fork 339
feat: add --spacing parameter #1558
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
base: main
Are you sure you want to change the base?
Changes from all commits
56e8b43
eab9e3d
e744758
a35c7a3
387099f
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -18,7 +18,7 @@ SPDX-License-Identifier: EUPL-1.2 | |
| [Available for MacOS, Linux, & Windows](https://www.warp.dev/eza)<br> | ||
|
|
||
| </div> | ||
|
|
||
| # eza | ||
|
|
||
| A modern replacement for ls. | ||
|
|
@@ -113,6 +113,7 @@ eza’s options are almost, but not quite, entirely unlike `ls`’s. Quick overv | |
| - **--hyperlink**: display entries as hyperlinks | ||
| - **--absolute=(mode)**: display entries with their absolute path (on, follow, off) | ||
| - **-w**, **--width=(columns)**: set screen width in columns | ||
| - **--spacing=(columns)**: set the number of spaces between columns | ||
|
|
||
| </details> | ||
|
|
||
|
|
@@ -203,7 +204,7 @@ precedence for backwards compatibility. | |
| #### **New** Pre-made themes | ||
| Check out the themes available in the official [eza-themes](https://github.com/eza-community/eza-themes) repository, or contribute your own. | ||
|
|
||
| An example theme file is available in `docs/theme.yml`, and needs to either be placed in a directory specified by the | ||
| An example theme file is available in `docs/theme.yml`, and needs to either be placed in a directory specified by the | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. ditto |
||
| environment variable `EZA_CONFIG_DIR`, or will looked for by default in `$XDG_CONFIG_HOME/eza`. | ||
|
|
||
| Full details are available on the [man page](https://github.com/eza-community/eza/tree/main/man/eza_colors-explanation.5.md) and an example theme file is included [here](https://github.com/eza-community/eza/tree/main/docs/theme.yml) | ||
|
|
@@ -213,10 +214,10 @@ Full details are available on the [man page](https://github.com/eza-community/ez | |
|
|
||
| # Hacking on eza | ||
|
|
||
| If you wanna contribute to eza, firstly, you're expected to follow our | ||
| [code of conduct](https://github.com/eza-community/eza/blob/main/CODE_OF_CONDUCT.md). | ||
| If you wanna contribute to eza, firstly, you're expected to follow our | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. ditto |
||
| [code of conduct](https://github.com/eza-community/eza/blob/main/CODE_OF_CONDUCT.md). | ||
| After having understood the code of conduct, you can have a look at our | ||
| [CONTRIBUTING.md](https://github.com/eza-community/eza/blob/main/CONTRIBUTING.md) | ||
| [CONTRIBUTING.md](https://github.com/eza-community/eza/blob/main/CONTRIBUTING.md) | ||
| for more info about actual hacking. | ||
|
|
||
| [](https://star-history.com/#eza-community/eza&Date) | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -51,10 +51,11 @@ complete -c eza -l group-directories-first -d "Sort directories before other fil | |
| complete -c eza -l group-directories-last -d "Sort directories after other files" | ||
| complete -c eza -l git-ignore -d "Ignore files mentioned in '.gitignore'" | ||
| complete -c eza -s a -l all -d "Show hidden and 'dot' files. Use this twice to also show the '.' and '..' directories" | ||
| complete -c eza -s A -l almost-all -d "Equivalent to --all; included for compatibility with `ls -A`" | ||
| complete -c eza -s A -l almost-all -d "Equivalent to --all; included for compatibility with $(ls -A)" | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Not sure I understand why the |
||
| complete -c eza -s d -l treat-dirs-as-files -d "List directories like regular files" | ||
| complete -c eza -s L -l level -d "Limit the depth of recursion" -x -a "1 2 3 4 5 6 7 8 9" | ||
| complete -c eza -s w -l width -d "Limits column output of grid, 0 implies auto-width" | ||
| complete -c eza -l spacing -d "Set the space between columns" | ||
| complete -c eza -s r -l reverse -d "Reverse the sort order" | ||
| complete -c eza -s s -l sort -d "Which field to sort by" -x -a " | ||
| accessed\t'Sort by file accessed time' | ||
|
|
||
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
|
|
@@ -28,6 +28,7 @@ export extern "eza" [ | |||||
| --treat-dirs-as-files(-d) # List directories like regular files | ||||||
| --level(-L): string # Limit the depth of recursion | ||||||
| --width(-w) # Limits column output of grid, 0 implies auto-width | ||||||
| --spacing # Space between columns in grid mode | ||||||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||
| --reverse(-r) # Reverse the sort order | ||||||
| --sort(-s) # Which field to sort by | ||||||
| --only-dirs(-D) # List only directories | ||||||
|
|
||||||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -40,6 +40,7 @@ __eza() { | |
| {-f,--only-files}"[List only files]" \ | ||
| {-L,--level}"+[Limit the depth of recursion]" \ | ||
| {-w,--width}"+[Limits column output of grid, 0 implies auto-width]" \ | ||
| --spacing"+[Set the space between columns]" \ | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I can't remember the zsh syntax but this does seem odd compared to other lines, why not |
||
| {-r,--reverse}"[Reverse the sort order]" \ | ||
| {-s,--sort}="[Which field to sort by]:(sort field):(accessed age changed created date extension Extension filename Filename inode modified oldest name Name newest none size time type)" \ | ||
| {-I,--ignore-glob}"[Ignore files that match these glob patterns]" \ | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -129,6 +129,9 @@ The default value is ‘`automatic`’. | |
| `-w`, `--width=COLS` | ||
| : Set screen width in columns. | ||
|
|
||
| `--spacing=COLS` | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
|
||
| : Set the number of spaces between columns. | ||
|
|
||
| FILTERING AND SORTING OPTIONS | ||
| ============================= | ||
|
|
||
|
|
@@ -356,7 +359,7 @@ Specifies the minimum luminance to use when color-scale is active. It's value ca | |
|
|
||
| If set, automates the same behavior as using `--icons` or `--icons=auto`. Useful for if you always want to have icons enabled. | ||
|
|
||
| Any explicit use of the `--icons=WHEN` flag overrides this behavior. | ||
| Any explicit use of the `--icons=WHEN` flag overrides this behavior. | ||
|
|
||
| ## `EZA_STDIN_SEPARATOR` | ||
|
|
||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -21,6 +21,7 @@ pub static TREE: Arg = Arg { short: Some(b'T'), long: "tree", | |
| pub static CLASSIFY: Arg = Arg { short: Some(b'F'), long: "classify", takes_value: TakesValue::Optional(Some(WHEN), "auto") }; | ||
| pub static DEREF_LINKS: Arg = Arg { short: Some(b'X'), long: "dereference", takes_value: TakesValue::Forbidden }; | ||
| pub static WIDTH: Arg = Arg { short: Some(b'w'), long: "width", takes_value: TakesValue::Necessary(None) }; | ||
| pub static SPACING:Arg = Arg { short: None, long: "spacing", takes_value: TakesValue::Necessary(None) }; | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Should be formatted like adjacent lines |
||
| pub static NO_QUOTES: Arg = Arg { short: None, long: "no-quotes", takes_value: TakesValue::Forbidden }; | ||
| pub static ABSOLUTE: Arg = Arg { short: None, long: "absolute", takes_value: TakesValue::Optional(Some(ABSOLUTE_MODES), "on") }; | ||
| pub static FOLLOW_LINKS: Arg = Arg { short: None, long: "follow-symlinks", takes_value: TakesValue::Forbidden }; | ||
|
|
@@ -103,7 +104,7 @@ pub static ALL_ARGS: Args = Args(&[ | |
|
|
||
| &ONE_LINE, &LONG, &GRID, &ACROSS, &RECURSE, &TREE, &CLASSIFY, &DEREF_LINKS, &FOLLOW_LINKS, | ||
| &COLOR, &COLOUR, &COLOR_SCALE, &COLOUR_SCALE, &COLOR_SCALE_MODE, &COLOUR_SCALE_MODE, | ||
| &WIDTH, &NO_QUOTES, &ABSOLUTE, | ||
| &WIDTH, &NO_QUOTES, &ABSOLUTE, &SPACING, | ||
|
|
||
| &ALL, &ALMOST_ALL, &TREAT_DIRS_AS_FILES, &LIST_DIRS, &LEVEL, &REVERSE, &SORT, &DIRS_FIRST, &DIRS_LAST, | ||
| &IGNORE_GLOB, &GIT_IGNORE, &ONLY_DIRS, &ONLY_FILES, | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -35,6 +35,7 @@ DISPLAY OPTIONS | |
| --absolute display entries with their absolute path (on, follow, off) | ||
| --follow-symlinks drill down into symbolic links that point to directories | ||
| -w, --width COLS set screen width in columns | ||
| --spacing set the space between columns (0 for no spacing) | ||
|
|
||
|
|
||
| FILTERING AND SORTING OPTIONS | ||
|
|
@@ -88,7 +89,7 @@ LONG VIEW OPTIONS | |
| --no-filesize suppress the filesize field | ||
| --no-user suppress the user field | ||
| --no-time suppress the time field | ||
| --stdin read file names from stdin, one per line or other separator | ||
| --stdin read file names from stdin, one per line or other separator | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This change doesn't seem like it should be introduced in this pr |
||
| specified in environment"; | ||
|
|
||
| static GIT_VIEW_HELP: &str = " \ | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
some changing is unrelated to this PR
feat: add --spacing parameterwe'd better submit those commit in a separate PR