mirror of
https://github.com/Cian-H/dotfiles.git
synced 2026-01-22 02:19:06 +00:00
This change allows the dotfiles to work with chezmoi (e.g: on windows) and improves grepability with neovim/telescope
15 lines
302 B
Nu
15 lines
302 B
Nu
use ./row-indices.nu *
|
|
|
|
# Rejects one or more rows while keeping
|
|
# the original indices.
|
|
#
|
|
# Example - Rejects the first, fifth, and
|
|
# sixth rows from the table:
|
|
#
|
|
# ls / | reject ranges 0 4..5
|
|
export def "reject ranges" [ ...ranges ] {
|
|
enumerate
|
|
| flatten
|
|
| reject ...(row-indices ...$ranges)
|
|
}
|