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

Improve language selection experience in code block elements #179

Open
cloverich opened this issue Jun 3, 2024 · 0 comments
Open

Improve language selection experience in code block elements #179

cloverich opened this issue Jun 3, 2024 · 0 comments

Comments

@cloverich
Copy link
Owner

The current code block language select added in #175 is rudimentary, a basic dropdown. Ideally it would have the following behaviors:

  • Look nicer
  • Use typeahead
  • Automatically default to previous language, or infer language (vs plaintext by default)
  • Sort recent languages to top, in an obvious way (because remainder are alphabetical)
  • Remove or hide rarely used languages (ANTLR, etc). Consider making languages configurable (reduces bundle size)
  • Allow setting a default language in preferences (perhaps: default language, or "last used", or "sort X languages to top", etc)

Plate's examples use radix dropdown and a fully custom select menu, but wanted to evaluate other proper select menu's, and probably do #129 before sinking time into this feature.

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