1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 14:27:35 +00:00

Help: Include page names in the search

This fixes the problem before, where searching "Shell" would list
"Shell-vars" in the results, but searching "Shell-vars" would make it
disappear.

Also removed some now-unnecessary includes.
This commit is contained in:
Sam Atkins 2021-12-20 15:38:36 +00:00 committed by Brian Gianforcaro
parent 8461f8c1cd
commit 85a54261b3
2 changed files with 16 additions and 3 deletions

View file

@ -23,6 +23,7 @@ public:
Optional<GUI::ModelIndex> index_from_path(StringView) const;
String page_name(const GUI::ModelIndex&) const;
String page_path(const GUI::ModelIndex&) const;
String page_and_section(const GUI::ModelIndex&) const;
ErrorOr<StringView> page_view(String const& path) const;