fugazi-io / webclient

web based terminal application for executing local and remote commands
http://fugazi.io
28 stars 12 forks source link

Group suggestions #55

Open nitzantomer opened 7 years ago

nitzantomer commented 7 years ago

The suggestions panel can be a bit overwhelming because all the syntax rules for a command are included.

For example the suggestions for input:

get

Are:

io.fugazi.net.http  get  url|url  data|map  contentType|contentType
io.fugazi.net.http  get  url|url
io.fugazi.net.http  get  url|url  data|string  contentType|contentType
io.fugazi.net.http  get  url|url  data|string  contentType|contentType  headers|map
io.fugazi.net.http  get  url|url  data|string  contentType|contentType  headers|map  timeout|number
io.fugazi.net.http  get  url|url  data|string  contentType|contentType  timeout|number
io.fugazi.net.http  get  url|url  data|string  headers|map
io.fugazi.net.http  get  url|url  data|string  headers|map  timeout|number
io.fugazi.net.http  get  url|url  data|string  timeout|number
io.fugazi.net.http  get  url|url  data|map
io.fugazi.net.http  get  url|url  data|string
io.fugazi.net.http  get  url|url  data|map  contentType|contentType  headers|map
io.fugazi.net.http  get  url|url  data|map  contentType|contentType  headers|map  timeout|number
io.fugazi.net.http  get  url|url  data|map  contentType|contentType  timeout|number
io.fugazi.net.http  get  url|url  data|map  headers|map
io.fugazi.net.http  get  url|url  data|map  headers|map  timeout|number
io.fugazi.net.http  get  url|url  data|map  timeout|number
io.fugazi.terminal  name|string=value|any
io.fugazi.terminal  set  name|string=value|any
io.fugazi.terminal  let  name|string=value|any

How it should be

For get:

io.fugazi.net.http  get  url|url ...
io.fugazi.terminal  name|string=value|any
io.fugazi.terminal  set  name|string=value|any
io.fugazi.terminal  let  name|string=value|any

For get "http://example.com":

io.fugazi.net.http  get  url|url 
io.fugazi.net.http  get  url|url  data|string ...
io.fugazi.net.http  get  url|url  data|map ...

And so on.
Notice that the ... should appear as part of the suggestion.