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

Allow searching for codepoints #23

Open
treyhunner opened this issue Jul 11, 2024 · 0 comments
Open

Allow searching for codepoints #23

treyhunner opened this issue Jul 11, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@treyhunner
Copy link
Owner

Searching \u2728 or 2728 should search for the character with the code point 0x2728 (10024).

>>> int('2728', 16)
10024

Ideas for later / bonus ideas

Searching for a number that could be a decimal number (like 2728) could also search for the character that uses that decimal code point (e.g. chr(2728)).

Searching for a possible code point could also search for characters with a nearby code point, sorted by their ascending distance from the searched code point.

For example searching \u201c might show these results (note that the "closer" codepoints are at the top of results):

  • '\u201c' (“)
  • '\u201b' (‛)
  • '\u201d' (”)
  • '\u201a' (‚)
  • '\u201e' („)
  • '\u2019' (’)
  • '\u201f' (‟)
  • '\u2018' (‘)
  • '\u2020' (†)
  • '\u2017' (‗)
  • '\u2021' (‡)
@treyhunner treyhunner added the enhancement New feature or request label Jul 11, 2024
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