Closed Bug 678519 Opened 13 years ago Closed 13 years ago

GCLI needs to distinguish between sufficient completions and insufficient ones

Categories

(DevTools :: General, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: jwalker, Unassigned)

References

Details

(Whiteboard: [minotaur][best:1d, likely:1d, worst:1d])

For example:
> hel<TAB>

Should complete to:
> help_|

(i.e. there needs to be a space added as part of the completion because:
- That saves keypresses
- It's what zsh/bash etc do
- otherwise the cursor is inside the 'command' and we provide help for the command rather than what's next

However:
> eval window.docu<TAB>

Using the same logic we should complete to:
> eval window.document_|

However this is really annoying because it's likely that the user want's to continue typing, digging into document.
We need to support this way of doing things because:
- this is what Firebug/webkit inspector etc do.
- completing too much is really annoying


To further complicate things:
> eval window.document.titl<TAB>

Clearly in this case we need the space added.
Status: NEW → RESOLVED
Closed: 13 years ago
Resolution: --- → FIXED
Product: Firefox → DevTools
You need to log in before you can comment on or make changes to this bug.