weechat icon indicating copy to clipboard operation
weechat copied to clipboard

Autocomplete nickname when colon is attached to prefix

Open jeffreyroberts opened this issue 7 years ago • 11 comments

Bug, feature, or question?

feature

Current behavior

nic:

results in

nic:

Desired behavior

would be dope if it did autocomplete like BitchX

nickname:

jeffreyroberts avatar Jun 20 '18 01:06 jeffreyroberts

why not pressing [TAB] instead of colon? nic[tab] should autocomplete to nickname:

weechatter avatar Jun 20 '18 04:06 weechatter

BitchX does both, Tab for autocomplete as well as :

I personally just made the change from BitchX to weechat today, im sure others will appreciate this feature as well =]

jeffreyroberts avatar Jun 20 '18 06:06 jeffreyroberts

What does BitchX do when there are multiple nicks? eg: nic1 , nic2 , nic3 and you do nic:

complete with last spoken?

IMO this could be also done with a script as well

weechatter avatar Jun 20 '18 15:06 weechatter

[11:17AM] remo, efu:

It appears BitchX doesn't do anything when there are multiple nicknames behind the colon

jeffreyroberts avatar Jun 20 '18 15:06 jeffreyroberts

@jeffreyroberts I think @weechatter means what if you do "nic:" and you have "niceguy", "nicotine", "nicknacks" and "nickelback" in the channel. I don't know about BitchX, but X-Chat when using tab completes the first name alphabetically, and hitting tab again will cycle through the list of nicks with the prefix you had entered.

judwhite avatar Jun 27 '18 06:06 judwhite

I also think autocompletion for nicknames is a very useful feature. I might look into it myself

Should autocompletion work everywhere in the input message, or just when you are starting to type the message, and not somewhere in the middle?

jjdredd avatar Feb 17 '21 06:02 jjdredd

there are a couple of options for completion, like a "inline" completion, see /fset weechat.completion

weechatter avatar Feb 17 '21 08:02 weechatter

I have found several vars that control nick completion.

weechat.completion.nick_completer
weechat.completion.nick_first_only
weechat.completion.nick_ignore_chars

Does this mean that nick completion feature is already implemented?

jjdredd avatar Feb 17 '21 18:02 jjdredd

@jjdredd: Yes, WeeChat has nick completion. What this issue is asking for is being able to complete a nick after typing a partial nick and :. If you don't type the : it works fine.

trygveaa avatar Feb 17 '21 19:02 trygveaa

Oh, my bad. So I guess this:

@jeffreyroberts I think @weechatter means what if you do "nic:" and you have "niceguy", "nicotine", "nicknacks" and "nickelback" in the channel. I don't know about BitchX, but X-Chat when using tab completes the first name alphabetically, and hitting tab again will cycle through the list of nicks with the prefix you had entered.

is the desired behavior?

jjdredd avatar Feb 17 '21 19:02 jjdredd

@jjdredd : nick completion is part of core and implemented since begin of time :-D

jeffreyroberts asked for a function when you "nic:" (double point instead of TAB) for autocomplete. For me, a bit pointless, because you have TAB and it will autocomplete nick and add a char behind the nick (weechat.completion.nick_completer).

Therefore i asked what happen when you "nic:" and the nicklist has different matches like "niclas", "nicolaus", nice". in weechat you can cycle through the nicks.

weechatter avatar Feb 18 '21 07:02 weechatter