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

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
GNU screen custom key bindings format

Categories

HOME
url
primefaces
locale
fortran
aix
phantomjs
azure-database-mysql
where
lithium
pandoc
overrides
gnuradio
liquidsoap
pip
subprocess
angularjs-ng-repeat
mongoimport
aspectj
desktop-application
captcha
element
javascript-debugger
background-image
smooth-scrolling
react-jsx
single-page-application
fibonacci
pushbullet
infinite-loop
jira-zephyr
priority-queue
libxml2
proof-general
launchd
osgi-bundle
ocl
folder
paper-trail-gem
spring-oauth2
lex
icu
directadmin
mtm
pexpect
cakephp-3.2
ack
android-doze-and-standby
jks
activeandroid
xmldom
lucee
beanshell
aws-rds
blackberry
spring-cloud-aws
pyautogui
breadcrumbs
universe
hoare-logic
objectify
bytearray
user-profile
archiva
wizard
containstable
nslocalizedstring
ios8-share-extension
windows-phone-8-emulator
uinavigationitem
eggplant
web-standards
stereotype
jeet-grid
minko
pymol
data-quality-services
douglas-peucker
dojox.grid
information-hiding
frisby.js
formbuilder
gnip
worklight-appcenter
sendy
azure-caching
nodeunit
elixir-framework
fastcgi-mono-server
node-amqp
zend-db-table
cocotron
django-tinymce
tasklist
netzke
states
php-gettext
jqzoom
isgl3d
parallel-python
vectorwise
meego-harmattan
cryptolicensing
response-time
noise-reduction
carbon-emacs
cross-cutting-concerns

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