Page 1 of 1

Chat command history

PostPosted: Sun Sep 20, 2015 00:47
by Exilyth
Today I built some structures, using [WorldEdit] to help speed up the process.
Still, progress was a bit slow because I had to type the chat commands over and over again.
Being able to press a button to go through a chat command history would have helped a lot.

I think remembering what a player said (if it started with "/") in a list and setting the text line in the chat window to the next or previous remembered entry whenever a certain key is pressed would suffice.

http://dev.minetest.net/minetest.regist ... at_message is the hook for chat messages.

How do you check if the chat window is open?
How do you react to a certain key being pressed when it is?


If I wasn't so tired and on my way to bed, I'd try and hack something together.
Maybe someone beats me to it, that would be great.
Anyway, good night for now.

Re: Chat command history

PostPosted: Sun Sep 20, 2015 09:15
by Dartmouth
unified_inventory has buttons for basically all WE functions in the inventory, no need for commands at all. For some reason, saving and loading schematics through the GUI doesn't work though.

Re: Chat command history

PostPosted: Sun Sep 20, 2015 10:05
by Exilyth
Mhh... I see. World Edit v1.0 doesn't have the gui, but the development version from github does.

Anyway, I searched some and found that according to this thead
viewtopic.php?f=5&t=13106
pressing F10 gives a proper console with command completion and history.

Re: Chat command history

PostPosted: Sun Sep 20, 2015 10:07
by rubenwardy
if you press F10, a chat terminal with history comes up.

Re: Chat command history

PostPosted: Sun Sep 20, 2015 16:03
by Don
Too bad you don't get the history when pressing t. It should be linked to f10.

Re: Chat command history

PostPosted: Mon Sep 21, 2015 16:45
by kaadmy
Pressing T is still a formspec that has a field in it, it can't really be customized much, although changing the C++ code might be a hacky/buggy fix.