File: keybind.conf

package info (click to toggle)
elinks 0.19.1-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 24,312 kB
  • sloc: ansic: 174,714; cpp: 31,967; sh: 7,841; python: 4,039; perl: 2,183; javascript: 1,794; pascal: 1,720; makefile: 1,006; yacc: 295; lisp: 125; awk: 79; ruby: 70
file content (34 lines) | stat: -rw-r--r-- 963 bytes parent folder | download | duplicates (2)
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
# Example keybinding

# Copy this file to ~/.config/elinks/ and use include "keybind.conf" in
# "elinks.conf" to include it.

# vi-like navigation keys
bind "main" "j" = "move-link-next"
bind "main" "k" = "move-link-prev"
bind "main" "h" = "history-move-back"
bind "main" "l" = "link-follow"
bind "main" "g" = "move-document-start"
bind "main" "G" = "move-document-end"

# Keys close to the above
bind "main" "i" = "scroll-up"
bind "main" "m" = "scroll-down"
bind "main" "o" = "goto-url"
bind "main" "O" = "goto-url-current"

# Netscape-like, just for the hell of it
bind "main" "Alt-o" = "goto-url"

# Emacs-like paging keys
# Ctrl prefixed keys must be capital :-(
bind "main" "Alt-v" = "move-page-up"
bind "main" "Ctrl-V" = "move-page-down"

# Emacs-like editing keys
bind "edit" "Ctrl-B" = "left"
bind "edit" "Ctrl-F" = "right"

# Analogous to goto_line_cmd in my Jed and Emacs setups
bind "main" "Alt-g" = "goto-url"
bind "main" "Alt-G" = "goto-url-current"