mirror of
https://github.com/irssi/irssi.git
synced 2026-08-22 01:52:19 +02:00
Implement social media style @nick completion.
Autocomplete "@nick " instead of traditional IRC style "nick: " enabled by /set completion_char @. Use nick<tab> as usual.
This commit is contained in:
parent
7654f30d04
commit
1627a0c7e0
1 changed files with 2 additions and 1 deletions
|
|
@ -378,7 +378,8 @@ static void complete_from_nicklist(GList **outlist, CHANNEL_REC *channel,
|
|||
: g_ascii_strncasecmp(rec->nick, nick, len)) == 0 &&
|
||||
(match_case? glist_find_string(*outlist, rec->nick)
|
||||
: glist_find_icase_string(*outlist, rec->nick)) == NULL) {
|
||||
str = g_strconcat(rec->nick, suffix, NULL);
|
||||
/* use twitter style @nick if completion_char is '@', otherwise completion_char goes after nick */
|
||||
str = *suffix == '@' ? g_strconcat(suffix, rec->nick, NULL) : g_strconcat(rec->nick, suffix, NULL);
|
||||
if (completion_lowercase) ascii_strdown(str);
|
||||
if (rec->own)
|
||||
ownlist = g_list_append(ownlist, str);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue