mirror of
https://github.com/zyedidia/micro.git
synced 2026-03-24 17:50:15 +09:00
command: Add capability to use relative numbers in goto (#2985)
* command: Handle relative line numbers for goto * help: Adapt goto command documentation
This commit is contained in:
@@ -31,9 +31,11 @@ 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.
|
||||
* `goto 'line[:col]'`: Jumps to the given line (and optional column) number.
|
||||
`line` can be prefixed with `+`, `-` or `~`.
|
||||
+/- will perform relative jumps from the current position of the cursor
|
||||
(e.g. +5 will jump 5 lines down), while ~ will perform a jump inward
|
||||
from the end of the file (e.g. ~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:
|
||||
|
||||
Reference in New Issue
Block a user