2013-12-08 12:56:16 +04:00
|
|
|
# less
|
|
|
|
|
2016-10-12 18:58:04 +03:00
|
|
|
> Open a file for interactive reading, allowing scrolling and search.
|
2013-12-08 12:56:16 +04:00
|
|
|
|
2016-01-07 20:31:27 +03:00
|
|
|
- Open a file:
|
2013-12-08 12:56:16 +04:00
|
|
|
|
2013-12-09 15:12:16 +04:00
|
|
|
`less {{source_file}}`
|
2013-12-08 12:56:16 +04:00
|
|
|
|
2016-10-11 22:34:23 +03:00
|
|
|
- Page down / up:
|
2013-12-08 12:56:16 +04:00
|
|
|
|
2016-10-11 22:34:23 +03:00
|
|
|
`<Space> (down), b (up)`
|
2013-12-08 12:56:16 +04:00
|
|
|
|
2016-10-11 22:34:23 +03:00
|
|
|
- Go to end / start of file:
|
2013-12-08 12:56:16 +04:00
|
|
|
|
2016-10-11 22:34:23 +03:00
|
|
|
`G (end), g (start)`
|
2013-12-08 12:56:16 +04:00
|
|
|
|
2016-10-11 22:34:23 +03:00
|
|
|
- Forward search for a string (press `n`/`N` to go to next/previous match):
|
2013-12-08 12:56:16 +04:00
|
|
|
|
2016-10-11 22:34:23 +03:00
|
|
|
`/{{something}}`
|
2013-12-08 12:56:16 +04:00
|
|
|
|
2016-10-11 22:34:23 +03:00
|
|
|
- Backward search for a string (press `n`/`N` to go to next/previous match):
|
2016-03-04 13:33:57 +03:00
|
|
|
|
2016-10-11 22:34:23 +03:00
|
|
|
`?{{something}}`
|
2016-03-04 13:33:57 +03:00
|
|
|
|
2017-12-06 21:55:50 +03:00
|
|
|
- Follow the output of the currently opened file:
|
2017-12-06 01:41:05 +03:00
|
|
|
|
2017-12-06 21:55:50 +03:00
|
|
|
`F`
|
2017-12-06 01:41:05 +03:00
|
|
|
|
2016-12-22 00:19:14 +03:00
|
|
|
- Open the current file in an editor:
|
2016-12-20 23:47:49 +03:00
|
|
|
|
|
|
|
`v`
|
|
|
|
|
2016-01-07 20:31:27 +03:00
|
|
|
- Exit:
|
2013-12-08 12:56:16 +04:00
|
|
|
|
|
|
|
`q`
|