Follow us on Google+ Follow us on Facebook Follow us on Twitter

Opened 5 years ago

Last modified 21 months ago

#466 assigned enhancement

Command-specific tab completion in kernel console

Reported by: Vojtech Horky Owned by: Aurelio Colosimo
Priority: minor Milestone:
Component: helenos/kernel/generic Version: mainline
Keywords: tab, completion, first-patch Cc:
Blocker for: Depends on:
See also: #50

Description

Current mainline (rev. 1539) offers tab completion of kernel console commands and hints listing (see #50). The actual command is completed from list of commands. For arguments, symbol table is searched.

It would be more convenient to use this completion for call* commands only and provide context-specific completion for other commands. For example, test would offer list of existing tests while ipc could list existing tasks.

For the ipc or similar commands, the hint listing could be made more user-friendly by printing task name next to its number.

Printing the hints in more columns could be a next step.

Implementation note (idea): to avoid code repetition, command structure could be extended with two callback function - one for getting next hint and one for retrieving hits count for given prefix.

Change History (3)

comment:1 Changed 4 years ago by Vojtech Horky

Keywords: first-patch added

comment:2 Changed 22 months ago by Aurelio Colosimo

Owner: changed from Jakub Jermář to Aurelio Colosimo
Status: newassigned

comment:3 Changed 21 months ago by Aurelio Colosimo

A first implementation is in mainline, starting from rev. 2431 and improved in rev. 2438.
The callback mechanism is provided and hints may be given for any command, just by implementing the corresponding enumeration callback. At present, arguments hint is implemented for call* and test commands.

Note: See TracTickets for help on using tickets.