Add some more ed commands.

This commit is contained in:
2026-08-10 16:29:33 +01:00
parent 23b7b8c8a8
commit f6d4987b8c
7 changed files with 181 additions and 90 deletions
+5
View File
@@ -17,12 +17,15 @@ struct Command {
HelpToggle,
Help,
Print,
List,
Number,
Append,
Insert,
Change,
Delete,
Write,
Join,
Mark,
Edit,
ForceEdit,
Filename,
@@ -85,6 +88,8 @@ struct Ed {
Command parse(std::string cmd, bool eof);
void append(std::string text, uint64_t line);
void remove(uint64_t start_line, uint64_t end_line);
std::string list_string(std::string_view s);
void join(uint64_t start_line, uint64_t end_line);
bool handle(std::string cmd, bool eof);
};