1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2026-01-13 01:11:00 +00:00
serenity/Userland/Shell
ronak69 1453028975 Shell: Color bareword yellow if it's a prefix of at least one command
Before, if a bareword wasn't a runnable program's filename it got
colored red and white otherwise. Now, additionally it will be checked if
it is a "prefix" of a possible command and colored yellow if it is and
red if not.

Coloring this way provides another "feedback" to the user: If while
typing out a command name the color changes from yellow to red then a
typo occurred :^)

To check if a bareword is a prefix the `Shell::complete_program_name()`
function is utilized (if pressing tab gives you some suggestions then it
is a prefix).
2023-08-04 23:27:59 +03:30
..
Tests Everywhere: Use /bin/Shell as the shebang for Shell scripts 2023-02-13 23:00:15 +03:30
AST.cpp Shell: Color bareword yellow if it's a prefix of at least one command 2023-08-04 23:27:59 +03:30
AST.h Everywhere: Remove needless trailing semi-colons after functions 2023-07-08 10:32:56 +01:00
Builtin.cpp Shell: Add option Produce symbolic output to umask 2023-07-02 11:19:10 -06:00
CMakeLists.txt Everywhere: Use LibFileSystem where trivial 2023-03-21 19:03:21 +00:00
Execution.h Everywhere: Remove unused DeprecatedString includes 2023-04-09 22:00:54 +02:00
Formatter.cpp Shell: Stop lying about string types 2023-06-13 01:49:02 +02:00
Formatter.h Shell+LibCodeComprehension: Start replacing {Deprecated => }String 2023-02-28 15:52:24 +03:30
Forward.h Shell: Add support for heredocs 2021-04-29 20:25:56 +02:00
ImmediateFunctions.cpp Shell: Stop lying about string types 2023-06-13 01:49:02 +02:00
Job.cpp Shell: Fix (and paper over) various const-correctness issues 2023-02-21 00:54:04 +01:00
Job.h Shell: Fix (and paper over) various const-correctness issues 2023-02-21 00:54:04 +01:00
main.cpp Shell: Prefer File::read_until_eof over DeprecatedFile::read_all 2023-05-19 21:36:37 +02:00
NodeVisitor.cpp Everywhere: Stop using NonnullRefPtrVector 2023-03-06 23:46:35 +01:00
NodeVisitor.h Shell: Add support for heredocs 2021-04-29 20:25:56 +02:00
Parser.cpp Shell: Handle (most) errors in the parsers 2023-07-01 17:01:54 +03:30
Parser.h Everywhere: Stop using NonnullRefPtrVector 2023-03-06 23:46:35 +01:00
PosixLexer.cpp Shell: Correctly track nested expansions in POSIX mode 2023-08-04 13:28:59 +03:30
PosixLexer.h Shell: Correctly track nested expansions in POSIX mode 2023-08-04 13:28:59 +03:30
PosixParser.cpp Shell: Add support for the '!' POSIX pipeline prefix 2023-08-04 13:28:59 +03:30
PosixParser.h Shell: Add support for the '!' POSIX pipeline prefix 2023-08-04 13:28:59 +03:30
Shell.cpp Shell: Reset the custom Shell keybinds before calling Editor::get_line() 2023-06-12 10:44:44 +03:30
Shell.h Shell: Reset the custom Shell keybinds before calling Editor::get_line() 2023-06-12 10:44:44 +03:30
SyntaxHighlighter.cpp LibGfx+Userland: Make TextAttributes::underline_style optional 2023-03-15 14:55:49 +01:00
SyntaxHighlighter.h LibSyntax: Teach each highlighter about it's comment syntax 2022-11-27 18:28:43 -07:00