-
-
Notifications
You must be signed in to change notification settings - Fork 114
General editing
This will go over several default key bindings including how to move around a file, save a file, open a file, create a new file, move tabs, quit the editor, search and replace text, undo and redo changes. It also covers the bars and the meaning of the text within them.
Ox is controlled entirely by key bindings as of 0.2.6 (There are plans to add mouse cursor support very soon) You can use the keys Backspace and Return / Enter as well as all the characters on your keyboard to edit files! You may also use the arrow keys to navigate around the document. Home Will take you to the start of the current line and End Will take you to the end of the current line. PageUp Will also take you to the top of the part of the document that is in view and PageDown Will take you to the end.
Here is a list of all the default key bindings and what they do:
Keybinding | What it does |
---|---|
Ctrl + Q |
Exits the current tab or the editor if only one tab open. |
Ctrl + S |
Saves the open file to the disk. |
Alt + S |
Prompts you for a file name and saves it to disk as that file name. |
Ctrl + W |
Saves all the currently open files to the disk. |
Ctrl + N |
Creates a new tab with a blank document. |
Ctrl + O |
Prompts you for a file and opens that file in a new tab. |
Ctrl + F |
Searches the document for a search query. Allows pressing of ↑ and ← to move the cursor to the previous occurance fof the query and ↓ and → to move to the next occurance of the query. Press Return to cancel the search at the current cursor position or Esc to cancel the search and return to the initial location of the cursor. Note: this allows you to use regular expressions. |
Ctrl + Z |
Undoes your last action. The changes are committed to the undo stack every time you press the space bar, create / destroy a new line and when there is no activity after a certain period of time which can be used to capture points where you pause for thought or grab a coffee etc... |
Ctrl + Y |
Redoes your last action. The changes are committed to the undo stack every time you press the space bar, create / destroy a new line and when there is no activity after a certain period of time which can be used to capture points where you pause for thought or grab a coffee etc... |
Ctrl + R |
Allows replacing of occurances in the document. Uses the same keybindings as the search feature: ↑ and ← to move the cursor to the previous occurance fof the query and ↓ and → to move to the next occurance of the query. You can also press Return, y or Space to carry out the replace action. To exit replace mode once you're finished, you can press Esc to cancel and return back to your initial cursor position. Note: this allows you to use regular expressions. |
Ctrl + A |
Carries out a batch replace option. It will prompt you for a target to replace and what you want to replace it with and will then replace every occurance in the document. Note: this allows you to use regular expressions. |
Ctrl + Left |
Navigates to the previous tab. |
Ctrl + Right |
Navigates to the next tab. |
Ctrl + Up |
Move line up. |
Ctrl + Down |
Move line down. |
Ctrl + Delete |
Deletes the word to the left of the cursor. |
Alt + A |
Opens up the command line. |
F1 |
Provides a help message. |