little bit'o console autocomplete wishlistness

Discuss anything ZDoom-related that doesn't fall into one of the other categories.
auxois
Posts: 13
Joined: Fri Sep 26, 2003 7:14 am
Location: texas

little bit'o console autocomplete wishlistness

Post by auxois »

<auxois> anyway
<auxois> you use doomsday much?
<SlayeR`> its not as if he disregards anything people say on the forums
<SlayeR`> not much
<SlayeR`> I have it though
<auxois> well
<auxois> you know how in the console
<auxois> when you type something
<auxois> and then hit tab
<auxois> it shows you all the possible completions
<auxois> yeah
<auxois> that fucking kicks ass
<auxois> and I would love to see that implemented in zdoom
<auxois> (gl)
<auxois> lots of Quake ports do that too
<auxois> quake 3 does it IIRC
<SlayeR`> hmm
<SlayeR`> you should probably post that in the ZDoom forum
<SlayeR`> since it really doesn't apply to the GL renderer itself

heh. I love you Randy.
User avatar
Hirogen2
Posts: 2033
Joined: Sat Jul 19, 2003 6:15 am
Operating System Version (Optional): Tumbleweed x64
Graphics Processor: Intel with Vulkan/Metal Support
Location: Central Germany

Post by Hirogen2 »

It's already in, like about... ZDoom 1.23 beta 33 or even earlier.
User avatar
Graf Zahl
Lead GZDoom+Raze Developer
Lead GZDoom+Raze Developer
Posts: 49204
Joined: Sat Jul 19, 2003 10:19 am
Location: Germany

Post by Graf Zahl »

ZDoom already has a Tab-completion feature.
User avatar
Chris
Posts: 2960
Joined: Thu Jul 17, 2003 12:07 am
Graphics Processor: ATI/AMD with Vulkan/Metal Support

Post by Chris »

I think he means an option where when you press tab, it'll list all cvars and commands in a list, and return you to an empty(?) prompt.

Code: Select all

]vid_((tab))
    vid_vsync
    vid_defbits
    ect...
]
User avatar
HotWax
Posts: 10002
Joined: Fri Jul 18, 2003 6:18 pm
Location: Idaho Falls, ID

Post by HotWax »

In that case, he's wrong about Quake 3. It uses an auto-complete system just like the one in ZDoom. It's more handy anyway. You only have to type the first few letters of the command, hit TAB, and then hit enter. Or if the first command that comes up is not the right one, just keep hitting TAB (or shift-TAB to go backwards) until the right one comes up. Simple as that.

BTW, if you want to see all the commands starting with xyz... or all the commands that have xyz somewhere in them... or just the ones with xyz at the end... use the cmdlist/cvarlist commands. They work like Quake 3 as well.

Code: Select all

] cvarlist vid_*
     vid_vsync
     vid_defbits
     ...etc...

]
User avatar
Chris
Posts: 2960
Joined: Thu Jul 17, 2003 12:07 am
Graphics Processor: ATI/AMD with Vulkan/Metal Support

Post by Chris »

IIRC, jDoom had an option where you could change the behavior of tab-completion to either the cycle-through method, as ZDoom currently uses, or fully listing them. Not saying I really care, most of the time I prefer cycling through, but sometimes I'm just curious as to what exists. The cvarlist/cmdlist commands looks to do the job nicely, with the exception that it's two different commands. Maybe tab completion could be extended so that pressing ctrl+tab or alt+tab automatically invokes them both?
User avatar
Hirogen2
Posts: 2033
Joined: Sat Jul 19, 2003 6:15 am
Operating System Version (Optional): Tumbleweed x64
Graphics Processor: Intel with Vulkan/Metal Support
Location: Central Germany

Post by Hirogen2 »

Ah, he wants a tab-completition feature à la Bash, which behaves as follows:
Entering "vid_" and then pressing (TAB) either 1. completes the command if it is obvious (i.e. if there is only one command which matches the starting vid_), 2. beeps.
If 2. applies, then hitting TAB again after brings up a list of available commands starting with vid_, each consecutive TAB hit (only if nothing else than TAB has been done) will show the list again, without a beep.
auxois
Posts: 13
Joined: Fri Sep 26, 2003 7:14 am
Location: texas

heh

Post by auxois »

I was pretty sure Q3A had that option at one point, but I can't find it in 1.17, 1.29, nor 1.32, so I dunno. Perhaps I'm just thinking of Q2MAX or something.

In any case I do find it extremelymuch more useful when experimenting with the console. I mean, the way it does it now is all fine and well if you know what command or cvar you're looking for, but if you're just screwing around in the console the other way is far more convenient.

Just an idea.

[edit]Sorry if this was an ages-old bump - I just went directly to the thread from my e-mail. Haven't been home; haven't checked my e-mail in a few days.[/edit]
User avatar
HotWax
Posts: 10002
Joined: Fri Jul 18, 2003 6:18 pm
Location: Idaho Falls, ID

Post by HotWax »

Holy tab lists, Batman! I never even knew Q3A supported this feature.

Apparently we're both right. Q3A uses this method of TAB-completion:

If only one command starts with the typed letters, that command is placed on the line.

Example:

] \g_sync[TAB]

becomes:

] \g_synchronousClients

If there are multiple commands that begin with the typed string, they are listed out to the console, one on each line. THEN, any common letters shared by all commands are added to the string and it is placed on the following prompt, like so:

] \r_t[TAB]
r_texturebits
r_textureMode
] \r_texture
auxois
Posts: 13
Joined: Fri Sep 26, 2003 7:14 am
Location: texas

Post by auxois »

Yeh. Knew it was something like that.

Your nick wouldn't happen to have anything to do with a Beck song, eh?
User avatar
HotWax
Posts: 10002
Joined: Fri Jul 18, 2003 6:18 pm
Location: Idaho Falls, ID

Post by HotWax »

Mine? No.

Return to “General”