Did you know? [random xchat facts]
If you want to auto-remove files from the DCC windows when they are finished or aborted, you can /set dcc_remove 1. Great for file servers.
xchat.org
XChat IRC Client
 
 FAQFAQ   SearchSearch   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Tab-completion in 2.0.10
Goto page 1, 2  Next
 
Post new topic   Reply to topic    xchat.org Forum Index -> XChat
View previous topic :: View next topic  
Author Message
peterz



Joined: 09 Jun 2004
Posts: 1006
Location: Australia

PostPosted: Fri Jul 02, 2004 4:05 am    Post subject: Tab-completion in 2.0.10 Reply with quote

2.0.10 has completely re-written tab-completion code.

To preempt the endless questions about it, here's a quick guide to customizing its behaviour:

Bash style: /set completion_amount 0
Never print anything out style: /set completion_amount 999

Got any other questions about it? Ask pomac on this forum or on #xchat on freenode.
Back to top
View user's profile Send private message
NoBody



Joined: 14 Jun 2004
Posts: 118
Location: The Netherlands

PostPosted: Fri Jul 02, 2004 9:21 pm    Post subject: Reply with quote

exactly what should i understand under "tab completion"? Smile

Is it the way tabs fill the channel bar?
_________________
Linux/FreeBSD user and darn proud of it!
Back to top
View user's profile Send private message
LIM



Joined: 02 Jul 2004
Posts: 1
Location: Fort Wayne, IN, USA

PostPosted: Fri Jul 02, 2004 10:46 pm    Post subject: Tab Nick Completion Reply with quote

it means:

Tab Nick Completion

press Tab key to complete a nickname match.

I suppose the number is some amount of allowed fuzz factor in matching nicks...
Back to top
View user's profile Send private message
Khisanth



Joined: 10 Jun 2004
Posts: 1557

PostPosted: Sat Jul 03, 2004 2:56 am    Post subject: Reply with quote

the number is the amount of characters to match/complete before giving
you a list of possible completions(like the tab comletion before 2.0.10).
Back to top
View user's profile Send private message
NoBody



Joined: 14 Jun 2004
Posts: 118
Location: The Netherlands

PostPosted: Sat Jul 03, 2004 5:54 am    Post subject: Re: Tab Nick Completion Reply with quote

LIM wrote:
it means:

Tab Nick Completion

press Tab key to complete a nickname match.

I suppose the number is some amount of allowed fuzz factor in matching nicks...

lol that's another tab then i was thinking Wink

Well i'm a big fan of nick completion (use it a lot) so i'll try it out as soon as 2.0.10 is in the portage tree (Gentoo) Smile
_________________
Linux/FreeBSD user and darn proud of it!
Back to top
View user's profile Send private message
Q-collective



Joined: 05 Jul 2004
Posts: 9

PostPosted: Mon Jul 05, 2004 12:09 am    Post subject: Re: Tab Nick Completion Reply with quote

NoBody wrote:
LIM wrote:
it means:

Tab Nick Completion

press Tab key to complete a nickname match.

I suppose the number is some amount of allowed fuzz factor in matching nicks...

lol that's another tab then i was thinking Wink

Well i'm a big fan of nick completion (use it a lot) so i'll try it out as soon as 2.0.10 is in the portage tree (Gentoo) Smile


It's in portage Smile
Back to top
View user's profile Send private message
NoBody



Joined: 14 Jun 2004
Posts: 118
Location: The Netherlands

PostPosted: Mon Jul 05, 2004 1:33 am    Post subject: Re: Tab Nick Completion Reply with quote

Q-collective wrote:
NoBody wrote:
LIM wrote:
it means:

Tab Nick Completion

press Tab key to complete a nickname match.

I suppose the number is some amount of allowed fuzz factor in matching nicks...

lol that's another tab then i was thinking Wink

Well i'm a big fan of nick completion (use it a lot) so i'll try it out as soon as 2.0.10 is in the portage tree (Gentoo) Smile


It's in portage Smile

yeps i know... discovered it few minutes after i posted my previous message, i was too lazy to get back here and edit the reply Wink

Well, it seems nick completion is more mIRC-style now (depending on how completion_amount is set), which has it's advantages as well as it's disadvantages Smile
_________________
Linux/FreeBSD user and darn proud of it!
Back to top
View user's profile Send private message
Stuart_Gilbert



Joined: 07 Jul 2004
Posts: 2

PostPosted: Wed Jul 07, 2004 6:42 am    Post subject: Tab completion of plugin commands Reply with quote

I was reading the changelog when I noticed

Quote:
Plugin commands can now be tab-completed too (Frank Thieme).


I tested it out with a command that I have to display the currently playing iTunes track "/itunes".

i<tab> gives me "/IGNORE" and no amount of other tab presses will move it onto "/itunes" unlike nicks when there are more than one beginning with the same letter.

it<tab> does auto-complete to "/itunes" though, so the plugin is still working etc.

EDIT

Also, when a nick is not the first thing on the line it auto-completes once, but won't change the nick if there is more than one matching what I typed.

p<tab> will go to "Percy" but hitting tab again won't move it to "PunkRawkKid182134553542245@yahoo.com" or whatever.
Back to top
View user's profile Send private message
pizbit



Joined: 09 Jul 2004
Posts: 22

PostPosted: Fri Jul 09, 2004 9:50 am    Post subject: Reply with quote

I would like to be able to continue tabbing through even if there is no match because, well, typos suck.Smile
Eg say I'm in a channel and the only person begining with piz (me being 'pizbit' of course:D )
pix<tab>
Gives nothing, I'd like to to change to Pizbit and have the ability to continue tabbing.
Also great if it didn't stop tabbing at all because of the same reason, if I typo and hit tab I'm stuck with the wrong nick and I have to backspace do undo all the extra letters.
Yes I realise I wouldn't often be using tab completion on my own nick but it's just an example. *g*
Back to top
View user's profile Send private message
Khisanth



Joined: 10 Jun 2004
Posts: 1557

PostPosted: Fri Jul 09, 2004 3:21 pm    Post subject: Reply with quote

pizbit wrote:
I would like to be able to continue tabbing through even if there is no match because, well, typos suck.Smile
Eg say I'm in a channel and the only person begining with piz (me being 'pizbit' of course:D )
pix<tab>
Gives nothing, I'd like to to change to Pizbit and have the ability to continue tabbing.
Also great if it didn't stop tabbing at all because of the same reason, if I typo and hit tab I'm stuck with the wrong nick and I have to backspace do undo all the extra letters.
Yes I realise I wouldn't often be using tab completion on my own nick but it's just an example. *g*

The problem with continuing is that if you are in evern an average size
channel there will be a lot of people to cycle through.
Back to top
View user's profile Send private message
pizbit



Joined: 09 Jul 2004
Posts: 22

PostPosted: Fri Jul 09, 2004 3:43 pm    Post subject: Reply with quote

Hrm, one letter of error? Eg, it'd go through the normal process and if they kept holding down tab it'd remove the last letter(of what you hit tab on) and continue as if that was what you had typed to start off with.
Or simply one part of the cycle wouldn't be anything added onto what you typed.
Back to top
View user's profile Send private message
Khanboy



Joined: 06 Jul 2004
Posts: 14

PostPosted: Fri Jul 09, 2004 3:49 pm    Post subject: Reply with quote

Well pizbit, looks like it's time to grab the source and start making those diffs. =P
Back to top
View user's profile Send private message
pj-



Joined: 09 Jul 2004
Posts: 1

PostPosted: Fri Jul 09, 2004 8:16 pm    Post subject: Re: Tab completion of plugin commands Reply with quote

Stuart_Gilbert wrote:


EDIT

Also, when a nick is not the first thing on the line it auto-completes once, but won't change the nick if there is more than one matching what I typed.

p<tab> will go to "Percy" but hitting tab again won't move it to "PunkRawkKid182134553542245@yahoo.com" or whatever.



That happens to me too, except if I don't have a nick completion suffix, p<tab> at the beginning of a line would go to "Percy", but pressing tab again would do nothing.

I fired up 1.8.11 to see how its nick completion worked, because I remembered that it had cycling, and found that it is the opposite of 2.0.x. In 1.8.11, p<tab> at the beginning of a line would only work once, but p<tab> in the middle of a line would cycle through all P nicks. It would be sexcellent if xchat had cycling for nick completion anywhere in the line.

Also, is there any way to remove the space that appears after a completed nick? My pinky is getting tired from deleting the space so frequently.
Back to top
View user's profile Send private message
kevin



Joined: 10 Jul 2004
Posts: 4

PostPosted: Sun Jul 11, 2004 8:40 am    Post subject: Reply with quote

yup,

can u please explain what's the number after "/set completion_amount "

edit:
and what's the configuration to get it working like before??


thx
Back to top
View user's profile Send private message
Kyoshiro



Joined: 07 Jul 2004
Posts: 35

PostPosted: Sun Jul 11, 2004 1:03 pm    Post subject: Reply with quote

If I've understood correctly its behavior, that option allows you to specify a limit. Let's say you've set it to 5 and there are 10 nicks beginning with A, and 3 begining with AN.
- If you type a<tab>, xchat will print you the 10 nicks matching without completing.
- If you type an<tab>, xchat will complete to the 1st match and if you keep hitting <tab> again, it'll cycle through the matching list.

When the number of matching nicks is above the completion_amount, it shows the list with no completion, when it's below, it completes and cycles through the list.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    xchat.org Forum Index -> XChat All times are GMT
Goto page 1, 2  Next
Page 1 of 2

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group