idea: searching in the TUI with / #31
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
when a user enters / in the post or media sidebar, a search entry is shown and the entered text is used to search for matching posts. this should be the simple text search, but should also support tag search with a tag: format, same with category:. also if the entry is a date in iso format yyyy-mm-dd, the posts from that date are shown.
Searching filters the sidebar, just like with the GUI application and should work for media and posts.
Implemented in
e027364./in sidebar focus opens a vi-style search prompt in the status line that live-filters the current view on every keystroke — posts, pages and media, through the exact sameBDS.UI.Sidebarfilter params the GUI sidebar uses.Query syntax:
tag:xandcategory:x: filter like the GUI chips (repeatable, AND semantics)yyyy-mm-dd: only entries from that day — this needed a new day-level filter in the shared sidebar queries (year/month already existed), so the GUI could use it tootag:elixir 2026-07-04 releaseEnter keeps the filter (it stays visible appended to the sidebar title, e.g. "Posts /tag:elixir"), esc clears it and restores the full list. Filters are kept per view, so posts and media can be filtered independently.
Covered by tests (sidebar search describe block in test/bds/tui_test.exs, day-filter test in test/bds/ui/sidebar_test.exs), spec updated (rule SidebarSearch in specs/tui.allium, allium check clean), status-line hint translated for de/fr/it/es. Build, full test suite, credo, deps.audit and dialyzer are all clean.