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

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
spring-boot
excel-formula
skype-for-business
netty
fortran
customization
python-requests
hex
crash
procmon
google-api-oauth
theory
wowza
kairosdb
web-testing
multibinding
openscad
printf
draw2d
sonarlint
include-path
multipart
inline-assembly
datanucleus
windows-mobile
jbossfuse
concrete5
blockly
language-detection
microstrategy
webspeech-api
wit-ai
repeat
rtsp
form-fields
libconfig
servicebus
lucee
google-cloud-shell
runtime-permissions
node-java
typewriter
spring-social-twitter
fileopendialog
scikit-image
mongodb-3.3
indoor-positioning-system
disconnect
particle-system
key-value-store
vitamio
python-rq
wizard
dcast
google-finance-api
clear
matlab-engine
jcomponent
taverna
pushwoosh
transparentproxy
radgrid
screen-lock
maven-archetype
touch-typing
unityvs
clearcanvas
javacompiler
triplestore
rda
vbaccelerator
facebook-likebox
pechkin
qgraphicsscene
pyxplot
screensharing
volatility
invalidoperationexception
copyfile
xpolog
response-time
quazip
fxcopcmd
azure-appfabric
iphone-maps
system-analysis
manuals
authkit
opengl-to-opengles
html-help-workshop

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