key-bindings


Simple key binding issue


So I finally got to try out atom with one of the unofficial windows builds. Now I'm trying to create a simple binding (and then get my feet wet with real plugins).
The binding is simple, when you are in the vim plugin command mode and press ':', open up the command palette.
I started off with this as my binding:
'.editor':
':': 'command-palette:toggle'
This works fine, but I only want this in command mode. If I change the selector to be:
'.command-mode':
':': 'command-palette:toggle'
This doesn't work, even though the command-mode class is on the same element as the editor class.
Have you tried combining the two, like in CSS?
'.editor .command-mode':
':': 'command-palette:toggle'

Related Links

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
Tmux Scroll Up/Down Page using Ctrl-b and Ctrl-f
How to create key binding to set XML syntax?

Categories

HOME
autohotkey
excel-formula
postgresql
redux
botframework
typo3
ssh
service
skypedeveloper
hex
google-search-appliance
virtualenv
exchange-transport-agents
k-means
internet-explorer-7
windows-phone
computation-theory
sasl
resx
osgi-bundle
spring-oauth2
rtos
oracle-bpm-suite
anypoint-studio
mapquest
iterm2
blueimp
fisheye
aura-framework
ape-phylo
qt-quick
taleo
django-cors-headers
easyquery
rivets.js
django-tables2
bioperl
fckeditor
seyren
chain
google-scholar
dbi
queuing
boost-propertytree
mod
radar-chart
code-translation
jersey-test-framework
clear
overlapping
ruby-1.8.7
serial-communication
jts
page-flipping
musicbrainz
pushwoosh
autoscaling
clearquest
mergecursor
attiny
fiware-health
pysvn
launcher
agent-based-modeling
disabled-control
webshim
rssi
starling-framework
db2-connect
mysql-error-1146
grunt-wiredep
8-puzzle
mencoder
objectdatasource
wpd
generator-expression
database-restore
gpl
antixsslibrary
webpage-screenshot
waveout
parsec
automapper-2
flexbuilder
openwrap
file-processing
hp-trim
unauthorized

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