insanum / gcalcli

Google Calendar Command Line Interface
MIT License
3.32k stars 314 forks source link

TUI flavor of `gcalcli edit`? #764

Open dbarnett opened 1 month ago

dbarnett commented 1 month ago

When editing a long list of events, it feels clunky to go through per-event prompting to modify and save events one at a time. What if instead it supported an interactive TUI (text-based UI) where you could browse the entire list of events, stage edits to them, and then commit them to save all changes at once.

In other words, this would be like editing the set of events visually in vi vs. ed.

That kind of TUI interface would offer a few advantages over the current line-based interface:

  1. More forgiving experience if you e.g. started editing a few, changed your mind, and wanted to abort and start the whole edit over with different parameters
  2. More convenient if you want to only edit a couple individual fields without going through prompts for all the others
  3. Could offer more intuitive controls for batch operations like "add reminder xyz on just these 7 events in the list"
  4. Could allow for better ad hoc searching/filtering within the TUI, for a richer browsing+editing experience across your events
michaelmhoffman commented 1 month ago

I use gcalcli agenda --tsv, open the result in Microsoft Excel, make bulk changes, and then use gcalcli agendaupdate to write it back.

dbarnett commented 1 month ago

Neat, I didn't realize that's what the agendaupdate command did!

Still some advantages of doing edits completely inline in something like a TUI w/o separate intermediate files, like having a more convenient flow for exploring and updating very large sets of event data interactively w/o having to craft cli args upfront to filter the data down manually.