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

Connect: Prepare fonts configuration #22176

Closed
wants to merge 4 commits into from

Conversation

gzdunek
Copy link
Contributor

@gzdunek gzdunek commented Feb 23, 2023

1/2
Part of #21914

Initially I wanted to create a single PR for all the changes, but I realized that it will be hard to review. The PR that actually enables fonts configuration is here.

In this PR I focused on renaming a few things:

  • For keyboard shortcuts, from now we will be using only "accelerator" (e.g. Command+1) and "action" (e.g. tab1) words. Previously, we used words like: "key", "type", "shortcut" which were really confusing (even for me who wrote this code 🙃). I borrowed "accelerator" from Electron.
  • I renamed some config keys, like keymap.tabNew, to keymap.newTab to make them all more consistent.
  • I renamed some config keys, like keymap.toggleClusters to keymap.openClusters. "Toggle" sounds like a more serious and permanent action, while it only opens (and closes) a popup.
  • I renamed keyboard shortcuts actions, like tab-1 to tab1 to match config keys (keymap.tab1).

I also changed the separator for the accelerators. With "-" we were not able to use this symbol as a valid key code.

Best to review commit by commit.

Previously, we used words like: "key", "type", "shortcut" which were really confusing (and I wrote this code), because it was hard to tell what exactly they describe.
From now, we will use only "accelerator" (borrowed from Electron) and "action" words.
For example, in a shortcut "Command+1": "tab-1":
- "Command+1" is "accelerator"
- "tab-1" is "action"
With "-" we are not able to use this symbol as a valid key code.
@ravicious
Copy link
Member

You mean shortcuts configuration? :D

@gzdunek
Copy link
Contributor Author

gzdunek commented Feb 23, 2023

Sorry, I will reopen the PRs 🤦‍♂️🤦‍♂️🤦‍♂️

@gzdunek gzdunek closed this Feb 23, 2023
@gzdunek gzdunek deleted the gzdunek/prepare-fonts-configuration branch February 23, 2023 15:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants