mirror of
https://github.com/Cian-H/dotfiles.git
synced 2026-01-23 02:49:06 +00:00
This change allows the dotfiles to work with chezmoi (e.g: on windows) and improves grepability with neovim/telescope
13 lines
278 B
Nu
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
|
|
} |