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.

Switch between multiple sets of bindings

See original GitHub issue

It would be great to support binding modes in my textual apps. Similar to command mode and edit mode in vim I’d like to be able to switch out different sets of bindings.

I see I can have different bindings associated with different screens but I’d like to be able to change between binding sets within one screen.

I tried updating the BINDINGS constant within an action with a new set of bindings but it didn’t seem to have any effect (and modifying a constant feels icky).

Issue Analytics

  • State:closed
  • Created 10 months ago
  • Comments:7 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
jacobtomlinsoncommented, Nov 28, 2022

Ok that makes sense. In that case I have two widgets that I want different (overlapping) bindings on. If neither of them is in focus I want one of them to be kept in focus. I.e none of the other widgets should be focusable. Do you have thoughts on a “correct” way to do that?

1reaction
jacobtomlinsoncommented, Nov 28, 2022

Oh interesting I didn’t realise you could add bindings to widgets! So would you have different bindings when different widgets are in focus?

I have about 8 widgets on my screen, but I only want two of them to be focusable, and one or other should always be in focus. Right now to achieve this I’m not using focus and doing things manually, but I can definitely change that.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Switching Bindings vs Having Two Sets?? : r/snowboarding
I'm gonna have a two boards next season. At first I was thinking switching my bindings (burton bindings going on to a capita...
Read more >
Those of you with multiple boards: How many sets of bindings ...
The idea of switching bindings around is a nightmare to me. It blows my mind people are willing to swap bindings during the...
Read more >
How To Set Up Your Snowboard Bindings - YouTube
Everything you need to know about Regular vs. Goofy, stance, binding angles and inserts.***Since the magazine first started in 1995, ...
Read more >
How to Set Up Your Snowboarding Bindings With Danny Kass
FunDuhMentals: How to set up your snowboard bindings with Danny KassYour stance on a snowboard should be about shoulder width, ...
Read more >
Switch two key bindings for every mode in Emacs? - Super User
I want to make it so that regardless of mode, for example, C-t will do what C-x is supposed to do, and vice...
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