Save a typed match or search as an agenda view !444

merged merged by cmc on 2026-11-22 03:54 UTC · krz/orgstar:save-agenda-view into main

Discussion

cmc

Closes #92.

  • AgendaViewLoader.save(name:mode:) appends a [[view]] table to views.toml, making the file if needed and leaving the rest as it is. Empty names and names another view has (built-in ones included) are refused, as are block agendas and stuck-projects views with their own definition.
  • Mac: Save as View… at the end of the Agenda window's view menu, enabled while a typed Match…, TODO Match…, Search… or TODO Search… is showing. It asks for a name, reloads the views and shows the new one.
  • iOS: Save as View… in the Views menu while a typed match or search is showing.
  • Manual and strings (de, es, fr, ja, pt-BR) updated.

Tests cover the round trip through the loader for each kind of view, appending to an existing file, and the refusals. Tried in the Simulator: a +work match saved as "Work" wrote the table and showed as that view. The Mac menu item was not clicked through.