Skip to content
This repository has been archived by the owner on Jul 2, 2019. It is now read-only.

Tab completion for Actor targets #163

Open
scionaltera opened this issue Oct 29, 2018 · 0 comments
Open

Tab completion for Actor targets #163

scionaltera opened this issue Oct 29, 2018 · 0 comments
Labels
enhancement New feature or request help wanted Good issue for contributors to look at

Comments

@scionaltera
Copy link
Owner

It would be really convenient if, when you type a command into the input bar like "GET " and hit TAB you'd get some auto-completion based on the items that are on the floor in the room you're in. "DROP " would complete based on items in your inventory, etc.

There are a few tricks to this one:

  1. Tab completion happens on the client. It's going to need to make requests for information to the server but the bulk of this task is a simple, performant UI element that offers completion choices. I'm not sure what the right one is, but my go-to idea would be something like what bash does.
  2. Tab completion needs to be context aware. You already know which command has been typed, so you can find out what the arguments are for that command via a REST call or STOMP message to the server and request the appropriate list of objects for the completion.
  3. Completion for commands and other parts of the syntax will be covered in other tickets, but this should provide a framework for adding those later.
@scionaltera scionaltera added enhancement New feature or request help wanted Good issue for contributors to look at labels Oct 29, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request help wanted Good issue for contributors to look at
Projects
None yet
Development

No branches or pull requests

1 participant