Files
dotfiles/dot_config/nushell/nu_scripts/stdlib-candidate/std-rfc/tables/reject-column-ranges.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

13 lines
278 B
Nu

use ./col-indices.nu *
# Relect a range of columns by their indices
#
# Example:
#
# ls | reject column-ranges 0 4 5 | first 3
export def "reject column-ranges" [
...ranges
] {
let column_selector = ($in | col-indices ...$ranges)
$in | reject ...$column_selector
}