Files
dotfiles/dot_config/nushell/nu_scripts/stdlib-candidate/std-rfc/tables/col-indices.nu
Cian Hughes 896af887ca Changed . token to _dot
This change allows the dotfiles to work with chezmoi (e.g: on windows)
and improves grepability with neovim/telescope
2024-11-07 13:52:17 +00:00

15 lines
261 B
Nu

use ../conversions/into.nu *
use ./select-ranges.nu *
export def main [ ...ranges ] {
let indices = (
$ranges
| reduce -f [] {|range,indices|
$indices ++ ($range | into list)
}
)
$in | columns
| select ranges $indices
| get item
}