key-bindings


Bind key prefix + ; to open command-prompt in tmux


Normal way to open the command-prompt in tmux is prefix + :. I want to bind the sequence prefix + ; to open the command prompt. I am too lazy to hit the shift key.
When I put this in my tmux.conf: bind-key ; command-prompt, I get this error: /Users/skilbjo/.tmux.conf:19: usage: bind-key [-cnr] [-t mode-table] [-T key-table] key command [arguments]
which is funny, because when I do prefix + ? (alias for tmux list-keys), this is listed: bind-key -T prefix : command-prompt. How does this sorcery work? I even tried bind-key -T prefix ; command-prompt to no avail, same error message
tmux uses semicolon as a command separator.
From the tmux man page:
Multiple commands may be specified together as part of a command sequence. Each command should be separated by spaces and a semicolon; commands are executed sequentially from left to right and lines ending with a backslash continue on to the next line, except when escaped by another backslash. A literal semicolon may be included by escaping it with a backslash (for example, when specifying a command sequence to bind-key).
What you'll want to do is:
unbind-key \;
bind-key \; command-prompt

Related Links

keybinding to interchange keyboard language
Is there a move cursor to nearest '=' code navigation in IntelliJ?
Disabling Mousewheel Bind
Fish shell ESC/META keybinding with iterm2 on os x yosemite
XMonad: Is there a way to bind a simultaneously triggered keychord?
Simple key binding issue
unable to get C-PGUP or C-PGDOWN key codes in tmux
How do I override a default keybinding in LightTable?
Is it possible to change key bindings in Sublime Text dynamically from a plugin?
Ace Editor - Change CTRL+H keybinding
KeyBindings in Java stop working after component is remade
Tmux Scroll Up/Down Page using Ctrl-b and Ctrl-f
How to create key binding to set XML syntax?
How to bypass a bindkey directive in GNU screen?
XMonad keybindings doesn't work
Get file path + file name in a keybindings file in Sublime Text 2

Categories

HOME
ckan
url
packet
phantomjs
nltk
where
azure-resource-manager
pandoc
thermal-printer
servicenow
country-codes
ethereum
wowza
kairosdb
velocity
jinja2
box2d
exchange-transport-agents
web-testing
owncloud
samba
aiml
restructuredtext
cherrypy
gnu-screen
my.cnf
windows-mobile
checkmarx
hierarchy
edirectory
jboss-arquillian
jmsserializerbundle
akamai
tikz
mplab
slim-lang
epub
traitsui
asp.net-webhooks
mkdir
rythm
stencyl
const
queryover
azure-web-roles
mixed-models
wicket-tester
datagridviewcombobox
peerjs
taleo
qtwebkit
google-cloud-shell
jenkins-docker
xamarin-test-cloud
printer-control-language
rmq
robotc
settext
boost-range
xcode7.1
sprockets
django-taggit
sbt-proguard
jde
music-player
ewam
web-performance
gulp-cdnizer
persian
personality-insights
roslyn-code-analysis
tooltwist
system.diagnostics
perfect-scrollbar
mri
nsq
lwuit
parsefloat
cocos2d-x-2.x
pthreads-win32
mdp
azure-pack
wordbreaker
msbuild-task
quit
cryptarithmetic-puzzle
openafs
derived-class
wxperl
fileoutputstream
execjs
response-time
norton
html5-animation
mass-emails
mediastreamsource
dynamic-scope
tracd

Resources

Mobile Apps Dev
Database Users
javascript
java
csharp
php
android
MS Developer
developer works
python
ios
c
html
jquery
RDBMS discuss
Cloud Virtualization
Database Dev&Adm
javascript
java
csharp
php
python
android
jquery
ruby
ios
html
Mobile App
Mobile App
Mobile App