Skip to content

Fix names of clip boundary commmands used in macro UX - #10629

Merged
kryksyh merged 1 commit into
audacity:audacity3from
DavidBailes:clipmacros
Apr 2, 2026
Merged

kryksyh merged 1 commit into
audacity:audacity3from
DavidBailes:clipmacros

Conversation

@DavidBailes

Copy link
Copy Markdown
Collaborator

Resolves: #10616

Problem:
The selection commands "Pre&vious Clip Boundary to Cursor", and "Cursor to Ne&xt Clip Boundary" do not have LongNames set. Because of this:

  1. the names of these commands in the macros UX don't describe their actions.
  2. in the macros UX the name of the select command, "Cursor to Next Clip Boundary" is the same as the command for actually moving the cursor "Cursor to Next Clip Boundary". This leads to a macro containing the command for moving the cursor actually selecting instead.

Fix:
Set LongNames for the two selection commands.

  • [x ] I signed CLA
  • [x ] The title of the pull request describes an issue it addresses
  • [ x] If changes are extensive, then there is a sequence of easily reviewable commits
  • [x ] Each commit's message describes its purpose and effects
  • [x ] There are no behavior changes unnecessary for the stated purpose of the PR

Recommended:

  • [x ] Each commit compiles and runs on my machine without known undesirable changes of behavior

QA:

  • Autobot test cases have been run

@coderabbitai

coderabbitai Bot commented Mar 31, 2026 •

Copy link
Copy Markdown

Caution

Review failed

The pull request is closed.

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Repository UI (base), Organization UI (inherited)

Review profile: ASSERTIVE

Plan: Pro

Run ID: 0d659627-0cd3-490f-ac56-0ec932cb80de

📥 Commits

Reviewing files that changed from the base of the PR and between 9d805b9b7668afba10f94b64b94af744746cc23d and ac32bae.

📒 Files selected for processing (1)
  • src/menus/ClipMenus.cpp

📝 Walkthrough

Summary by CodeRabbit

  • Bug Fixes
    • Improved accessibility for clip-boundary selection by adding descriptive long names to the related commands, making keyboard and screen‑reader navigation clearer and more intuitive for users with assistive technologies.

Walkthrough

In src/menus/ClipMenus.cpp the ClipSelectMenu() command registrations for SelPrevClipBoundaryToCursor and SelCursorToNextClipBoundary were modified to include an additional parameter: Options{}.LongName(...). The command IDs, display labels, flags (WaveTracksExistFlag()), and handlers were not changed; only the long-name option was added for those two registrations.

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~10 minutes

Possibly related PRs

🚥 Pre-merge checks | ✅ 4
✅ Passed checks (4 passed)
Check name Status Explanation
Title check ✅ Passed The title 'Fix names of clip boundary commmands used in macro UX' clearly describes the main change, which is setting LongNames for clip boundary selection commands.
Description check ✅ Passed The description includes the issue link, clear problem statement, solution, and mostly completed checklist items meeting template requirements.
Linked Issues check ✅ Passed The PR successfully addresses issue #10616 by setting LongNames for the two selection commands, providing distinct names in the Macros UX to prevent confusion and incorrect command execution.
Out of Scope Changes check ✅ Passed All changes are in-scope: only local menu Command registrations were modified to add LongName entries for the two clip boundary selection commands as required.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.


Comment @coderabbitai help to get the list of available commands and usage tips.

@kryksyh kryksyh left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@DavidBailes thank you!

Problem:
The selection commands "Pre&vious Clip Boundary to Cursor", and "Cursor to Ne&xt Clip Boundary" do not  have LongNames set. Because of this:
1. the names of these commands in the macros UX don't describe their actions.
2. in the macros UX the name of the select command, "Cursor to Next Clip Boundary" is the same as the command for actually moving the cursor "Cursor to Next Clip Boundary". This leads to a macro containing the command for moving the cursor actually selecting instead.

Fix:
Set LongNames for the two selection commands.
@kryksyh
kryksyh merged commit c3700c6 into audacity:audacity3 Apr 2, 2026
7 of 8 checks passed
@kryksyh kryksyh linked an issue Sep 7, 2026 that may be closed by this pull request
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.

Macro "Cursor to Next Clip Boundary" does not work [with work around] Missing macro command - Cursor to Next Clip Boundary

2 participants