]> git.lizzy.rs Git - micro.git/commitdiff
Fix #2190: Document goto command in commands.md (#2218)
authorRyan Westlund <rlwestlund@gmail.com>
Fri, 24 Sep 2021 21:40:11 +0000 (21:40 +0000)
committerGitHub <noreply@github.com>
Fri, 24 Sep 2021 21:40:11 +0000 (14:40 -0700)
runtime/help/commands.md

index 771f06a2c218b336a2cbdcc1d2e3e2aa23557aef..c0ef8dbf730c05b0337593215dd68704b42c8d9f 100644 (file)
@@ -29,6 +29,10 @@ quotes here but these are not necessary when entering the command in micro.
 
 * `quit`: quits micro.
 
+* `goto 'line'`: jumps to the given line number. A negative number can be
+   passed to jump inward from the end of the file; for example, -5 jumps
+   to the 5th-last line in the file.
+
 * `replace 'search' 'value' 'flags'?`: This will replace `search` with `value`. 
    The `flags` are optional. Possible flags are:
    * `-a`: Replace all occurrences at once