• Operand
  • ./bin/ganged/upon.

gram: build

> ./config/nushell/cal.nu

Lenses
(coming soon!)


def "cal sync" [--examine (-e)] {
  if ($examine) { nsh vdirsyncer vdirsyncer discover }
  nsh vdirsyncer vdirsyncer sync
}

def cal [] {
  cal sync
  nsh khal ikhal # calendar
  cal sync
}

def "cal display" [] {
  nsh khal khal calendar
}

# def "cal summary" [] {
#   (ls .build/relay/cal/a1d70c8a-fde6-7862-06c6-d40cd29d2794/*.ics).name | each { cat $in | str replace --all -r "\n " "" | lines | split column -r "[:=]" --number 2 | transpose -r | get -i SUMMARY.0 }
# }