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

Show symbol and emoji after it's name in auto-completion list #296

Open
zufuliu opened this issue Mar 6, 2021 · 2 comments
Open

Show symbol and emoji after it's name in auto-completion list #296

zufuliu opened this issue Mar 6, 2021 · 2 comments
Labels
✅enhancement upstream scintilla Changes depends on upstream Scintilla

Comments

@zufuliu
Copy link
Owner

zufuliu commented Mar 6, 2021

In issue #289, LaTeX input method is implemented, one can type math symbols and emojis by their name using LaTeX like abbreviations (e.g. \sum for ∑, \:smile or \:smile: for 😄): type the abbreviation (or select one from auto-completion list), then press Tab (also called Tab completion in some other editing environments). See https://docs.julialang.org/en/v1/manual/unicode-input/ and https://github.com/iamcal/emoji-data for all supported LaTeX and emoji sequences.

However, currently only the symbol/emoji names are shown on auto-completion list, it would be better to show also the symbol/emoji (like GitHub emoji drop-down list). For sorting purpose, symbol/emoji can only be placed after it's name.

This currently can not be implemented: the auto-completion list is rendered with legacy GDI, which doesn't support colored emoji, and has bugs on rendering math symbols (see XhmikosR/notepad2-mod#121 and other bug reports).

The upstream Scintilla ticket https://sourceforge.net/p/scintilla/bugs/2179/ is about implementing DirectWrite for auto-completion list, once that is done, we can implement this.

@zufuliu zufuliu added ✅enhancement upstream scintilla Changes depends on upstream Scintilla labels Mar 6, 2021
@lifenjoiner
Copy link
Contributor

currently only the symbol/emoji names are shown on auto-completion list

Just got an alternative option for Win10 users: Win + . to use the OS input method program 🤐😬

@zufuliu
Copy link
Owner Author

zufuliu commented Mar 30, 2021

Emoji input can be disabled by set EnableLaTeXLikeEmojiInput (in LaTeXInput.h) to 0, this will make Notepad2.exe 26KiB smaller.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
✅enhancement upstream scintilla Changes depends on upstream Scintilla
Projects
None yet
Development

No branches or pull requests

2 participants