A follow up about command tab completion.

In my branch:

bzr branch lp:~aurelio-x/helenos/kcon-devel

I just pushed a couple of patches (2435 and 2436) which fixes the count on arguments number as described in my previous email (below). Actually, this is done by the first one (2435), whereas the second (2436) is a further improvement about tab completion: I found out that, counting number of args, I could take into account the special case position=0, by giving the possibility to tab the first char too, obtaining the list of available commands. I think it's a nice feature, but feel free to discard it if not desired.

Thanks

Aurelio


On 10/03/2016 07:58, Aurelio Colosimo wrote:
Hi Jakub

Very nice! I merged this in mainline,2431.

Ok thank you so much.

I also noticed one additional nit. There seems to be some kind of hint
recursion. For example, you will still be getting hints when you type:

decribe describe describe describe

Can you please fix this little issue?

I'm not sure I'm understanding what you mean. I don't see any
"recursion" with 'describe' command. If I just tab once "describe des",
I get 'describe describe' and its answer is:
describe - <command> Describe specified command.
Syntax: describe command_name

I guess the issue you're experiencing is related to the lack of a check
on the number of arguments when hints are enumerated, so you will get
hints for the 2nd, 3rd, 4th parameters even if the command needs one
parameter only. It is the same if you go on tabbing:
describe halt halt halt
or:
test btree1 btree1 btree1

This check about the number of arguments is not there at present; I may
try to implement it. I will let you know soon.

Thanks

Aurelio

_______________________________________________
HelenOS-devel mailing list
[email protected]
http://lists.modry.cz/listinfo/helenos-devel



_______________________________________________
HelenOS-devel mailing list
[email protected]
http://lists.modry.cz/listinfo/helenos-devel

Reply via email to