Skip to content

Custom ribbon groups and spoken-word search - #654

Open
DWAA1660 wants to merge 3 commits into
AlienTechSoftware:mainfrom
DWAA1660:feat/ribbon-groups-audio-search/568
Open

DWAA1660 wants to merge 3 commits into
AlienTechSoftware:mainfrom
DWAA1660:feat/ribbon-groups-audio-search/568

Conversation

@DWAA1660

@DWAA1660 DWAA1660 commented Dec 3, 2026

Copy link
Copy Markdown
Collaborator

What and why

Closes #568, closes #550.

#568, custom ribbon groups. File > Options > Customize the Ribbon… opens an editor where you can:

  • add your own groups and name them,
  • put each group on the Home, Insert, Draw, History, Review or View tab,
  • reorder groups, show or hide them, and remove them,
  • fill each group from 27 supported commands and reorder those commands,
  • Reset back to the ribbon as it comes.

Nothing changes until you press Save; Cancel or Escape leaves the ribbon as it was. Each group appears after the tab's own groups. In the simplified ribbon, a group is one button that opens a menu of its commands. Each button sends the same ribbon action as the ribbon's own button for that command, so it behaves the same. Every control in the editor is an ordinary button, box or list, so the editor works from the keyboard. Groups are kept in the ribbon_custom_groups setting.

#550, find spoken words. The search box has a new "Spoken words" toggle. It is backed by the audio_search setting and is off until turned on. When it is on, search also looks in the timed lines of transcripts approved with Insert > Transcribe. Results are listed under "Said in recordings" with their time. Choosing a result opens the note with the caret on the line said at that time, and the recording's link is just above that line. A recording or video with no timed transcript is counted and named in the popup instead of being searched. The engine gets a new search.spoken command, which also works from the CLI and MCP; it refuses to run while the setting is off.

Known gaps, written up in docs/gaps.md:

  • NoteCraft has no player that can start a recording part way through, so a result opens the transcript line rather than playing from that time.
  • The pinned search pane does not list spoken results yet.
  • The ribbon's own groups cannot be moved or hidden.

Quality level L3 (see SKILLS/nc-devx/SKILL.md)

  • The pre-push hook passes before pushing (branch current with main, PII, formatting)
  • CI checks pass for this pull request
  • Coverage: the coverage job's warnings are read; cargo xtask coverage --update is in
    this pull request if coverage rose
  • Docs match the change: docs/commands.md (regenerated), docs/gaps.md,
    docs/testing.md, docs/mcp.md, docs/control-protocol.md, as they apply
  • A new user action is a CommandSpec with a test
  • Page or demo changes: cargo xtask demo-check, the format parity test, and a side by
    side look at both formats
  • UI changes: the pictures were looked at; cargo xtask screenshots if they changed
  • New files under assets/ or docs/images/ have a row in ATTRIBUTION.md

How it was checked

  • cargo xtask pre-push passed in full: fmt, clippy, workspace tests, UI tests, i18n-audit, layers, assets, docs, text and demo-check.
  • New tests:
    • Store tests check transcript parsing and search in both page formats, including that recordings with no transcript are reported.
    • An engine test checks that search.spoken is refused while the setting is off and finds the clip once it is on.
    • Unit tests check that groups keep their names, tabs, order and commands through storage, including names with special characters.
    • A UI test for [UI parity] Allow custom ribbon groups for frequently used commands #568 checks that a group shows on the chosen tab and not on others, that its Spelling button opens the spelling pane, that a hidden group does not show, and that Reset clears the groups. It also checks that Options opens the editor and that New Group followed by Save keeps the group.
    • A UI test for [UI parity] Find spoken words from notebook audio and video #550, run in both formats, checks that nothing is searched while the setting is off. With it on, it checks the clip and its time, that the video without a transcript is reported, and that the result puts the caret on the timed line.
  • Not checked: I have not looked at the new screens in the running app.

🤖 Generated with Claude Code

DWAA1660 and others added 2 commits December 2, 2026 20:03
Closes AlienTechSoftware#568: File > Options > Customize the Ribbon adds, names, orders,
hides and fills the person's own groups of commands on the tab they
choose, with Reset to the ribbon as it comes. Each button does what the
ribbon's own button does; every control works from the keyboard.

Closes AlienTechSoftware#550: with the search box's Spoken words on (setting
audio_search, off until turned on), search also finds words in
transcripts approved with Insert > Transcribe, and a result opens the
page at the line said at that time. Recordings with no timed transcript
are reported. The engine gains search.spoken.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@coderabbitai

coderabbitai Bot commented Dec 3, 2026 •

Copy link
Copy Markdown
Contributor

Explain Change →

Note

CodeRabbit ASCII loading animation

Currently processing new changes in this PR. This may take a few minutes, please wait...

Review info

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: acf367fd-31a4-4d12-b768-fc75a4af9272
Commits

Reviewing files that changed from the base of the PR and between 1c1e88f and 42c7784.

Files ignored due to path filters: 3

  • i18n/ar-XB.tsv is excluded by !**/*.tsv
  • i18n/en-XA.tsv is excluded by !**/*.tsv
  • i18n/en.tsv is excluded by !**/*.tsv
Files selected for processing: 17

  • apps/notecraft-cli/src/main.rs
  • crates/engine/src/commands.rs
  • crates/engine/src/json.rs
  • crates/store/src/lib.rs
  • crates/store/src/spoken.rs
  • crates/ui-egui/src/app.rs
  • crates/ui-egui/src/app/customize_ribbon.rs
  • crates/ui-egui/src/backstage.rs
  • crates/ui-egui/src/lib.rs
  • crates/ui-egui/src/ribbon.rs
  • crates/ui-egui/src/ribbon_custom.rs
  • crates/ui-egui/tests/ui.rs
  • docs/commands.md
  • docs/control-protocol.md
  • docs/feature-parity.md
  • docs/gaps.md
  • tools/ocr-lab/src/app.rs

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

@DWAA1660
DWAA1660 marked this pull request as ready for review December 3, 2026 03:32
@DWAA1660
DWAA1660 enabled auto-merge December 3, 2026 03:33

This branch has not been deployed

No deployments
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.

[UI parity] Allow custom ribbon groups for frequently used commands [UI parity] Find spoken words from notebook audio and video

1 participant