Command Launcher with autocomplete

Registered by cmulk

Taken from the plugin suggestions blueprint:

11) $PATH search functionality
Similar to Gnome's "Run Application" dialog, Cardapio could search for executables that exist in the user's path. So, for example, typing "me" would show all programs starting with "me" in $PATH, such as "metacity", "mencoder", "meld", etc. Also, if there are spaces in the search query, then only the first word should be searched, while the others treated as parameters. So you could do things like running "killall gnome-panel" or "metacity --replace" and so on.

This seems very interesting and useful so I would like to start working on this plugin. I have a very simple prototype of a command launcher working, but without any of the nifty autocomplete features. I decided to make this a separate blueprint in order to get some ideas from everyone

Blueprint information

Status:
Complete
Approver:
None
Priority:
Low
Drafter:
None
Direction:
Needs approval
Assignee:
cmulk
Definition:
Approved
Series goal:
None
Implementation:
Implemented
Milestone target:
None
Started by
cmulk
Completed by
cmulk

Related branches

Sprints

Whiteboard

[milky2313 2010-08-24]

A couple of questions:
Does anyone know how to tap into the TAB auto-completion function of bash? It would be great to take the possible outputs from the TAB completion of a command and use them as the search results in the cardapio menu. Otherwise, the plugin can just manually search the $PATH on its own.

In what order do you think the auto-complete results should appear? Using bash TAB completion, they are listed in alphabetical order. Ideally they could be listed in order of what commands are used most, but I'm not sure that this is possible...

---------------------
[tvst 2010-08-26]

I really can't help you there, but I just wanted to write here a "+1" for this blueprint :)

(?)

Work Items

This blueprint contains Public information 
Everyone can see this information.

Subscribers

No subscribers.