mirror of
https://github.com/RGBCube/nu_scripts
synced 2025-08-01 06:37:46 +00:00
commit
f221ee9162
1 changed files with 3 additions and 4 deletions
|
@ -9,12 +9,11 @@ def ls-wide [
|
||||||
ls | each -n {
|
ls | each -n {
|
||||||
build-string $(echo $it.item.name | str rpad -c ' ' -l $max_fname_size) ' ' $(echo $(build-string $it.item.size) | str lpad -c ' ' -l $max_fsize_size) ' '
|
build-string $(echo $it.item.name | str rpad -c ' ' -l $max_fname_size) ' ' $(echo $(build-string $it.item.size) | str lpad -c ' ' -l $max_fsize_size) ' '
|
||||||
if $is_empty {
|
if $is_empty {
|
||||||
if $it.index mod 3 == 0 && $it.index != 0 {
|
if $(= $it.index + 1) mod 3 == 0 {
|
||||||
echo $(char newline) | autoview
|
echo $(char newline) | autoview
|
||||||
} {}
|
} {}
|
||||||
|
} {
|
||||||
} {
|
if $(= $it.index + 1) mod $columns == 0 {
|
||||||
if $it.index mod $columns == 0 && $it.index != 0 {
|
|
||||||
echo $(char newline) | autoview
|
echo $(char newline) | autoview
|
||||||
} {}
|
} {}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue