summaryrefslogtreecommitdiffstats
path: root/examples/screen-keys.conf
blob: 1f7905f4230beb0027af86e1229b684fe361e5d4 (plain)
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
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
# $Id: screen-keys.conf,v 1.2 2009-01-16 20:04:54 nicm Exp $
#
# This configuration file binds many of the common GNU screen key bindings to
# appropriate tmux key bindings. Note that for some key bindings there is no
# tmux analogue and also that this set omits binding some commands available in
# tmux but not in screen.

### Unbind existing tmux key bindings (except 0-9).
unbind '"'
unbind '#'
unbind &
unbind ,
unbind -
unbind :
unbind =
unbind ?
unbind [
unbind '\'
unbind ]
unbind c
unbind d
unbind l
unbind n
unbind o
unbind p
unbind r
unbind s
unbind t
unbind w
unbind x

unbind Up
unbind Down
unbind M-Up
unbind M-Down
unbind C-Up
unbind C-Down

unbind C-b

### Set the prefix to ^A.
set -g prefix ^A

### Bind appropriate commands similar to screen.
#removebuf = 

#clear C 

#lockscreen ^X x 
bind ^X lock-server
bind x lock-server

#reset Z 

#colon :
bind : command-prompt

#log H 

# screen ^C c 
bind ^C new-window
bind c new-window

# copy ^[ [ 
bind ^[ copy-mode
bind [ copy-mode

# login L 

# select '
bind "'" select-prompt

# detach ^D d
bind ^D detach

# meta a 
bind a send-prefix

# silence _ 

# digraph ^V 

# monitor M 

# split S

# displays * 
bind * list-clients

# next ^@ ^N sp n 
bind ^@ next-window
bind ^N next-window
bind " " next-window
bind n next-window

# suspend ^Z z 

# dumptermcap .

# number N 

# time ^T t
 
# fit F

# only Q

# title A
bind A command-prompt "rename-window %%"

# flow ^F f
 
# other ^A
bind ^A last-window

# vbell ^G 

# focus ^I 

# pow_break B 

# version v 
bind v server-info

# hardcopy h

# pow_detach D

# width W 

# help ? 
bind ? list-keys

# prev ^H ^P p ^? 
bind ^H previous-window
bind ^P previous-window
bind p previous-window
#XXX bind ^? previous-window

# windows ^W w 
bind ^W list-windows
bind w list-windows

# history { }

# quit \ 
bind \ kill-server

# wrap ^R r

# info i 

# readbuf < 

# writebuf > 

# kill K k 
bind K kill-window
bind k kill-window

# redisplay ^L l 
bind ^L refresh-client
bind l refresh-client

# xoff ^S s 

# lastmsg ^M m 

# remove X 

# xon ^Q q

# select -

# paste ] ^]
bind ] paste-buffer
bind ^] paste-buffer

# split -v |
bind | split-window

# :kB: focus up
bind Tab down-pane
bind BTab up-pane

# " windowlist -b
bind '"' choose-window