user.keymap has no effect #1180
Comments
Settings are now stored in the user-data dirs depending on the platform. Are you placing the files in the correct spot? On mac, that'd be ~/Library/Application\ Support/LightTable/settings/ on linux ~/.config/LightTable/settings/ on win %LOCALAPPDATA%/LightTable/settings/ |
Yeah, I'm on Windows and that's where the files were. I was editing it through Light Table itself using the command bar to open the user keymap, so I'm pretty sure I was editing the right file. |
Edited my initial description to clarify what steps I took. |
This is my user keymap file after editing. I wanted to unbind {:- {: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]}}} |
the :+ and :- keys should be in the same map. |
Yes, that did it. Not particularly obvious but makes sense once I think about it. Thanks! |
Since Light Table 0.7.2 the syntax has changed: [:editor "-pmeta-shift-s"] You don't need the action for unbinding, just prepend the dash to the key specification to unbind it. |
Using latest 0.6.2 but seen since 0.6.0, the key bindings in my user.keymap have no effect.
I opened the user keymap file in LightTable using the "Settings: User keymap" command from the command bar, added some keybindings and then saved the file. Light Table said "keys loaded" in the status bar at the bottom, but the new keybindings were not working.
Since it had been a while since I had Light Table last installed, I thought maybe it was picking up an old file, so I moved my current user.keymap and user.settings files out of the settings folder and restarted LightTable so that it would recreate the default contents. Then I re-opened the file in LightTable, made the same changes again, saved again, but still no effect.
The text was updated successfully, but these errors were encountered: