]> ruderich.org/simon Gitweb - config/dotfiles.git/blob - shell/lesskey
herbstluftwm/autostart: add bindings to run programs and select windows
[config/dotfiles.git] / shell / lesskey
1 # Lesskey configuration file for less.
2
3 # Copyright (C) 2011-2018  Simon Ruderich
4 #
5 # This file is free software: you can redistribute it and/or modify
6 # it under the terms of the GNU General Public License as published by
7 # the Free Software Foundation, either version 3 of the License, or
8 # (at your option) any later version.
9 #
10 # This file is distributed in the hope that it will be useful,
11 # but WITHOUT ANY WARRANTY; without even the implied warranty of
12 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13 # GNU General Public License for more details.
14 #
15 # You should have received a copy of the GNU General Public License
16 # along with this file.  If not, see <http://www.gnu.org/licenses/>.
17
18
19 #command
20
21 # Map "-" to go up one screen like in mutt.
22 - back-screen
23 # Map h and l to work like in Vim (go left/right). To display the help use H.
24 h left-scroll
25 l right-scroll
26
27
28 #line-edit
29
30 # Vim-like up/down to replace the arrow keys.
31 ^P up
32 ^N down
33
34
35 #env
36
37 # Set options for less.
38 #
39 # --no-init:
40 #     Disable initialization termcap as it causes the screen to get cleared on
41 #     some systems.
42 # --quit-if-one-screen:
43 #     If the output fits on the current screen quit less.
44 # --RAW-CONTROL-CHARS:
45 #     Display ANSI "color" escape sequences to allow colored output. Other
46 #     escape sequences are drawn in caret notation.
47 # --ignore-case:
48 #     Ignore case if the search string doesn't contain any uppercase letters.
49 #     If there are uppercase letters respect case.
50 # --rscroll=*n>
51 #     Draw ">" ("*" means with "normal" attributes) when hiding wrapped lines.
52 #
53 # Don't use --search-skip-screen as it makes it easy to miss matches on the
54 # current page. Don't use --clear-screen which always prints a full screen
55 # (padded with "~" lines).
56 LESS = --no-init --quit-if-one-screen --RAW-CONTROL-CHARS --ignore-case --rscroll=*n>
57
58 # Store less' history file in this directory. HISTORY_PATH is replaced by
59 # setup.sh because lesskey doesn't expand ~/.
60 LESSHISTFILE = HISTORY_PATH
61 # Increase the history size, default is 100.
62 LESSHISTSIZE = 1000