I would love to see tab completion, however, if we're going to do this, we might also want to add 'type as you go' style completion. That would mean we'd need a callback when the console is receiving input (perhaps only alphanumeric input?) which would receive the partial buffer, and return a list of possible commands. If we add some configuration into this, we could have the options for the call back to fire on 'alphanumeric' input, or a specific key press (which would do the tab style)

--Chris

On 7/29/06, Pablo Martin <[EMAIL PROTECTED]> wrote:
Hi!

I've been looking at adding autocompletion to the python mode inside cel
console, which uses iConsoleInput.

The problem is iConsoleInput lacks support for autocompletion, basically
two different  things can be done to give external users of this
interface the capability to autocomplete commands:

- A way to get/set the text in buffer from an incomplete command line.

or

- A callback for tab like iConsoleTabCallback or iConsoleCompletion
Callback (this could receive the incomplete buffer and return a new
command). Additionally maybe a method to set the key for autocompletion.

What do people think? Would any of these be appropiate for the standard
input console? I like the second option more (define a callback for user
selectable completion key).

Greetings!
  Pablo Martin



-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Crystal-main mailing list
Crystal-main@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/crystal-main
Unsubscribe: mailto: [EMAIL PROTECTED]?subject=unsubscribe



--
Christopher S. Case
Project Head
The Seventh Game: Precursors
http://games.g33xnexus.com/precursors
(716) 785 - 5553(Cellphone)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
"To err is human. To forgive, divine.
To fix mistakes, now that's an Engineer."
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Crystal-main mailing list
Crystal-main@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/crystal-main
Unsubscribe: mailto:[EMAIL PROTECTED]

Reply via email to