This commit is contained in:
Tao Tien 2025-04-24 17:01:44 -07:00
parent 8864ca2375
commit 352df7fc81

View file

@ -3,19 +3,26 @@ def "config stuff" [] {
} }
def fixme [] { def fixme [] {
rg FIXME --json let items = rg "FIXME|TODO" --json
| lines | lines
| each {from json} | each {from json}
| where type == "match" | where type == "match"
| get data | get data
| flatten | flatten
| each {$"($in.text):($in.line_number)"} | reject absolute_offset submatches
| hx ...$in | each {
mut row = $in
$row.lines_text = ($row.lines_text | str trim)
$row
}
| sort
let sel = $items.lines_text | input list -fi
hx ($items | get $sel | $"($in.text):($in.line_number)")
} }
source ~/.zoxide.nu source ~/.zoxide.nu
def --env z [path: string = "~"] { def --wrapped --env z [...rest] {
zo $path zo ...$rest
l l
} }
@ -56,3 +63,9 @@ def louder [] {
"NOlaptop" => {sudo ectool fanduty 100} "NOlaptop" => {sudo ectool fanduty 100}
} }
} }
def asciicam [] {
$env.DISPLAY = null
mpv -vo caca av://v4l2:/dev/video0 --demuxer-lavf-o=input_format=mjpeg --profile=low-latency e>| /dev/null
}