mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-28 11:49:44 +00:00
LibGUI+GMLPlayground: Replace text using ReplaceAllTextCommand
This commit is contained in:
parent
343d699627
commit
661e7d691e
Notes:
sideshowbarker
2024-07-17 11:49:54 +09:00
Author: https://github.com/SimonFJ20 🔰
Commit: 661e7d691e
Pull-request: https://github.com/SerenityOS/serenity/pull/13633
Issue: https://github.com/SerenityOS/serenity/issues/11810
Reviewed-by: https://github.com/awesomekling
5 changed files with 65 additions and 1 deletions
|
@ -123,6 +123,7 @@ public:
|
|||
TextRange normalized_selection() const { return m_selection.normalized(); }
|
||||
|
||||
void insert_at_cursor_or_replace_selection(StringView);
|
||||
void replace_all_text_while_keeping_undo_stack(StringView text);
|
||||
bool write_to_file(String const& path);
|
||||
bool write_to_file(Core::File&);
|
||||
bool has_selection() const { return m_selection.is_valid(); }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue