Skip to content

search: support custom tab titles for search panels#133

Open
klement wants to merge 1 commit into
akissinger:masterfrom
klement:custom-tab-titles
Open

search: support custom tab titles for search panels#133
klement wants to merge 1 commit into
akissinger:masterfrom
klement:custom-tab-titles

Conversation

@klement

@klement klement commented Apr 10, 2026

Copy link
Copy Markdown
Contributor

Summary

Allows setting custom tab titles for search panels via dodo.settings.init_queries.

Each entry can now be either a plain query string (existing behaviour) or a (query, title) tuple to override the tab label. This is useful when the notmuch query is long or cryptic but the user wants a short, readable tab name.

Usage in config.py:

dodo.settings.init_queries = [
    'tag:inbox',
    ('tag:flagged', 'Flagged'),
    ('tag:inbox and not tag:lists', 'Personal'),
]

Test plan

  • Plain string entries in dodo.settings.init_queries still work as before
  • (query, title) tuple entries display the custom title on the tab
  • Refreshing a panel with a custom title preserves the title

Allow init_queries entries to be (query, title) tuples so users can
give friendly names to tabs instead of showing raw notmuch queries.
Plain string entries continue to work as before.

Co-Authored-By: Claude Opus 4.6 <[email protected]>
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.

1 participant