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

Keyboard shortcuts for color selection #251

Open
gitkeerthi opened this issue Nov 10, 2023 · 0 comments
Open

Keyboard shortcuts for color selection #251

gitkeerthi opened this issue Nov 10, 2023 · 0 comments
Labels
enhancement New feature or request

Comments

@gitkeerthi
Copy link

It would be nice to have some keyboard shortcuts to select colors from the palette. Perhaps use the number keys. Keys 0 through 9 can be assigned to a color each. Key 0 (zero) could be the default color (white).

This will come handy especially in the distraction-free mode where currently there is no way to select a color.

(And, many thanks for this app)
Cheers!

@gitkeerthi gitkeerthi added the enhancement New feature or request label Nov 10, 2023
freddiehaddad added a commit to freddiehaddad/Lorien that referenced this issue May 26, 2024
This commit adds the following keymaps:

    - p: toggle the color palette UI
    - 0: select palette color 0
    - 1: select palette color 1
    - 2: select palette color 2
    - 3: select palette color 3
    - 4: select palette color 4
    - 5: select palette color 5
    - 6: select palette color 6
    - 7: select palette color 7
    - 8: select palette color 8
    - 9: select palette color 9

If there are fewer than 10 colors in the palette, keymaps for colors
beyond what's in the palette will result in selecting the last color.
For example, if there are 3 colors int he palette and the user presses
4, then color 3 is selected.

For palettes with more than 10 colors will still require manual
selection.
freddiehaddad added a commit to freddiehaddad/Lorien that referenced this issue May 26, 2024
This commit adds the following keymaps:

    - P: toggle the color palette UI
    - 0: select palette color 0
    - 1: select palette color 1
    - 2: select palette color 2
    - 3: select palette color 3
    - 4: select palette color 4
    - 5: select palette color 5
    - 6: select palette color 6
    - 7: select palette color 7
    - 8: select palette color 8
    - 9: select palette color 9

If there are fewer than 10 colors in the palette, keymaps for colors
beyond what's in the palette will result in selecting the last color.
For example, if there are 3 colors in the palette and the user presses
4, then color 3 is selected.

For palettes with more than 10 colors will still require manual
selection.
freddiehaddad added a commit to freddiehaddad/Lorien that referenced this issue May 27, 2024
This commit adds the following keymaps:

    - P: toggle the color palette UI
    - 0: select palette color 0
    - 1: select palette color 1
    - 2: select palette color 2
    - 3: select palette color 3
    - 4: select palette color 4
    - 5: select palette color 5
    - 6: select palette color 6
    - 7: select palette color 7
    - 8: select palette color 8
    - 9: select palette color 9

If there are fewer than 10 colors in the palette, keymaps for colors
beyond what's in the palette will result in selecting the last color.
For example, if there are 3 colors in the palette and the user presses
4, then color 3 is selected.

For palettes with more than 10 colors will still require manual
selection.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant