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.

GNU Emacs Style Key Sequences do not work in master AND shortcut conflicts

See original GitHub issue

Problem Description

Key sequences similar to those used in GNU Emacs , allowing up to four key codes, do not work in the Editor after the changes introduced in PR #7768. I haven’t thought about this case when working on this PR, so this needs to be fix.

@ccordoba12 what do you think is the severity of this?

Also, I’m not sure, but I think there is a problem with how we check for conflicts for these kind of shortcuts in our keyboard preference editor. For example, I do not understand how a shortcut with a keyseq defined as Ctrl+C, then Ctrl+X could work if Ctrl+C is already used for copy and Ctrl+X is already used for cut.

image

Ressources: https://srinikom.github.io/pyside-docs/PySide/QtGui/QKeySequence.html#gnu-emacs-style-key-sequences https://en.wikipedia.org/wiki/Table_of_keyboard_shortcuts https://www.gnu.org/software/emacs/refcards/pdf/refcard.pdf

Issue Analytics

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

github_iconTop GitHub Comments

1reaction
ccordoba12commented, Sep 12, 2018

Sure, that’s fine.

1reaction
jitseniesencommented, Sep 12, 2018

In Emacs, you do not have to keep the Ctrl key pressed down when typing Ctrl+B, Ctrl+D. However, it is not possible to have both Ctrl+B and Ctrl+B, Ctrl-D shortcuts defined. If you do, the Ctrl-B shortcut takes precedence.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Emacs: How to Define Keys - Wilkesley.
In emacs, you can create any keyboard shortcut to any command. ... (global-set-key (kbd "M-a") 'backward-char) ; Alt+a (global-set-key (kbd ...
Read more >
Problems with keybindings when using terminal
It's possible that your terminal (what are you using, by the way?) does not recognize that command sequence. Try using the C-; combo...
Read more >
Ergoemacs Keybindings - EmacsWiki
ErgoEmacs keybindings improves GNU Emacs for people who did not grow up with emacs. User interface is based on common modern software ...
Read more >
The Emacs Editor - GNU.org
A buffer that is not currently displayed remembers its value of point if you later display ... Every key sequence is either a...
Read more >
Frequently Asked Questions (TRAMP 2.5.3.28.2 User Manual)
The package works successfully on Emacs 25, Emacs 26, Emacs 27, and Emacs 28. ... Three main reasons for why TRAMP does not...
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