mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-03 08:08:43 +00:00
Shell: Auto-completion shouldn't suggest non-executable files for the program name
This commit is contained in:
parent
e45e0eeb47
commit
111ac4b1f4
Notes:
sideshowbarker
2024-07-18 19:20:58 +09:00
Author: https://github.com/gunnarbeutner
Commit: 111ac4b1f4
Pull-request: https://github.com/SerenityOS/serenity/pull/6521
Reviewed-by: https://github.com/alimpfard ✅
3 changed files with 13 additions and 7 deletions
|
@ -178,9 +178,14 @@ public:
|
|||
static bool is_glob(const StringView&);
|
||||
static Vector<StringView> split_path(const StringView&);
|
||||
|
||||
enum class ExecutableOnly {
|
||||
Yes,
|
||||
No
|
||||
};
|
||||
|
||||
void highlight(Line::Editor&) const;
|
||||
Vector<Line::CompletionSuggestion> complete();
|
||||
Vector<Line::CompletionSuggestion> complete_path(const String& base, const String&, size_t offset);
|
||||
Vector<Line::CompletionSuggestion> complete_path(const String& base, const String&, size_t offset, ExecutableOnly executable_only);
|
||||
Vector<Line::CompletionSuggestion> complete_program_name(const String&, size_t offset);
|
||||
Vector<Line::CompletionSuggestion> complete_variable(const String&, size_t offset);
|
||||
Vector<Line::CompletionSuggestion> complete_user(const String&, size_t offset);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue