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

All operations that can be performed inside the Editor session.

quit

Quit the editor session. It'll check for any modified-but-unsaved buffers and prompts for saving them, before exiting the session.

Note
Available since v1.0.0

help-command

Prints helps messages for a given command. It creates a new read-only Buffer for doing so.

Note
Available since v1.0.0

scratch-buffer

Start a *scratch Buffer if it is not present and switches to it.

Note
Available since v1.0.0

find-file-histoy

Opens a prompt with a list of previously opened files for a speedier finding of a file. History file is always stored at <homeFolder>/history.

The Option homeFolder can be customized as it is the folder which has all the teditor related settings. The Option maxFileHistory controls the number of previous files to be remembered across sessions.

Note
Available since v1.0.0

split-vertically

Splits the current window vertically.

Note
Available since v1.0.0
Currently only one split is supported.

clear-all-windows

Merge all split windows into one.

Note
Available since v1.0.0

next-window

Shift the focus on the next Window.

Note
Available since v1.0.0

find-file

Opens a prompt for user to find a file and opens it in a new Buffer. If that file is already open in the current session, it'll just switch over to that Buffer instead.

Note
Available since v1.0.0

run-command

Prompts the user to choose a command from the current list of supported commands and runs it.

Note
Available since v1.0.0

shell-command

Prompts the user to type in a shell command to run. The current working dir for this command will be the same as that of the current Buffer. In case if the current dir is remote, the command will be executed instead on that remote machine.

Note
Available since v1.0.0

open-explorer

Opens the file explorer.

Note
Available since v1.0.0
Currently available only on Windows OS.

browser

Opens the url pointed by the current active region in the browser. If no active region, it'll just open the browser. The Option browserCmd can be used to customize the command used for launching the browser.

Note
Available since v1.0.0

browser-search

Opens a prompt to search for a given string among various search options. The given string is first tried for in the currently active region, if not, it'll be prompted for.

Note
Available since v1.0.0

download-url

Prompts for a URL and a filename and downloads that URL into this file.

Note
Available since v1.0.0

mkdir

Creates a directory by prompting for its path.

Note
Available since v1.0.0

buffer-switch

Switches to the user selected Buffer from the list of current buffers in the session.

Note
Available since v1.0.0

git-branch

Prints the git branch of the current directory into the command status bar. It expects the git executable to be made available in the PATH environment variable of the shell.

Note
Available since v1.0.0

indent

Indents the current line. Definition of indent and de-indent is as per the Mode of the current Buffer.

Note
Available since v1.0.0

org-notes-dir

Loads the dir containing all the org notes files. Theis dir can be customized using the Option orgNotesDir.

Note
Available since v1.0.0

songs-dir

Loads the dir containing songs. This dir location can be customized using the Option songsDir.

Note
Available since v1.0.0

task-manager

Starts the task manager UI.

Note
Available since v1.0.0
Currently only supports Windows OS

dns

Performs a DNS lookup for the given URL and prints the result on the command status bar.

Note
Available since v1.0.0