Add quote autocompletion for previous messages

Fixes https://github.com/profanity-im/profanity/issues/1649

Type `>` then press tab or shift tab to autocomplete previous messages,
then type your reply and send message.
Newlines are replaced with newline followed by `> `.
A newline is added at the end so that the user can immediately type a
message without manually adding a new line.
This commit is contained in:
MarcoPolo-PasTonMolo
2022-03-21 00:10:07 +02:00
parent 09e7f63c79
commit 06ef6842e8
10 changed files with 93 additions and 1 deletions

View File

@@ -102,5 +102,7 @@ void win_close_reset_search_attempts(void);
void wins_add_urls_ac(const ProfWin* const win, const ProfMessage* const message);
char* wins_get_url(const char* const search_str, gboolean previous, void* context);
void wins_add_quotes_ac(const ProfWin* const win, const char* const message);
char* wins_get_quote(const char* const search_str, gboolean previous, void* context);
#endif