ladybird/Shell
William McPherson 4ae8d929b4 Shell: Improve tab completion behaviour
A space is added if only one match is found, but we avoid adding
redundant spaces.

We complete "empty" tokens, i.e. when the cursor is at the start of the
line or in front of a space. For example:
    mkdir test
    cd test
    touch test
    chmod +x test
    export PATH=/home/anon/test
Now if you press tab, or space and then tab, you will get "test". Notice
that you also get a space.

Completion is now done relative to the cursor. You can enter two words
and then go back and complete the first one.
2019-12-11 12:10:52 +01:00
..
GlobalState.h Shell: Update termios settings to match line discipline. 2019-10-20 10:51:12 +02:00
LineEditor.cpp Shell: Improve tab completion behaviour 2019-12-11 12:10:52 +01:00
LineEditor.h Shell: Improve tab completion behaviour 2019-12-11 12:10:52 +01:00
main.cpp AK: Use size_t for the length of strings 2019-12-09 17:51:21 +01:00
Makefile Fix "make clean" not deleting app binaries. 2019-05-13 14:56:18 +02:00
Parser.cpp AK: Use size_t for the length of strings 2019-12-09 17:51:21 +01:00
Parser.h AK: Rename <AK/AKString.h> to <AK/String.h> 2019-09-06 15:36:54 +02:00