Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Background expansion keybindings are not listed in the menu #305

Open
shhyou opened this issue Jul 22, 2023 · 0 comments
Open

Background expansion keybindings are not listed in the menu #305

shhyou opened this issue Jul 22, 2023 · 0 comments

Comments

@shhyou
Copy link
Contributor

shhyou commented Jul 22, 2023

Version

Racket 8.9

Description

On Linux, the background expansion keybindings exist but are not listed in the keybindings window. These keybindings are listed on Mac.

Here is a list of missing keybindings:

  • Renaming: C-x m on Mac / ctrl-alt-x m on Linux.
  • Jump to previous/next bound occurrence: C-x p and C-x n on Mac / ctrl-alt-x p and ctrl-alt-x n on Linux
  • Jump to binding occurrence: C-x b on Mac / ctrl-alt-x b on Linux

Misc

It looks like this method removes quite some keybindings, but I don't understand why the C-x prefix becomes ctrl-alt-x on Linux and why they are absent.

(define/private (on-this-platform? cs)
(define splits
(for/list ([x (in-list (split-out #\; (string->list cs)))])
(all-but-last (split-out #\: x))))
(define (has-key? k) (ormap (λ (x) (member (list k) x)) splits))

[(eq? (system-type) 'unix)
(cond
[(or (has-key? #\a) (has-key? #\d))
#f]
[else #t])]

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

No branches or pull requests

1 participant