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