key-bindings


How do I override a default keybinding in LightTable?


The default.keymap has pmeta-shift-s bound to :save-as but I would like to rebind it to :save-all. I added the following to my user.keymap:
;; Remove the default keybinding
{:- {:editor {"pmeta-shift-s" [:save-as]}}}
;; Add my keybinding
{:+ {:app {"pmeta-shift-s" [:save-all]}}}
I've saved my user.keymap and LightTable says that it's reloaded the keymap, but pressing pmeta-shift-s still pops up the Save As dialog. What am I doing wrong?
EDIT: I'm fairly convinced this is a bug, so: https://github.com/LightTable/LightTable/issues/1180
Apparently it was not a bug, the :- and :+ keys must appear in the same map:
{:- {:editor {"pmeta-shift-s" [:save-as]}}
:+ {:app {"pmeta-shift-s" [:save-all]}
:editor {"alt-w" [:editor.watch.watch-selection]
"alt-shift-w" [:editor.watch.unwatch]
"f3" [:find.next]}
:tabs {"pmeta-pagedown" [:tabs.next]
"pmeta-pageup" [:tabs.prev]}}}}

Related Links

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
Tmux Scroll Up/Down Page using Ctrl-b and Ctrl-f

Categories

HOME
repository
ssms
msbuild
cxf
weblogic
xamarin.forms
azure-resource-manager
arguments
opengl-es
sequence
qt4
revit-api
dcos
activejdbc
openbsd
decoding
chef-recipe
element
opendaylight
nsoperation
multibinding
virtuemart
md2
conditional-formatting
keystone
devexpress-mvc
pixels
visual-studio-community
mex
hierarchy
kundera
jbossfuse
schedule
mplab
keil
motherboard
android-databinding
rtsp
dotnetnuke-module
armadillo
observer-pattern
ssdp
keychain
socketcluster
susy
aura-framework
npoco
g77
appcmd
senti-wordnet
cc
totalview
trusted-computing
robotc
suitesparse
cedar-bdd
dimensionality-reduction
tinybox2
csc
normalisation
ideavim
abstract
gtkwave
webservices-client
updating
hexagonal-tiles
pagecontrol
p4python
log-analysis
sicstus-prolog
crystal-reports-7
iphone-6
random-access
jsonmodel
javadb
formbuilder
pyalgotrade
git-subtree
google-voice
playing-cards
extensibility
stringstream
windows-scheduler
vline
ncml
wpml
openafs
custom-cursor
fileoutputstream
zend-validate
activescaffold
rpxnow
script-tag
projectgen
html-help-workshop
weak-typing

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