Using Notepad - Owen2k6/GoOS GitHub Wiki

GoOS Notepad 2.0 is a command-line text editor similar to Nano.

Launching GoOS Notepad

You can open GoOS Notepad by navigating to your desired directory, then typing notepad <filename>, where <filename> is the name of the file that you wish to edit.

Keyboard Shortcuts

  • Arrow Keys: Use the arrow keys to move the text cursor around the document. The up and down arrow keys move the cursor up and down, while the left and right arrow keys move it left and right.

  • Ctrl+Left/Right Arrow Keys: Use the Ctrl key in combination with the left and right arrow keys to move the cursor to the previous or next word.

  • Ctrl+Up/Down Arrow Keys: Use the Ctrl key in combination with the up and down arrow keys to move the cursor to the start or end of the document.

  • ^X - Quit: To quit the editor, press the Ctrl key and the X key at the same time. This will exit the editor and return you to the command prompt.

  • ^S - Save: To save your changes to the file you're editing, press the Ctrl key and the S key at the same time. This will save the changes and write them to the file.

  • ^I - Info: To see the current line and column number of the cursor, press the Ctrl key and the I key at the same time.

  • ^K - Cut Line: To delete the current line and save it to the clipboard, press the Ctrl key and the K key at the same time.

  • ^V - Paste: To paste the contents of the clipboard at the current cursor position, press the Ctrl key and the V key at the same time.

Source Code

GoOS Notepad is open source. You may view its source code here:

https://github.com/Owen2k6/GoOS/blob/main/GoOS/TextEditor.cs

⚠️ **GitHub.com Fallback** ⚠️