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.

[Feature Request] Add the possibility of defining keychords

See original GitHub issue

One of my favorite features in StumpWM (my current X11 WM) and Emacs is the ability of defining keychords (although their definition in StumpWM is currently a bit awkward). Instead of every keybind immediately triggering something when pressed, some give access to extra keybinds. Qtile also allows for keychords, and i3 awkwardly does too through binding modes.

For instance, the keybind s-SPC a b reflects the keypress Super+Space, then a, then b, while the keybind s-SPC a g differs only by the last keypress.

This allows for a much wider amount of available keybinds and for much better mnemonics in the user’s configuration --the first keychord above is s-SPC the common keybind for most stuff, a for applications, and b for browser while the latter differs with g for GIMP.

It would be great if such a feature could be added to newm, I believe it would make it much more flexible, and it would help improve the mnemonics of its keybinds.

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:8 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
Phundrakcommented, Feb 14, 2022

@CRAG66 I think this should be its own issue rather than being discussed here. And judging from the file jbuchermn linked, it seems it may be already possible with Mod1, Mod2, and mod3. Try the following lines in key_bindings()' and see which one works (and comment the original line as I did) ,---- | # ("M-c", lambda: layout.move(-1, 0)), | ("1-c", lambda: layout.move(-1, 0)), | ("2-c", lambda: layout.move(-1, 0)), | ("3-c", lambda: layout.move(-1, 0)), ----

Also, not related to the issue, but I believe you wanted to say “left-handed”, not “left-wing”, the latter is a political term 😄

– Lucien “Phundrak” Cartier-Tilet

https://phundrak.com (Français)

https://phundrak.com/en (English)

Sent from GNU/Emacs

0reactions
jbuchermncommented, Mar 22, 2022

Closing this now.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Allow <key> + <key> chords · Issue #101453 · microsoft/vscode
Currently, chords have to be in the form of: +. ... It is possible to define a keybinding without a modifier e.g. j...
Read more >
On implementing the augmented fifth - Hooktheory Forum
The idea is that, by adding the harmonic minor scale as a “mode” that can be chosen in the key menu, a variety...
Read more >
Feature requests: Alternative chords & flexible rehearsal marks
My new request is for the ability to add free-form rehearsal marks. Jazz lead sheets typically use sequences like Intro, A, A', B,...
Read more >
Release info - ChordPro
ChordPro functionality. Verify configs (and fix if possible). Enhance ToC sorting, unlimited keys, numeric and reverse sorting. Warn if X: ...
Read more >
Is it possible to stop emacs from down translating my key ...
Short answer: there is no easy way to disable the translation to the un-shifted version of the binding. If you want to find...
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