args: add search column argument

Signed-off-by: William Casarin <jb55@jb55.com>
This commit is contained in:
William Casarin
2025-02-22 19:46:23 -08:00
parent e09df3e7c3
commit f7c1a39bc1
3 changed files with 23 additions and 3 deletions

View File

@@ -406,6 +406,10 @@ impl TimelineKind {
TimelineKind::List(ListKind::contact_list(pk))
}
pub fn search(s: String) -> Self {
TimelineKind::Search(SearchQuery::new(s))
}
pub fn is_contacts(&self) -> bool {
matches!(self, TimelineKind::List(ListKind::Contact(_)))
}