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

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?
How to bypass a bindkey directive in GNU screen?

Categories

HOME
qlikview
actionscript-3
url
domain-driven-design
oracle-sqldeveloper
cors
formatting
gap-system
liquibase
django-middleware
magento-1.9.2.1
arguments
sms
google-docs-api
terminal
psexec
procmon
install
clip-path
google-api-oauth
ionic-native
aws-sdk-cpp
kairosdb
mongodb-replica-set
hql
amazon-data-pipeline
md2
novacode-docx
summernote
fibonacci
email-client
android-6.0-marshmallow
contextmenustrip
ports
epub
node-soap
android-geofence
client-server
dotnetnuke-module
yelp
latency
byobu
vertical-alignment
jquery-ui-slider
web-technologies
peerjs
amazon-rds-aurora
text-extraction
hierarchical-clustering
jsfl
import.io
evaluation
photoshop-script
blackberry
scanf
qt3d
sharing
stripes
diameter-protocol
3d-rendering
user-profile
bbedit
gtkwave
sdkman
p4python
eula
vspackage
page-refresh
jeet-grid
gmaps4jsf
xcode5
vundle
nest-initiative
banana-pi
connections
android-jack-and-jill
mdp
forward-declaration
dd4t
uikit-dynamics
junction-table
django-tinymce
linqdatasource
linear-interpolation
inflate
m3u
esi
bindinglist
gmagick
windows-xp-embedded
functional-specifications
zipstream
cryptolicensing
llblgen
simultaneous
numerical-computing
glassfish-embedded
qlibrary
paperless

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