Commit 0fc2dd8fbc2b

Vincent Demeester <vincent@sbr.pm>
2026-01-16 17:12:17
feat(journelly): change entry format to "Location (hostname)"
Change journal entry heading format from: * [YYYY-MM-DD Day HH:MM] @ hostname in Location To: * [YYYY-MM-DD Day HH:MM] @ Location (hostname) Benefits: - More concise format: "Saint-Denis (kyushu)" vs "kyushu in Saint-Denis" - Location is primary (what you see first) - Hostname in parentheses provides context without dominating Updated: - journelly.el: Function implementation and documentation - Org skill: Documentation to reflect new format Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
1 parent d467a30
Changed files (2)
dots
.config
claude
skills
emacs
site-lisp
dots/.config/claude/skills/Org/SKILL.md
@@ -228,7 +228,7 @@ Productive day working on Claude skills.
 
 **CRITICAL: Claude should NEVER automatically create journal entries.**
 
-### Regular Journal Entries (@ hostname in Location)
+### Regular Journal Entries (@ Location (hostname))
 - **NEVER create these** - These are the user's personal voice and reflections only
 - The user writes these manually via:
   - Journelly iOS app
dots/.config/emacs/site-lisp/journelly.el
@@ -17,7 +17,7 @@
 ;; - Full org-capture integration
 ;;
 ;; Entry formats:
-;; - Regular: * [YYYY-MM-DD Day HH:MM] @ hostname in Location
+;; - Regular: * [YYYY-MM-DD Day HH:MM] @ Location (hostname)
 ;;            - HH:MM :: entry content (appended entries)
 ;; - Claude:  * [YYYY-MM-DD Day HH:MM] @ Claude session
 ;;            - HH:MM :: session summary (automated only)
@@ -83,8 +83,8 @@ Goes after the file header but before existing entries."
     (point)))
 
 (defun journelly--create-entry-heading (&optional custom-location)
-  "Create journal entry heading with timestamp, hostname, and location.
-Format: * [YYYY-MM-DD Day HH:MM] @ hostname in Location
+  "Create journal entry heading with timestamp, location, and hostname.
+Format: * [YYYY-MM-DD Day HH:MM] @ Location (hostname)
 If CUSTOM-LOCATION is provided, uses it instead of IP geolocation.
 Returns the heading string."
   (let* ((location-data (when (not custom-location) (journelly-get-location)))
@@ -94,8 +94,8 @@ Returns the heading string."
     (if (string= custom-location "Claude session")
         ;; Claude session - no location
         (format "* %s @ Claude session" timestamp)
-      ;; Regular entry - hostname in location
-      (format "* %s @ %s in %s" timestamp hostname city))))
+      ;; Regular entry - location (hostname)
+      (format "* %s @ %s (%s)" timestamp city hostname))))
 
 (defun journelly--create-entry-properties (&optional skip-weather)
   "Create properties drawer with location and weather metadata.