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

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
repository
oop
intellij-idea
window.open
gap-system
ibm
readdir
livecharts
atlassian-fisheye
wkhtmltopdf
watson-dialog
console-application
box2d
sha1
tag-cloud
civicrm
audio-streaming
django-rest-auth
caldav
bootstrap-datetimepicker
single-page-application
opengraph
advertising
jira-zephyr
symlink
dynamics-ax-2012-r3
spring-data-gemfire
overflow
textview
akamai
jcr
anypoint-studio
jvisualvm
google-cloud-powershell
android-doze-and-standby
pyopenssl
audio-fingerprinting
sharpdevelop
playframework-2.3
typewriter
multi-select
scriptengine
cherry-pick
hfp
gdi
hotkeys
system-integration
razorengine
nd4j
chomsky-normal-form
askbot
computability
controlpanel
maven-antrun-plugin
bootstrap-tabs
playn
stereotype
transparentproxy
tinymce-plugins
httpmodule
skview
quickfixn
pysvn
uiblureffect
unityvs
famous-engine
triplestore
mvcgrid
pyalgotrade
dateadd
android-relativelayout
opencobol
vbaccelerator
google-voice
ardor3d
ie-developer-tools
pechkin
dynamic-expresso
architectural-patterns
screensharing
android-memory
ios6-maps
reflexil
helicontech
visual-leak-detector
backlight
youtube.net-api
auto-compile
html5-animation
calendarextender
moores-law
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