-
Notifications
You must be signed in to change notification settings - Fork 220
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
feat: Implementation of autocompletion function for emoji input #8137
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
miya
reviewed
Oct 30, 2023
...s/editor/src/services/codemirror-editor/use-emoji-autocompletion/use-emoji-autocompletion.ts
Outdated
Show resolved
Hide resolved
reg-suit detected visual differences. Check this report, and review them. ⚪⚪⚪⚪⚪⚪⚪⚪⚪⚪⚪⚪⚪⚪⚪⚪⚪⚪⚪⚪⚪⚪⚪⚪⚪⚪⚪⚪⚪⚪⚪⚪⚪⚪⚪⚪⚪⚪⚪⚪⚪⚪⚪⚪⚪⚪⚪⚪⚪⚪⚪⚪⚪⚪⚪⚪⚪⚪⚪⚪⚪⚪⚪⚪⚪⚪⚪⚪⚪⚪⚪⚪⚪⚪⚪⚪⚪⚪⚪⚪⚪⚪⚪⚪⚪⚪⚪⚪ What do the circles mean?The number of circles represent the number of changed images.🔴 : Changed items, ⚪ : New items, ⚫ : Deleted items, and 🔵 Passed items How can I change the check status?If reviewers approve this PR, the reg context status will be green automatically. |
yuki-takei
requested changes
Oct 31, 2023
packages/editor/src/services/codemirror-editor/use-codemirror-editor/use-codemirror-editor.ts
Outdated
Show resolved
Hide resolved
return { | ||
from: emojiBefore ? nodeBefore.from + emojiBefore.index : context.pos, | ||
options: emojiOptions, | ||
validFor: /^:\w{2,}$/, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
この正規表現はモジュール変数に入れておく(上でも使っているので)
また、2文字以上入力した時に働くという挙動の説明をコード内コメントとして入れておいてください
Closed
Merged
Closed
Merged
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
タスク
https://redmine.weseek.co.jp/issues/131552
https://redmine.weseek.co.jp/issues/131550
概要
コロンの後にアルファベットを2文字以上入力すると絵文字の予測変換が出るようにしました。
![image](https://private-user-images.githubusercontent.com/83588003/277878542-911467ef-d79d-41f2-9e44-48a8ad93242b.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Mzg5MDA1NzIsIm5iZiI6MTczODkwMDI3MiwicGF0aCI6Ii84MzU4ODAwMy8yNzc4Nzg1NDItOTExNDY3ZWYtZDc5ZC00MWYyLTllNDQtNDhhOGFkOTMyNDJiLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTAyMDclMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwMjA3VDAzNTExMlomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWViZTAxMTZiMTM4MDkzMjJlNjliNGZjZmE5MmFhMjZiOGNlMGMzY2I1YmU5YTBmMDY3YTI5MTIyMmRhMDI4YjQmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.SQwSPK3CLd_Mb0HoZileHTKa-EDqT84_C7-imyxZ8-A)
また、予測変換の絵文字を選択すると絵文字が入力されるようになりました。
(下の画像参考)