From 55ee8158a1f85bb532a24d752f9ef409192a924c Mon Sep 17 00:00:00 2001 From: Craig Jennings Date: Fri, 26 Jun 2026 10:53:18 -0400 Subject: feat: add named-locations directory with display names A saved location carries a display name distinct from its query target ("Mom's House" maps to coordinates or an address), stored in a savehist-persisted wttrin-saved-locations alist. The name shows everywhere the place appears (picker, buffer header, mode-line tooltip) while wttr.in is still queried by the target. Management commands wttrin-save-location, wttrin-rename-location, and wttrin-remove-location edit the directory, with refuse-on-collision rename and a favorite-fallback warning on remove. In the weather buffer, s/r/x reach those commands and d names a detected location before promoting it to the default. The footer is two columns: a "This view" column (another, refresh, quit) and a "Saved locations" column (save, make default, rename, remove). The buffer anchors to the top so the forecast isn't scrolled out of view in a short window. The mode-line follows favorite changes immediately rather than waiting for the next scheduled fetch, and its hover tooltip shows the saved name instead of the raw query. History holds named entries only: raw coordinate detections and saved names stay out of it. --- assets/geolocation.png | Bin 0 -> 54352 bytes assets/location-menu.png | Bin 40165 -> 52575 bytes assets/wttrin.png | Bin 187797 -> 353589 bytes 3 files changed, 0 insertions(+), 0 deletions(-) create mode 100644 assets/geolocation.png (limited to 'assets') diff --git a/assets/geolocation.png b/assets/geolocation.png new file mode 100644 index 0000000..836c864 Binary files /dev/null and b/assets/geolocation.png differ diff --git a/assets/location-menu.png b/assets/location-menu.png index 2421ae9..791f63c 100644 Binary files a/assets/location-menu.png and b/assets/location-menu.png differ diff --git a/assets/wttrin.png b/assets/wttrin.png index a81b4a5..8776c76 100644 Binary files a/assets/wttrin.png and b/assets/wttrin.png differ -- cgit v1.2.3