Text Editor
Editing your text is easy!
Editing your text is easy!
This text editor shell provides you an ability to edit any and all the text files. The edit
command infers the file type whether it's the text file, the JSON file, or the binary file. It contains many editing tools described in the below section by invoking its commands.
You can consult the below page for the list of text editor commands.
Commands ListIn addition to the text editor being a shell, you can switch to an alternative mode when you're in the shell by executing the tui
command. This way, you'll get access to the fully interactive text editor.
The interactive text editor works like any other interactive text editor, especially the well-known text editing utility available on Unix systems, vi and vim. However, it's just that it's different in terms of how it operates.
To exit, press ESC
.
To get a list of available keybindings, press K
.
The currently selected character in the current line is highlighted with the green color, depending on your kernel theme. Here are some of the common controls:
Key | Action |
---|---|
| Inserts a new line after the current line and moves down |
| Removes a current line and moves up |
| Inserts a new line after the current line |
| Removes a current line |
| Replaces the text in the current line with another text |
| Replaces the text in all the lines with another text |
| Enters the insertion (enter) mode |
| Advances one byte backward |
| Advances one byte forward |
| Advances one line backward |
| Advances one line forward |
| Goes to the previous page |
| Goes to the next page |
| Goes to the beginning of the text file |
| Goes to the end of the text file |
When insertion mode is on, you can input any text, erase unnecessary text, and so on. This gives you an ability to edit text interactively. Here are the available controls for you to use:
Key | Action |
---|---|
| Inserts a new line after the current line and moves down |
| Goes back to the viewer mode |
| Advances one byte backward |
| Advances one byte forward |
| Advances one line backward |
| Advances one line forward |
| Goes to the previous page |
| Goes to the next page |
| Goes to the beginning of the text file |
| Goes to the end of the text file |