Allow for second level "completion" on commands

RESOLVED FIXED

Status

Skywriter
Command Line
P3
normal
RESOLVED FIXED
9 years ago
9 years ago

People

(Reporter: Dion Almaer, Unassigned)

Tracking

Trunk
x86
Mac OS X

Details

(Reporter)

Description

9 years ago
Right now we auto complete on the command name, but what about for subsequent command line arguments?
(Reporter)

Updated

9 years ago
Priority: -- → P2
Whiteboard: commandline

Updated

9 years ago
Priority: P2 → P3
Group: mozilla-corporation-confidential

Comment 1

9 years ago
I've done it somehow here http://jnjay.com:8000/rev/62c78bb7144e
however i still don't have an impression that this behaviour is simple and clear and that something could be done better with this completion, so i guess i want a suggestion ;-)

Comment 2

9 years ago
Same comment as above except that the link is now http://jnjay.com:8000/rev/ea9ed186ae49
I've updated that for the dojo
(Reporter)

Comment 3

9 years ago
Jay,

Thanks a lot for this. Good stuff. I made a few changes to allow for quoting arguments etc, which lets me do:

  alias getbespin "import http://hg.mozilla.org/labs/bespin/archive/tip.zip bespin"

I stubbed out a "complete" method on the objects themselves with the aim that it would be called, passing in the stuff after the command, and then this could work out what to do.

I didn't take this far as I started to chat with the Ubiquity guys, and they have this all nailed in a really nice way. Our goal is to take their parser and share it with Bespin.

What do you think?

Comment 4

9 years ago
Dion,

Actually i know nothing about Ubiquity but this sounds great. I'd like to take a look.
This bug was filed before Bespin went public and it currently targeted for the 0.1 line of development (or no line at all). Since there is unlikely to be any further 0.1.x release, please re-evaluate this bug: Has it already been fixed? Should it be pushed to a later release? Or is it no longer relevant?

[This has been a mass public service announcement.]
This is a mass migration from Mozilla Labs :: Bespin to Bespin :: Command Line.
Component: Bespin → Command Line
Product: Mozilla Labs → Bespin
QA Contact: bespin → command.line
Target Milestone: -- → ---
Whiteboard: commandline

Updated

9 years ago
Status: NEW → RESOLVED
Last Resolved: 9 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.