Skip to content

Add location-based travel-mode override (always bike to work)#9

Merged
Multipixelone merged 1 commit into
mainfrom
claude/location-override-bike-time-w6kOZ
Jun 16, 2026
Merged

Add location-based travel-mode override (always bike to work)#9
Multipixelone merged 1 commit into
mainfrom
claude/location-override-bike-time-w6kOZ

Conversation

@Multipixelone

Copy link
Copy Markdown
Owner

Add a config-driven mode_overrides list that forces a travel mode for
events whose effective location matches a case-insensitive substring.
This lets the planner always show bike time for chosen destinations
(e.g. work) while leaving every other event on the default transit mode.

  • ModeOverride model in models.py and config.py, with Config.mode_overrides
  • get_effective_mode() helper in planner.py
  • Folded into plan_event mode precedence: CLI > event > location config > transit
  • Documented [[mode_overrides]] example in examples/config.toml
  • Tests for the helper, parsing, and plan_event precedence

https://claude.ai/code/session_01QrS4MwWJUUAqoY1J3ZaNnX

Add a config-driven mode_overrides list that forces a travel mode for
events whose effective location matches a case-insensitive substring.
This lets the planner always show bike time for chosen destinations
(e.g. work) while leaving every other event on the default transit mode.

- ModeOverride model in models.py and config.py, with Config.mode_overrides
- get_effective_mode() helper in planner.py
- Folded into plan_event mode precedence: CLI > event > location config > transit
- Documented [[mode_overrides]] example in examples/config.toml
- Tests for the helper, parsing, and plan_event precedence

https://claude.ai/code/session_01QrS4MwWJUUAqoY1J3ZaNnX
@Multipixelone Multipixelone force-pushed the claude/location-override-bike-time-w6kOZ branch from 6aa46b5 to 33a0271 Compare June 16, 2026 14:37
@Multipixelone Multipixelone merged commit e8cbe3c into main Jun 16, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants