| @@ -188,8 +188,6 @@ mod parse { |
| 188 | pub fn parse_started_strings(input: &str) -> IResult<&str, (Vec<String>, &str)> { |
188 | pub fn parse_started_strings(input: &str) -> IResult<&str, (Vec<String>, &str)> { |
| 189 | let (input, (mut args, mut last_arg_raw)) = |
189 | let (input, (mut args, mut last_arg_raw)) = |
| 190 | separated_list0_last_raw(space1, parse_string).parse(input)?; |
190 | separated_list0_last_raw(space1, parse_string).parse(input)?; |
| 191 | // let (input, mut args) = separated_list0_last_raw(space1, parse_string).parse(input)?; |
| |
| 192 | // let last_arg_raw = todo!(); |
| |
| 193 | |
191 | |
| 194 | let (input, end_arg) = if args.is_empty() { |
192 | let (input, end_arg) = if args.is_empty() { |
| 195 | opt(parse_last_arg).parse(input)? |
193 | opt(parse_last_arg).parse(input)? |
| @@ -409,7 +407,7 @@ fn complete_iamb_create(args: Vec<String>) -> Vec<String> { |
| 409 | } |
407 | } |
| 410 | |
408 | |
| 411 | /// Tab completion for `:room` |
409 | /// Tab completion for `:room` |
| 412 | // TODO: Check whether we can get the id of the focused room to improve |
410 | // XXX: Check whether we can get the id of the focused room to improve |
| 413 | // "kick","ban","unban", ".. unset" and "dm/tag set/unset" |
411 | // "kick","ban","unban", ".. unset" and "dm/tag set/unset" |
| 414 | fn complete_iamb_room(args: Vec<String>, store: &ChatStore) -> Vec<String> { |
412 | fn complete_iamb_room(args: Vec<String>, store: &ChatStore) -> Vec<String> { |
| 415 | let subcmds = [ |
413 | let subcmds = [ |
| @@ -602,7 +600,7 @@ fn complete_cmdarg( |
| 602 | |
600 | |
| 603 | "space" => complete_iamb_space(args, store), |
601 | "space" => complete_iamb_space(args, store), |
| 604 | |
602 | |
| 605 | // TODO: Check whether we can get the id of the focused message to improve completion |
603 | // XXX: Check whether we can get the id of the focused message to improve completion |
| 606 | "unreact" if args.len() == 1 => complete_emoji(&args[0], store), |
604 | "unreact" if args.len() == 1 => complete_emoji(&args[0], store), |
| 607 | "unreact" => vec![], |
605 | "unreact" => vec![], |
| 608 | |
606 | |