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

Reassign Chrome OS keybindings
home\ end keys in xterm not behaving correctly
Exporting ALL visual studio key actions (keyactions) for keybindings
How to setup a custom keybinding to run a script or execute a command in Atom editor?
Bind key prefix + ; to open command-prompt in tmux
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

Categories

HOME
youtube-api
alasql
postgresql-9.3
ebay-api
arcgis
azure-resource-manager
itext7
assign
app-store
grid
powerquery
gnuradio
collision-detection
python-3.4
revit-api
dcos
select2
angular-universal
fetch
ng2-charts
xmlhttprequest
cakephp-2.0
repeater
pylint
openam
multipart
apdu
large-files
wordpress-rest-api
login-required
gstreamer-1.0
lighting
oracle-bpm-suite
ng-lightning
idea-plugin
flume-ng
uitextview
web-technologies
paperclip
xmldom
audio-fingerprinting
perldoc
gige-sdk
senti-wordnet
cc
jtextarea
multi-select
node.js-client
wicketstuff
group
spring-social-twitter
addressbook
timefield
scikit-image
hoare-logic
cherry-pick
system-integration
sbt-proguard
markerspiderfier
ewam
nonblocking
matlab-engine
android-facebook
edgar
log4cxx
polarion
glog
beagleboard
xmla
unityvs
traceur
nativequery
aspnet-compiler
leap-year
gmail-imap
architectural-patterns
junit-rule
mail-gem
hypertable
certificate-revocation
nsscrollview
log-shipping
isgl3d
mismatch
mass-emails
web-search
zend-acl
hotfix

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