Rename Filter action to search
parent
760c1e859d
commit
bae083cc8f
6
meli.1
6
meli.1
|
@ -301,11 +301,11 @@ is a mailbox prefixed with the
|
||||||
number in the side menu for the current account
|
number in the side menu for the current account
|
||||||
.It Cm toggle_thread_snooze
|
.It Cm toggle_thread_snooze
|
||||||
don't issue notifications for thread under cursor in thread listing
|
don't issue notifications for thread under cursor in thread listing
|
||||||
.It Cm filter Ar STRING
|
.It Cm search Ar STRING
|
||||||
filter mailbox with
|
search mailbox with
|
||||||
.Ar STRING
|
.Ar STRING
|
||||||
key.
|
key.
|
||||||
Escape exits filter results
|
Escape exits search results
|
||||||
.It Cm set read, set unread
|
.It Cm set read, set unread
|
||||||
.It Cm create-mailbox Ar ACCOUNT Ar MAILBOX_PATH
|
.It Cm create-mailbox Ar ACCOUNT Ar MAILBOX_PATH
|
||||||
create mailbox with given path.
|
create mailbox with given path.
|
||||||
|
|
|
@ -773,7 +773,7 @@ impl Component for Listing {
|
||||||
{
|
{
|
||||||
context
|
context
|
||||||
.replies
|
.replies
|
||||||
.push_back(UIEvent::ExInput(Key::Paste("filter ".to_string())));
|
.push_back(UIEvent::ExInput(Key::Paste("search ".to_string())));
|
||||||
context
|
context
|
||||||
.replies
|
.replies
|
||||||
.push_back(UIEvent::ChangeMode(UIMode::Execute));
|
.push_back(UIEvent::ChangeMode(UIMode::Execute));
|
||||||
|
|
|
@ -1354,13 +1354,10 @@ impl Component for CompactListing {
|
||||||
self.set_dirty(true);
|
self.set_dirty(true);
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
UIEvent::Action(ref action) => match action {
|
UIEvent::Action(Action::Listing(Search(ref filter_term))) if !self.unfocused => {
|
||||||
Action::Listing(Filter(ref filter_term)) if !self.unfocused => {
|
self.filter(filter_term, context);
|
||||||
self.filter(filter_term, context);
|
self.dirty = true;
|
||||||
self.dirty = true;
|
}
|
||||||
}
|
|
||||||
_ => {}
|
|
||||||
},
|
|
||||||
_ => {}
|
_ => {}
|
||||||
}
|
}
|
||||||
false
|
false
|
||||||
|
|
|
@ -1291,7 +1291,7 @@ impl Component for ConversationsListing {
|
||||||
self.dirty = true;
|
self.dirty = true;
|
||||||
}
|
}
|
||||||
UIEvent::Action(ref action) => match action {
|
UIEvent::Action(ref action) => match action {
|
||||||
Action::Listing(Filter(ref filter_term)) if !self.unfocused => {
|
Action::Listing(Search(ref filter_term)) if !self.unfocused => {
|
||||||
self.filter(filter_term, context);
|
self.filter(filter_term, context);
|
||||||
self.dirty = true;
|
self.dirty = true;
|
||||||
return true;
|
return true;
|
||||||
|
|
|
@ -1180,7 +1180,7 @@ impl Component for PlainListing {
|
||||||
self.refresh_mailbox(context, false);
|
self.refresh_mailbox(context, false);
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
UIEvent::Action(Action::Listing(Filter(ref filter_term))) if !self.unfocused => {
|
UIEvent::Action(Action::Listing(Search(ref filter_term))) if !self.unfocused => {
|
||||||
self.filter(filter_term, context);
|
self.filter(filter_term, context);
|
||||||
self.dirty = true;
|
self.dirty = true;
|
||||||
}
|
}
|
||||||
|
|
|
@ -755,7 +755,7 @@ impl Component for Pager {
|
||||||
))));
|
))));
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
UIEvent::Action(Action::Listing(ListingAction::Filter(pattern))) => {
|
UIEvent::Action(Action::Listing(ListingAction::Search(pattern))) => {
|
||||||
self.search = Some(SearchPattern {
|
self.search = Some(SearchPattern {
|
||||||
pattern: pattern.to_string(),
|
pattern: pattern.to_string(),
|
||||||
positions: vec![],
|
positions: vec![],
|
||||||
|
@ -1962,7 +1962,7 @@ impl Component for Tabbed {
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
UIEvent::Action(Action::Listing(ListingAction::Filter(pattern)))
|
UIEvent::Action(Action::Listing(ListingAction::Search(pattern)))
|
||||||
if self.show_shortcuts =>
|
if self.show_shortcuts =>
|
||||||
{
|
{
|
||||||
self.help_search = Some(SearchPattern {
|
self.help_search = Some(SearchPattern {
|
||||||
|
@ -2014,7 +2014,7 @@ impl Component for Tabbed {
|
||||||
{
|
{
|
||||||
context
|
context
|
||||||
.replies
|
.replies
|
||||||
.push_back(UIEvent::ExInput(Key::Paste("filter ".to_string())));
|
.push_back(UIEvent::ExInput(Key::Paste("search ".to_string())));
|
||||||
context
|
context
|
||||||
.replies
|
.replies
|
||||||
.push_back(UIEvent::ChangeMode(UIMode::Execute));
|
.push_back(UIEvent::ChangeMode(UIMode::Execute));
|
||||||
|
|
|
@ -134,14 +134,14 @@ define_commands!([
|
||||||
);
|
);
|
||||||
)
|
)
|
||||||
},
|
},
|
||||||
{ tags: ["filter"],
|
{ tags: ["search"],
|
||||||
desc: "filter <TERM>, filters list with given term",
|
desc: "search <TERM>, searches list with given term",
|
||||||
parser:(
|
parser:(
|
||||||
named!(filter<Action>,
|
named!(search<Action>,
|
||||||
do_parse!(
|
do_parse!(
|
||||||
ws!(tag!("filter"))
|
ws!(tag!("search"))
|
||||||
>> string: map_res!(call!(not_line_ending), std::str::from_utf8)
|
>> string: map_res!(call!(not_line_ending), std::str::from_utf8)
|
||||||
>> (Listing(Filter(String::from(string))))
|
>> (Listing(Search(String::from(string))))
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
)
|
)
|
||||||
|
@ -424,7 +424,7 @@ named!(
|
||||||
|
|
||||||
named!(
|
named!(
|
||||||
listing_action<Action>,
|
listing_action<Action>,
|
||||||
alt_complete!(toggle | envelope_action | filter | toggle_thread_snooze | open_in_new_tab | tag)
|
alt_complete!(toggle | envelope_action | search | toggle_thread_snooze | open_in_new_tab | tag)
|
||||||
);
|
);
|
||||||
|
|
||||||
named!(
|
named!(
|
||||||
|
|
|
@ -43,7 +43,7 @@ pub enum ListingAction {
|
||||||
SetThreaded,
|
SetThreaded,
|
||||||
SetCompact,
|
SetCompact,
|
||||||
SetConversations,
|
SetConversations,
|
||||||
Filter(String),
|
Search(String),
|
||||||
SetSeen,
|
SetSeen,
|
||||||
SetUnseen,
|
SetUnseen,
|
||||||
Delete,
|
Delete,
|
||||||
|
|
Loading…
Reference in New Issue