Repository navigation
Expand file tree
/
Copy pathlesskey
More file actions
70 lines (52 loc) · 1.27 KB
/
Copy pathlesskey
File metadata and controls
70 lines (52 loc) · 1.27 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
# man lesskey
# https://github.com/infokiller/config-public/blob/939e5c3735762ba15c298d8ce37a1b48461d2e72/.config/lesskey
# https://github.com/chrisgrieser/.config/blob/2926ac0071d947ccb5e9be876bed38b3534349ab/less/lesskey
# https://github.com/jamesrayman/dotfiles/blob/7495d797b84b329831eb2b13cff18b4c87f76700/.config/less/lesskey
#command
# h left-scroll
# l right-scroll
h noaction 1\e(
l noaction 1\e)
H noaction 40\e(
L noaction 40\e)
# J forw-screen
# K back-screen
~ help
\eh help
# ESC
# \e\e undo-hilite
\e\e quit
# &pattern: display only lines which match the pattern
f filter
x clear-search
^L clear-search
# t next-tag
# T prev-tag
# -
t toggle-option
# T invalid
# --ignore-case: smart case for search
i toggle-option i
,c toggle-option i
I toggle-option --incsearch\n
,i toggle-option --incsearch\n
# --chop-long-lines: wrap
w toggle-option S
,w toggle-option S
# --LINE-NUMBERS
,l toggle-option N
# --status-column: display a status column, showing search results and marks
,s toggle-option J
# color marked line
,m toggle-option --status-line\n
# TAB
\t next-file
^N next-file
^P prev-file
J next-file
K prev-file
#line-edit
\e\e abort
#env
# do this in `~/.zshrc` file
# LESS = --RAW-CONTROL-CHARS --ignore-case --LONG-PROMPT --chop-long-lines --incsearch --use-color