From d1a33a3a167d47541561ca9597d2d5f28431605f Mon Sep 17 00:00:00 2001 From: Andy Wortman Date: Sat, 11 Nov 2017 16:51:39 -0800 Subject: add a little more help info, describe tweets/compose mode/commands --- src/main.rs | 22 ++++++++++++++++++++-- 1 file changed, 20 insertions(+), 2 deletions(-) (limited to 'src/main.rs') diff --git a/src/main.rs b/src/main.rs index f2842c4..031ad37 100644 --- a/src/main.rs +++ b/src/main.rs @@ -381,9 +381,27 @@ fn do_ui(ui_rx_orig: chan::Receiver { - let mut help_lines = vec![]; + let mut help_lines: Vec = vec![ + " Tweets", + " ", + "Tweets are identified in four (really, three) ways:", + " twitter:1235 - there's no local copy for it, when you look it up I'll have to ask Twitter for it.", + // TODO: + " YYYYMMDD:NNNN - NNNN'th tweet on YYYYMMDD. Numbered as I got them, not by date tweet was made. For example, 20170803:NNNN. NOTE: not currently well supported. Don't even try to use.", + " :NNNN - NNNN'th tweet since the first I saw.", + // TODO: + " NNNN - NNNN'th tweet of today. Again, numbered by the order I saw it. NOTE: currently this isn't well supported. Use the :ID format above with the same number for now", + " (ex: you want to reply to a tweet `id 1234`, do `rep :1234`, with :, rather than without)", + " ", + "Tweets can be made immediately by providing the text as part of a command,", + " (like `t hello, world!`)", + "or in \"compose mode\" with relevant context shown. If you end up in compose mode and want to get back to a normal prompt, press escape.", + " ", + " Commands", + " " + ].into_iter().map(|x| x.to_owned()).collect(); for command in commands::COMMANDS { - help_lines.push(format!("{} {}", command.keyword, command.help_str)); + help_lines.push(format!("{}{: