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

feat: support customize supported node types for slash menu #982

Merged
merged 1 commit into from
Dec 9, 2024

Conversation

LucasXu0
Copy link
Collaborator

@LucasXu0 LucasXu0 commented Dec 6, 2024

Use supportSlashMenuNodeTypes to customize which nodes support the slash menu.

CharacterShortcutEvent customSlashCommand(
  List<SelectionMenuItem> items, {
  // ...
  Set<String> supportSlashMenuNodeTypes = _defaultSupportSlashMenuNodeTypes,
})

Copy link

codecov bot commented Dec 6, 2024

Codecov Report

Attention: Patch coverage is 60.00000% with 2 lines in your changes missing coverage. Please review.

Project coverage is 72.18%. Comparing base (ac3b090) to head (36496fa).
Report is 3 commits behind head on main.

Files with missing lines Patch % Lines
...ent/service/shortcuts/character/slash_command.dart 60.00% 2 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #982      +/-   ##
==========================================
- Coverage   72.19%   72.18%   -0.02%     
==========================================
  Files         318      318              
  Lines       15147    15141       -6     
==========================================
- Hits        10936    10929       -7     
- Misses       4211     4212       +1     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@LucasXu0 LucasXu0 merged commit f32762e into AppFlowy-IO:main Dec 9, 2024
6 of 7 checks passed
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.

1 participant