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

add comment property to CandidateWord #1004

Merged
merged 6 commits into from
Apr 2, 2024
Merged

Conversation

eagleoflqj
Copy link
Member

@eagleoflqj eagleoflqj commented Apr 2, 2024

Currently comment of a rime candidate is appended into candidate in engine level, so it's hard to distinguish and apply different style.
The PR adds a new property to CandidateWord and preserves the behavior in 3 UI implementations (classicui and kimpanel tested, virtualkeyboard not tested).

@wengxt
Copy link
Member

wengxt commented Apr 2, 2024

updateClientSideUIImpl in dbusfrontend.cpp also need to be updated,

src/lib/fcitx/text.cpp Outdated Show resolved Hide resolved
src/lib/fcitx/text.cpp Outdated Show resolved Hide resolved
src/lib/fcitx/text.h Show resolved Hide resolved
src/lib/fcitx/candidatelist.h Show resolved Hide resolved
@wengxt
Copy link
Member

wengxt commented Apr 2, 2024

Also, whenever you add new API that was intended to be used by other project immediately, bump the version in CMakeLists.txt in the root if no one bumped the version after the previous release.

@eagleoflqj eagleoflqj requested a review from wengxt April 2, 2024 02:12
@wengxt
Copy link
Member

wengxt commented Apr 2, 2024

Please also add some tests that exercise the new api function in test/testtext.cpp and test/testcandidatelist.cpp

@wengxt wengxt merged commit 9d3b0e7 into fcitx:master Apr 2, 2024
3 checks passed
@eagleoflqj eagleoflqj deleted the comment branch November 7, 2024 03:44
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

Successfully merging this pull request may close these issues.

2 participants