question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Persistence of key bindings

See original GitHub issue

Every major release I get a broken UX due to a shortcuts change. Furthermore, when I upgraded to 3.0 I’ve lost my favorite feature - export to clipboard as curl command.

But I found that in 3.0 we have commands and configurable key bindings. So I could solve my issue with them. I thought that way, but I was wrong - all bindings I’ve updated got lost as soon as I quited.

I had a quick peek into the source code, but the only explicit initialization of the keymap I found is defaultkeys.map(self.keymap) in master.py.

Is there a way to keep the changes in key bindings between restarts, that I’ve missed?

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:7 (5 by maintainers)

github_iconTop GitHub Comments

2reactions
cortesicommented, Mar 5, 2018

Hi there. Unfortunately custom key binding persistence just didn’t quite make it into the 3.0 release. It’s a top priority for the next release, though, and I have everything ready for us to take the next step. There are two ways we could go about this:

  • A keybindings.yaml file in the config directory dedicated just to key bindings.
  • A more general mechanism that lets us specify a list of commands to run on startup. This would let us then use the console.key.bind command to add custom keybindings. I think I prefer this approach, which will extend to all addons and open a bunch of other doors as well.

If you felt like digging in, I’d love a hand with this. If not, you can expect this to land in master in the coming weeks, and be out in the 4.0 release around the beginning of May.

0reactions
cortesicommented, May 10, 2018

I’ll close this ticket, and we can discuss any issues in more specific tickets.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Persistent key binding - Programming & Scripting
I'm working on my Options menu and want the changes the player makes to be persistent. For options like video settings there is...
Read more >
How can I force fish to save new key bindings persistently after ...
I open a terminal window, the default shell is fish. I add a key binding with: bind \eg functionname; It works in the...
Read more >
Unity Input System: Persistent Input Rebinds
A detailed tutorial on how I handle persistent rebinds with the new ... (keyboard and gamepad), four actions, and two bindings per action....
Read more >
Any tips for remembering key-bindings better? : r/emacs - Reddit
It's just a matter of persistence. At some point you won't remember keybindings, but finger moves (much like passwords or pins.) ...
Read more >
Character specific keybinding not persistent - Blizzard Forums
I have a lot of characters I play regularly. Most of them share a common keybinding setup and so I have the “character...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found