Skip to content

Simplified menu item annotations. - #1110

Merged
alabuzhev merged 1 commit into
FarGroup:masterfrom
MKadaner:mzk/simplify-menu-item-Annotations
Jun 13, 2026
Merged

Simplified menu item annotations.#1110
alabuzhev merged 1 commit into
FarGroup:masterfrom
MKadaner:mzk/simplify-menu-item-Annotations

Conversation

@MKadaner

@MKadaner MKadaner commented Jun 8, 2026

Copy link
Copy Markdown
Contributor

Summary

Even though we can render multiple annotations on each VMenu item, we never set more than one. So why pretending? Let's be honest and say there can be no more than one. This assumption allows to simplify the code and opens opportunity for further improvements (stay tuned).

Checklist

  • I have followed the contributing guidelines.
  • I have discussed this with project maintainers: Not yet.

    If not checked, I accept that this work might be rejected in favor of a different great big ineffable plan.

Details

  • Replaced the list of annotations in menu_item_ex with the single optional annotation.
  • markup_highlight (former markup_slice_boundaries) returns std::array<string_view, 3>.
  • Changed the types of FixedColumnsArea and TextArea of menu_layout from small_segment to segment.
  • Everything else is mere consequences.

@MKadaner
MKadaner force-pushed the mzk/simplify-menu-item-Annotations branch from 39605af to 88dd223 Compare June 9, 2026 01:53
Comment thread far/vmenu.cpp Outdated
Comment thread far/vmenu.cpp Outdated
@MKadaner
MKadaner force-pushed the mzk/simplify-menu-item-Annotations branch from 88dd223 to d76a8a8 Compare June 13, 2026 13:54
@sonarqubecloud

Copy link
Copy Markdown

@alabuzhev
alabuzhev merged commit ecbd245 into FarGroup:master Jun 13, 2026
47 of 48 checks passed
@alabuzhev

Copy link
Copy Markdown
Contributor

Thank you

@MKadaner
MKadaner deleted the mzk/simplify-menu-item-Annotations branch June 13, 2026 15:22
@MKadaner

Copy link
Copy Markdown
Contributor Author

Thank you!

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