-
-
Notifications
You must be signed in to change notification settings - Fork 114
General editing
curlpipe edited this page Nov 4, 2020
·
16 revisions
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)
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. |
Ctrl + W |
Prompts you for a file name and saves it to disk as that file name. |
Ctrl + P |
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 + D |
Navigates to the previous tab. |
Ctrl + H |
Navigates to the next tab. |