Skip to content

Add options for song title and artist info in lyrics copy feature#948

Merged
imsyy merged 2 commits intodevfrom
dev-copy
Feb 27, 2026
Merged

Add options for song title and artist info in lyrics copy feature#948
imsyy merged 2 commits intodevfrom
dev-copy

Conversation

@kazukokawagawa
Copy link
Copy Markdown
Collaborator

在复制歌词功能中添加可选的歌名和歌手信息显示。用户现在可以通过复选框选择是否在复制的歌词末尾添加歌曲名称和艺术家信息。默认情况下这两个选项为选中状态,以提供更好的上下文信息。

在复制歌词功能中添加可选的歌名和歌手信息显示。用户现在可以通过复选框选择是否在复制的歌词末尾添加歌曲名称和艺术家信息。默认情况下这两个选项为选中状态,以提供更好的上下文信息。
Copilot AI review requested due to automatic review settings February 27, 2026 13:55
@kazukokawagawa kazukokawagawa self-assigned this Feb 27, 2026
@gemini-code-assist
Copy link
Copy Markdown
Contributor

Summary of Changes

Hello, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed!

此拉取请求主要增强了歌词复制功能,允许用户选择是否在复制的歌词中包含歌曲名称和艺术家信息,以提供更丰富的上下文。此外,还包含了一个对 AutomixManager 文件中变量声明的微小优化。

Highlights

  • 歌词复制功能增强: 在歌词复制功能中添加了歌名和歌手信息的选项。
  • 默认选中: 复制歌词时,歌名和歌手信息选项默认选中,以提供更好的上下文。
  • 逻辑实现: 实现了将歌名和歌手信息附加到复制歌词末尾的逻辑。
  • 代码优化: 修复了 AutomixManager.ts 中的一个次要变量声明,将 let 改为 const
Changelog
  • src/components/Modal/CopyLyrics.vue
    • 添加了用于歌名和歌手的复选框UI元素。
    • 更新了默认选中的过滤器,以包含歌名和歌手。
    • 实现了将歌名和歌手信息附加到复制歌词字符串的逻辑。
  • src/core/automix/AutomixManager.ts
    • rawTime 变量的声明从 let 修改为 const
Using Gemini Code Assist

The full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips.

Invoking Gemini

You can request assistance from Gemini at any point by creating a comment using either /gemini <command> or @gemini-code-assist <command>. Below is a summary of the supported commands on the current page.

Feature Command Description
Code Review /gemini review Performs a code review for the current pull request in its current state.
Pull Request Summary /gemini summary Provides a summary of the current pull request in its current state.
Comment @gemini-code-assist Responds in comments when explicitly tagged, both in pull request comments and review comments.
Help /gemini help Displays a list of available commands.

Customization

To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a .gemini/ folder in the base of the repository. Detailed instructions can be found here.

Limitations & Feedback

Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for Github and other Google products, sign up here.

You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension.

Footnotes

  1. Review the Privacy Notices, Generative AI Prohibited Use Policy, Terms of Service, and learn how to configure Gemini Code Assist in GitHub here. Gemini can make mistakes, so double check it and use code with caution.

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This pull request adds optional song title and artist information display to the lyrics copy feature. Users can now select whether to append song name and/or artist information at the end of copied lyrics through new checkboxes. By default, both options are checked to provide better context information.

Changes:

  • Added two new checkboxes in the copy lyrics modal for song name and artist selection
  • Updated default selections to include the new options
  • Implemented logic to append formatted song/artist metadata to copied lyrics with a clear separator

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.

File Description
src/components/Modal/CopyLyrics.vue Added checkboxes for song name and artist options, implemented logic to append formatted metadata to copied lyrics
src/core/automix/AutomixManager.ts Changed variable declaration from let to const for immutable rawTime variable

} else if (showSongName) {
suffix += `《${songName}》`;
} else if (showArtist) {
suffix += ` ${artistName}`;
Copy link

Copilot AI Feb 27, 2026

Choose a reason for hiding this comment

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

The suffix has an extra leading space when only artist is shown. The line should be suffix += artistName; instead of suffix += ${artistName}; to maintain consistency with how song name and combined formats are handled (where the separator "—" is followed directly by content without extra spacing).

Suggested change
suffix += ` ${artistName}`;
suffix += artistName;

Copilot uses AI. Check for mistakes.
const { duration } = audioManager;
if (!duration || duration <= 0) return;
let rawTime = audioManager.currentTime;
const rawTime = audioManager.currentTime;
Copy link

Copilot AI Feb 27, 2026

Choose a reason for hiding this comment

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

This change from let to const is unrelated to the PR's stated purpose of adding song title and artist options to the lyrics copy feature. While this is a good code improvement (since rawTime is never reassigned), it should ideally be in a separate PR or at least mentioned in the PR description to maintain clear change tracking.

Copilot uses AI. Check for mistakes.
@gemini-code-assist
Copy link
Copy Markdown
Contributor

Warning

Gemini is experiencing higher than usual traffic and was unable to create the review. Please try again in a few hours by commenting /gemini review.

@imsyy imsyy merged commit 56e0599 into dev Feb 27, 2026
4 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.

3 participants