teditor  1.8.0@@fee5e94
Terminal based editor written in C++

All operations that can be applied on a Buffer object.

command-undo

Undo the effect of previously executed command on the current buffer

Only the effect of those commands which would have edited the buffer contents will be undo'd. For eg: the command pwd has no effect whatsoever on the buffer contents. So, there's no undo for such commands.

Available for all modes which enable editing.

Note
Available since v1.0.0

command-redo

Redo the effect of previously undo'd command on the current buffer.

Available for all modes which enable editing.

Note
Available since v1.0.0

.insert-char

Inserts a character at the current position of the cursor and moves the cursor one place to the right, or if a region is active, it will remove it first and then inserts this character.

Note
Preceeding . implies that this command is not searchable from the editor command prompt.
Available since v1.0.0

.backspace-char

Deletes the character to the left of the cursor, or if a region is active, removes it instead. As a side-effect, the cursor is moved one place to the left.

Note
Preceeding . implies that this command is not searchable from the editor command prompt.
Available since v1.0.0

.delete-char

Deletes the character on the cursor, or if a region is active, removes it instead.

Note
Preceeding . implies that this command is not searchable from the editor command prompt.
Available since v1.0.0

kill-line

Removes the rest of the line and copies it to the clipboard.

Note
Available since v1.0.0

keep-lines

Prompts for a regex and only keeps those lines that match this regex in the whole Buffer.

Note
Available since v1.0.0

remove-lines

Prompts for a regex and only removes those lines that match this regex in the whole Buffer.

Note
Available since v1.0.0

shell-to-buffer

Prompts the user for a command, executes it inside a shel and inserts the contents from its stdout at the current cursor location.

Entirety of stdout and stderr can be seen in the *messages Buffer.

Note
Available since v1.0.0

start-region

Start a region from the current cursor position. The background color of the active region changes from the default in order to notify the users of the active region in the current Buffer.

Note
Available since v1.0.0

cancel

Cancels the following things:

  1. active region in the current Buffer, if there's one.
  2. ongoing search operation.
Note
Available since v1.0.0

paste-region

Copies the last copied (or cut) region from the internal clipboard.

Note
Currently editor has a notion of clipboard that is separate from the OS provided system clipboard!
Available since v1.0.0

copy-region

Copies the currently active region's contents into the internal clipboard for a future paste-region command.

Note
Currently editor has a notion of clipboard that is separate from the OS provided system clipboard!
Available since v1.0.0

cut-region

Cuts the currently active region and copies its contents into the internal clipboard for a future paste-region command.

Note
Currently editor has a notion of clipboard that is separate from the OS provided system clipboard!
Available since v1.0.0

download-to-buffer

Prompt the user for a URL and downloads the contents of that URL into the current Buffer from the current cursor location onwards.

Note
Available since v1.0.0

search

Search for the user supplied string of chars in the current Buffer and jump to a matching location.

It starts a multi-line command prompt at the bottom of the current Buffer where the users can input the strings that they want to search for. This multi-line search bar then shows all the matching locations which can be browsed using up/down arrow keys. If the user then presses the Enter key, then the cursor jumps to that line. Press Esc key to cancel this operation.

Use the option iCaseSearch to enable case insensitive search or not, in your rc file.

Note
Available since v1.0.0

save-buffer

Saves the currents of the current Buffer to the filesystem. If the file is at a remote location, then it'll be stored on the filesystem of that remote machine, instead.

If there are any unsaved buffers in the current editor session, then while exiting the session, users will be prompted whether to save those buffers or note before the exit.

Note
Available since v1.0.0

pwd

Prints the current working directory of the current Buffer, in the status bar below. This command does NOT modify the Buffer contents.

Note
Available since v1.0.0

next-buffer

Switch to the next Buffer in the current sesion.

Note
Available since v1.0.0

prev-buffer

Switch to the previous Buffer in the current sesion.

Note
Available since v1.0.0

kill-this-buffer

Kill the current Buffer. It'll check for if it is modified and then prompts the users whether to save it to the filesystem, before killing it.

Note
Available since v1.0.0

kill-other-buffers

Kill all the buffers other than the current one. It'll check for if those buffers are modified and then prompts the users whether to save each of them to the filesystem, before killing it.

Note
Available since v1.0.0

reload-buffer

Reloads the Buffer contents from the filesystem. It'll check for if this buffer is modified and then prompts the users to save it to the filesystem, before reloading it.

Note
This will overwrite any modified-but-unsaved changes in the current Buffer! It will also erase the undo-redo stack too.
Available since v1.0.0