teditor
1.8.0@@fee5e94
Terminal based editor written in C++
|
Functions | |
virtual void | teditor::Buffer::insert (char c) |
virtual void | teditor::Buffer::insert (const std::string &str) |
void | teditor::Buffer::remove (bool removeCurrent=false) |
main remove method More... | |
std::string | teditor::Buffer::removeAndCopy () |
std::string | teditor::Buffer::removeRegion (const Point &start, const Point &end) |
removes region between start and end More... | |
std::string | teditor::Buffer::killLine (bool pushToStack=true) |
void | teditor::Buffer::sortRegion () |
void | teditor::Buffer::keepRemoveLines (parser::NFA ®ex, bool keep) |
Keep/Remove lines that match the input regex. More... | |
virtual void | teditor::Buffer::clear () |
|
virtual |
clear buffer contents
Reimplemented in teditor::CmdMsgBar.
|
virtual |
insert a character at the current cursor location
Reimplemented in teditor::CmdMsgBar.
|
virtual |
insert a string at the current cursor location
Reimplemented in teditor::CmdMsgBar.
void teditor::Buffer::keepRemoveLines | ( | parser::NFA & | regex, |
bool | keep | ||
) |
Keep/Remove lines that match the input regex.
regex | the regular expression that needs to be matched |
keep | whether to keep the matching lines or remove them |
std::string teditor::Buffer::killLine | ( | bool | pushToStack = true | ) |
kills lines at current cursor location onwards
void teditor::Buffer::remove | ( | bool | removeCurrent = false | ) |
main remove method
removeCurrent | whether to remove the current char over the cursor |
std::string teditor::Buffer::removeAndCopy | ( | ) |
remove a region and return its contents to be copied to clipboard
removes region between start and end
start | start of the region |
end | end of the region |
void teditor::Buffer::sortRegion | ( | ) |
sorts the lines in the region