8000 fish_key_reader: Humanize key descriptions by faho · Pull Request #9986 · fish-shell/fish-shell · GitHub
[go: up one dir, main page]

Skip to content

fish_key_reader: Humanize key descriptions#9986

Merged
faho merged 1 commit intofish-shell:masterfrom
faho:mr-key-reader-give-me-a-key
Aug 26, 2023
Merged

fish_key_reader: Humanize key descriptions#9986
faho merged 1 commit intofish-shell:masterfrom
faho:mr-key-reader-give-me-a-key

Conversation

@faho
Copy link
Member
@faho faho commented Aug 26, 2023

This used to print all codepoints outside of the ASCII range (i.e. above 0x80) in \uXXXX or \UYYYYYYYY notation.

That's quite awkward, considering that this is about keys that are being pressed, and many keyboards have actual symbols for these on them - I have an "ö" key, so I would like to use bind ö and not bind \u00F6. So we go by iswgraph.

On a slightly different note, \e was written as \c[ (or \e). I do not believe anyone really uses \c[ (the [ would need to be escaped!), and it's confusing and unnecessary to even mention that.

PR for documentation, I don't need review on this.

TODOs:

  • Changes to fish usage are reflected in user documentation/manpages.
  • Tests have been added for regressions fixed
  • User-visible changes noted in CHANGELOG.rst

8000 @faho faho added this to the fish 3.7.0 milestone Aug 26, 2023
This used to print all codepoints outside of the ASCII range (i.e.
above 0x80) in \uXXXX or \UYYYYYYYY notation.

That's quite awkward, considering that this is about keys that are
being pressed, and many keyboards have actual symbols for these on
them - I have an "ö" key, so I would like to use `bind ö` and not
`bind \u00F6`. So we go by iswgraph.

On a slightly different note, `\e` was written as `\c[ (or \e)`. I do
not believe anyone really uses `\c[` (the `[` would need to
be escaped!), and it's confusing and unnecessary to even mention that.
@faho faho force-pushed the mr-key-reader-give-me-a-key branch from a9763c8 to fc2a6a0 Compare August 26, 2023 08:25
@faho faho merged commit 55c425a into fish-shell:master Aug 26, 2023
@faho faho deleted the mr-key-reader-give-me-a-key branch August 26, 2023 08:43
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Dec 30, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant

0