Skip to content

refactor(actions): improve copy_hash default register message#132

Merged
dlyongemallo merged 1 commit intomainfrom
copy_hash_default_reg_message
Apr 22, 2026
Merged

refactor(actions): improve copy_hash default register message#132
dlyongemallo merged 1 commit intomainfrom
copy_hash_default_reg_message

Conversation

@dlyongemallo
Copy link
Copy Markdown
Owner

No description provided.

Copilot AI review requested due to automatic review settings April 22, 2026 04:59
Copy link
Copy Markdown

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

Updates the copy_hash action’s user-facing info message in the file history view so that copying without an explicit register prefix reports “the default register” instead of showing register '"'.

Changes:

  • Adjust copy_hash listener messaging to describe the unnamed/default register more clearly.
  • Update functional tests to assert default vs explicit register wording in the message.

Reviewed changes

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

File Description
lua/diffview/scene/views/file_history/listeners.lua Refines the copy_hash info message by mapping unnamed/empty register to “the default register”.
lua/diffview/tests/functional/actions_features_spec.lua Adds assertions around the new default-register wording vs explicit register wording.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread lua/diffview/tests/functional/actions_features_spec.lua Outdated
Copy link
Copy Markdown

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

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


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@dlyongemallo dlyongemallo merged commit 8ab1866 into main Apr 22, 2026
6 checks passed
@dlyongemallo dlyongemallo deleted the copy_hash_default_reg_message branch April 22, 2026 06:05
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