Skip to content

SetClip command: fix for Name parameter - #10775

Merged
kryksyh merged 1 commit into
audacity:audacity3from
DavidBailes:setclip
Apr 23, 2026
Merged

kryksyh merged 1 commit into
audacity:audacity3from
DavidBailes:setclip

Conversation

@DavidBailes

Copy link
Copy Markdown
Collaborator

Resolves: #5915

Problem:
Name parameter of SetClip command cannot be used in Nyquist AUD-DO commands or in scripting.

Fix:
Add missing "Name" parameter to SetClipCommand::VisitSettings(). Note: I've tested this using the nyquist prompt, but not in scripting.

  • [ 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

Problem:
Name parameter of SetClip command cannot be used in Nyquist AUD-DO commands or in scripting.

Fix:
Add missing "Name" parameter to SetClipCommand::VisitSettings().
Note: I've tested this using the nyquist prompt, but not in scripting.
@coderabbitai

coderabbitai Bot commented Apr 22, 2026 •

Copy link
Copy Markdown

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

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

Review profile: ASSERTIVE

Plan: Pro

Run ID: c51a6174-f603-488d-923d-d883458e83b8

📥 Commits

Reviewing files that changed from the base of the PR and between ac9b01f and de712c1.

📒 Files selected for processing (1)
  • src/commands/SetClipCommand.cpp

📝 Walkthrough

Summary by CodeRabbit

Release Notes

  • New Features
    • Added support for naming clips through the Set Clip command. Users can now specify custom names for clips in the command settings, with a default value of "Unnamed" applied when no name is provided. This makes the naming functionality fully accessible within the command interface.

Walkthrough

The SetClipCommand's VisitSettings method is updated to register the optional "Name" setting for clip metadata with a default value of "Unnamed" and an associated presence flag bHasName. The underlying implementation—including UI binding and the conditional application of the name change—was already in place; this change completes the registration to make the setting discoverable within the command's settings definition.

Estimated code review effort

🎯 1 (Trivial) | ⏱️ ~3 minutes

🚥 Pre-merge checks | ✅ 4
✅ Passed checks (4 passed)
Check name Status Explanation
Title check ✅ Passed The title 'SetClip command: fix for Name parameter' directly describes the main change—adding the missing Name parameter to the SetClip command.
Description check ✅ Passed The pull request description includes a direct link to the resolved issue, clearly states the problem and fix, and provides testing details with most checklist items completed.
Linked Issues check ✅ Passed The code change directly addresses issue #5915 by registering the missing 'Name' parameter in SetClipCommand::VisitSettings(), enabling the parameter for Nyquist AUD-DO and scripting use.
Out of Scope Changes check ✅ Passed The modification is narrowly scoped to fixing the missing Name parameter registration; no unrelated changes are present beyond the stated objective.

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


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

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

@DavidBailes DavidBailes linked an issue Apr 22, 2026 that may be closed by this pull request
@kryksyh kryksyh added this to the Audacity 3.7.8 milestone Apr 22, 2026
@kryksyh kryksyh moved this from Design - Todo to Ready for QA in [AU4] Main Board(archive) Apr 22, 2026

@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!

@chinakov chinakov moved this from Ready for QA to In QA in [AU4] Main Board(archive) Apr 23, 2026
@kryksyh kryksyh moved this from Ready for QA to In QA in [AU3] Main board Apr 23, 2026
@github-project-automation github-project-automation Bot moved this from To-Do to Ready for QA in [AU3] Main board Apr 23, 2026
@chinakov chinakov moved this from In QA to Ready for merge in [AU3] Main board Apr 23, 2026
@kryksyh
kryksyh merged commit 4f18c73 into audacity:audacity3 Apr 23, 2026
8 of 9 checks passed
@github-project-automation github-project-automation Bot moved this from Ready for merge to Done in [AU3] Main board Apr 23, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

Macro: "SetClip: Name" fails

2 participants