-
-
Notifications
You must be signed in to change notification settings - Fork 187
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add quote autocompletion for previous messages #1651
Add quote autocompletion for previous messages #1651
Conversation
Fixes profanity-im#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.
|
Debian 12 has 2.66.8 |
Ok, I better change that then |
You can also put some ifdef around it (I think we have that in other parts). And later when all distros have this version of the lib we will remove the alternative way. |
Sorry I don't know how to do that |
|
||
GString* replace_with = g_string_new("> "); | ||
g_string_append(replace_with, quoted_result); | ||
g_string_append(replace_with, "\n"); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this working for you? When I open in the editor I'm still on the same line.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If I open it in vim no, if I open it in another editor yes. Also if I don't open it in editor and just write something, the newline is indeed present.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ok!
Fixes #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.
I'm not sure if win_quote_autocomplete is in the correct file. I thought ui/window_list.c might have also been a good place to put it in since there are some other related functions there.