Commit 1ddc842c1c

1ddc842c1c141f1c633d28a90498fd541e032ab4

parent: 444ee62b4f

Unregistered key

vaw <git@nlih.de> · 2026-09-22 17:09 UTC
committer: <noreply@github.com>

Remove commented-out code (#729)

Layout: unified · split

docs/iamb.1 +1 −1
@@ -261,7 +261,7 @@ Delete the room's canonical alias.
261Show the room's canonical alias, if any is set. 261Show the room's canonical alias, if any is set.
262.It Sy ":room history show" 262.It Sy ":room history show"
263Show the history visibility setting for the current room. 263Show the history visibility setting for the current room.
264.It Sy ":room history set [mode]" .\" TODO: get options 264.It Sy ":room history set [mode]" .\" XXX: get options
265Set the history visibility for the current room. 265Set the history visibility for the current room.
266Valid modes are 266Valid modes are
267.Dq invited 267.Dq invited
src/completions.rs +2 −4
@@ -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"
414fn complete_iamb_room(args: Vec<String>, store: &ChatStore) -> Vec<String> { 412fn 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
src/windows/mod.rs +1 −1
@@ -60,7 +60,7 @@ fn name_and_labels<'a>(
60 room_membership: MatrixRoomState, 60 room_membership: MatrixRoomState,
61 style: Style, 61 style: Style,
62) -> (Span<'a>, Vec<Vec<Span<'static>>>) { 62) -> (Span<'a>, Vec<Vec<Span<'static>>>) {
63 // TODO: use different colors for "mention", "notification", "muted room" 63 // XXX: use different colors for "mention", "notification", "muted room"
64 let name_style = if unread.is_unread() { 64 let name_style = if unread.is_unread() {
65 style.add_modifier(StyleModifier::BOLD) 65 style.add_modifier(StyleModifier::BOLD)
66 } else { 66 } else {