summaryrefslogtreecommitdiffstats
path: root/ui/src/execute.rs
diff options
context:
space:
mode:
Diffstat (limited to 'ui/src/execute.rs')
-rw-r--r--ui/src/execute.rs11
1 files changed, 10 insertions, 1 deletions
diff --git a/ui/src/execute.rs b/ui/src/execute.rs
index 81822637..d74da648 100644
--- a/ui/src/execute.rs
+++ b/ui/src/execute.rs
@@ -97,6 +97,15 @@ named!(
);
named!(
+ filter<Action>,
+ do_parse!(
+ ws!(tag!("filter"))
+ >> string: map_res!(call!(not_line_ending), std::str::from_utf8)
+ >> (Listing(Filter(String::from(string))))
+ )
+);
+
+named!(
mailinglist<Action>,
alt_complete!(
map!(ws!(tag!("list-post")), |_| MailingListAction(ListPost))
@@ -110,5 +119,5 @@ named!(
);
named!(pub parse_command<Action>,
- alt_complete!( goto | toggle | sort | subsort | close | toggle_thread_snooze | mailinglist)
+ alt_complete!( goto | toggle | sort | subsort | close | toggle_thread_snooze | mailinglist |filter)
);