Add page about editors and nano
[?]
Dec 18, 2020, 10:18 PM
6WD4XRG5HDFK5DEI5ZPGG753TR52LV5N6KWHFJW27DIJGRJVQMNQCDependencies
- [2]
QNQW6SIVCreate page "Splitting and combining changes" - [3]
M5UWVFKTAdd section about combining changes - [*]
LYR3UWPMAdd workflows chapter with page about channels
Change contents
- replacement in src/workflows/splitting_and_combining_changes.md at line 20
`pijul record` opens an editor for you containing a view of the change as itwill be recorded:`pijul record` opens an [editor](./editors.md) for you containing a view of thechange as it will be recorded: - file addition: editors.md[5.451]
# Pijul and text editors`pijul` does not come with a built-in text editor. Instead, when you need tomake larger inputs (esp. when using the `pijul record` command), `pijul` relieson any text editor that is installed on your system.## LinuxOn Linux, a program that wants to launch an external text editor may try tofind out which one the user wants by reading the `$VISUAL` environment variable.If it isn’t set, then usually GNU `nano` is used, because it can be expected tobe installed by default by most (if not all) distributions. A[manual](https://www.nano-editor.org/dist/latest/nano.html) is available on the`nano` web site.### nano (crash course)`nano` is controlled with the keyboard. You navigate through the text using thecursor keys. Actions are invoked with key combinations together with the `Ctrl`key, written as `^` (e. g. `^O` means: while holding the `Ctrl` key, press `O`,or the `Alt` key (“Meta”), written as `M-` – e. g. `M-U` means: while holding`Alt`, press `U`.So, press the `→` key until the cursor is on the last single quote. You canalso get there by pressing `End` and then `←` once. Now you can type your patchmessage so that it appears between the single quotes.Let’s have a look at the bottom of the screen. There you can see a few commandscurrently available to you. What is most interesting to us is saving the textand exiting `nano`. `nano` says “Write out”, but it means “save”, so we’ll usethat first: press `^O` (that’s `Ctrl+O`). Then, exit: `^X`.Done! You should be back at the prompt.### Other editorsThere is a plethora of editors available for Linux, writing a tutorial for allor even the most prominent ones would be overwhelming. We’ll assume that, sinceyou installed the editor yourself and probably also set the `$VISUAL` environmentvariable, that you know what you are doing.