Page 1 of 1

Remove run command dialogue entirely

PostPosted: Wed Dec 09, 2015 05:54
by lightonflux
If you press / a dialogue opens where you can input your commands. Sadly this dialogue is very limited and dumb. You can't get previous commands (via arrow keys) or use tab completion.

In my opinion it would be beneficial to remove the dialogue and add the functionality to the console.

So you would have F10 for the console and it would behave like it does now.

But when you press / the consoles opens and closes automatically after your confirm the command with Enter.

This would have the advantage that you can use the feature of the console and nobody has to maintain the code for the run command dialogue.

Re: Remove run command dialogue entirely

PostPosted: Wed Dec 09, 2015 05:55
by benrob0329
+1

Re: Remove run command dialogue entirely

PostPosted: Wed Dec 09, 2015 15:53
by Minetestforfun
+1

Re: Remove run command dialogue entirely

PostPosted: Wed Dec 09, 2015 20:40
by kaadmy
+1

Re: Remove run command dialogue entirely

PostPosted: Thu Dec 10, 2015 21:00
by Amaz
I coded this quickly: https://github.com/Amaz1/minetest/tree/ ... r-commands (I based it on https://github.com/minetest/minetest/pull/1952)

However, I don't really know C++, so my implementation of it is probably pretty rubbish!

Re: Remove run command dialogue entirely

PostPosted: Thu Dec 17, 2015 12:01
by orwell
In my opinion, the chat dialogue (T) is completely useless too, since there is a console (F10) which offers much more functionality.

It is sad that you can't set the key for the console to T or any other letter, because if you type a T the console will close. I suggest the following changes:
1. If the key binding for "Console" is a typeable character, this binding won't close the console but instead type the character.
2. ESC closes the console WITHOUT opening the pause menu

Re: Remove run command dialogue entirely

PostPosted: Thu Dec 17, 2015 12:59
by everamzah
I think a strong consideration should be made for the copy/paste functionality of the chat/run dialog, which doesn't seem to exist in the console.

+1 for bindable console key, so I can put it on tilde where it belongs. ;)

Re: Remove run command dialogue entirely

PostPosted: Thu Dec 17, 2015 16:29
by Dragonop
+1

Re: Remove run command dialogue entirely

PostPosted: Thu Dec 17, 2015 21:14
by kaadmy
The console key's already bindable, but just without the UI.
You can do it through the config file.

Re: Remove run command dialogue entirely

PostPosted: Fri Dec 18, 2015 08:58
by orwell
kaadmy wrote:The console key's already bindable, but just without the UI.
You can do it through the config file.

In 0.4.13 stable, it is still in the "change keys" dialog.
I just wanted to say that it's impossible to type in the character of the key you binded "console" to, because this closes the console instead of typing the character. F10 is not a character, so this is not a problem, but for 'T'(for example) this is a problem.
Try it out: Bind "console" to T and type the word minetest into the console.

Re: Remove run command dialogue entirely

PostPosted: Fri Dec 18, 2015 19:42
by kaadmy
The way Quake's (Xonotic) console works is that pressing escape closes the console, and the grave key works too, but only if there's no text on the prompt.