|
| | addressrange (ex *ex, int lines=1) |
| | Other methods. More...
|
| |
| | addressrange (ex *ex, const std::string &range) |
| | Constructor for a range (including visual range). More...
|
| |
|
bool | change (const std::string &text) const |
| | Changes range into text.
|
| |
|
bool | copy (const address &destination) const |
| | Copies range to destination.
|
| |
|
bool | erase () const |
| | Deletes range.
|
| |
| bool | escape (const std::string &command) |
| | Filters range with command. More...
|
| |
|
bool | execute (const std::string ®) const |
| | Executes register on this range.
|
| |
|
auto & | get_begin () const |
| | Returns begin address.
|
| |
|
auto & | get_end () const |
| | Returns end address.
|
| |
| bool | global (const std::string &command, bool inverse=false) const |
| | Performs the global command on this range. More...
|
| |
|
bool | is_ok () const |
| | Is this range ok.
|
| |
|
bool | join () const |
| | joins range.
|
| |
|
bool | move (const address &destination) const |
| | moves range to destination.
|
| |
| bool | parse (const std::string &command, const std::string &text, info_message_t &msg) |
| | Parses this addressrange based on command, and text. More...
|
| |
|
bool | print (const std::string &flags=std::string()) const |
| | Prints range to print file.
|
| |
|
const std::string | regex_commands () const |
| | Supported 2addr commands.
|
| |
|
bool | shift_left () const |
| | Shifts the specified lines to the start of the line.
|
| |
|
bool | shift_right () const |
| | Shifts the specified lines away from the start of the line.
|
| |
| bool | sort (const std::string ¶meters=std::string()) const |
| | Sorts range, with optional parameters: -u to sort unique lines -r to sort reversed (descending) More...
|
| |
| bool | substitute (const std::string &text, char cmd='s') |
| | substitutes range. More...
|
| |
|
bool | write (const std::string &filename) const |
| | Writes range to filename.
|
| |
|
bool | yank (char name='0') const |
| | Yanks range to register, default to yank register.
|
| |
Offers an address range for vi (ex).
- The range is derived from a number of lines,
- or by a range string (including visual range for already selected text on the stc component). All methods return false if the range is not ok.
| bool wex::addressrange::escape |
( |
const std::string & |
command | ) |
|
Filters range with command.
The address range is used as input for the command, and the output of the command replaces the address range. For example: addressrange(96, 99).escape("sort") or (ex command::96,99!sort) will pass lines 96 through 99 through the sort filter and replace those lines with the output of sort. Of course, you could also do: addressrange(96,99).Sort(). If you did not specify an address range, the command is run as an asynchronous process.