mirror of
https://github.com/RGBCube/ncc
synced 2025-08-01 20:47:48 +00:00
Change table look Nu
This commit is contained in:
parent
20e24211cf
commit
9e891fabb8
1 changed files with 7 additions and 3 deletions
|
@ -70,7 +70,7 @@ $env.config = {
|
||||||
}
|
}
|
||||||
|
|
||||||
table: {
|
table: {
|
||||||
mode: basic
|
mode: heavy
|
||||||
index_mode: always
|
index_mode: always
|
||||||
show_empty: true
|
show_empty: true
|
||||||
padding: { left: 1, right: 1 }
|
padding: { left: 1, right: 1 }
|
||||||
|
@ -135,9 +135,13 @@ $env.config = {
|
||||||
let path = $tokens | last
|
let path = $tokens | last
|
||||||
ls $"($path)*" | each {|it|
|
ls $"($path)*" | each {|it|
|
||||||
let choice = if ($path | str ends-with "/") {
|
let choice = if ($path | str ends-with "/") {
|
||||||
$path | path join ($it.name | path basename)
|
$path | path join ($it.name | path dbasen
|
||||||
|
|
||||||
|
heavyame)
|
||||||
} else {
|
} else {
|
||||||
$path | path dirname | path join ($it.name | path basename)
|
$path | path dirname | path join ($it.name | path dbasen
|
||||||
|
|
||||||
|
heavyame)
|
||||||
}
|
}
|
||||||
|
|
||||||
let choice = if ($it.type == "dir") and (not ($choice | str ends-with "/")) {
|
let choice = if ($it.type == "dir") and (not ($choice | str ends-with "/")) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue