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