Page 1 of 1

Tab Completion

PostPosted: Mon Aug 24, 2015 18:20
by Evergreen
I recently saw this feature request on github, and thought it deserved some more attention. Tab completion is something I miss a lot, considering that it takes quite a while to type out commands (such as /grant singleplayer all). This would entail giving a way of adding custom completions to user defined commands. This could be in the form of a function which given a string to complete, returns a list of possible completions. Any ideas on this would be welcome.

Re: Tab Completion

PostPosted: Mon Aug 24, 2015 18:48
by everamzah
Tab completion on /give and /giveme for item strings would be amazing.

Re: Tab Completion

PostPosted: Tue Aug 25, 2015 05:54
by philipbenr
TAB COMPLETION IS THE BEST!!!

Sorry, I really love it, and it is the best way to get around a terminal or command prompt. I still occasionally do it in text editors... The hit myself for being so oblivious. #JustLinuxThings

Re: Tab Completion

PostPosted: Tue Aug 25, 2015 20:41
by lightonflux
/me subscribed to the issue

A history feature would also help. So you can cycle through previous commands with arrow up and down.

Re: Tab Completion

PostPosted: Tue Aug 25, 2015 21:12
by Sokomine
The console started with F10 already comes with a history. It also has some level of tab-autocompletition; at least it does work for player names most of the time. What is typed in the normal chat window does not show up there.

Re: Tab Completion

PostPosted: Tue Aug 25, 2015 22:58
by everamzah
I still try to hit tilde. The chat input dialog, if it were linked to the console, you would get the tab-complete and history features automatically.

Re: Tab Completion

PostPosted: Wed Aug 26, 2015 01:34
by Don
I would like it if the console(t) and f10 were linked.

Re: Tab Completion

PostPosted: Wed Aug 26, 2015 03:02
by philipbenr
Yeah. Or you could change the key binding from F10 to something else, like Y or Alt or somewhere easier to reach with your thumb/fingers.