Skip to content
This repository has been archived by the owner on Oct 21, 2022. It is now read-only.

user.keymap has no effect #1180

Closed
doxxx opened this issue Jan 26, 2014 · 7 comments
Closed

user.keymap has no effect #1180

doxxx opened this issue Jan 26, 2014 · 7 comments

Comments

@doxxx
Copy link

doxxx commented Jan 26, 2014

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.

@ibdknox
Copy link
Member

ibdknox commented Jan 27, 2014

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/

@doxxx
Copy link
Author

doxxx commented Jan 27, 2014

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.

@doxxx
Copy link
Author

doxxx commented Jan 27, 2014

Edited my initial description to clarify what steps I took.

@doxxx
Copy link
Author

doxxx commented Jan 27, 2014

This is my user keymap file after editing. I wanted to unbind save-as from pmeta-shift-s and bind it to save-all, and add keys for moving between tabs that I'm used to from other apps.

{:- {: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]}}}

@ibdknox
Copy link
Member

ibdknox commented Jan 27, 2014

the :+ and :- keys should be in the same map.

@doxxx
Copy link
Author

doxxx commented Jan 27, 2014

Yes, that did it. Not particularly obvious but makes sense once I think about it. Thanks!

@doxxx doxxx closed this as completed Jan 27, 2014
@kaharlichenko
Copy link

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.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants