Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

QuickSelectArgs: optionally bypass custom action on paste #6405

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

nhurlock
Copy link

@nhurlock nhurlock commented Nov 17, 2024

QuickSelect will paste the selection when the capitalized selection form is used. This is fine on its own when dealing with the default actions (lower=copy upper=copy+paste), but can cause odd behavior for QuickSelectArgs when a custom action is defined.

The example used in the docs for QuickSelectArgs (opening a URL) I believe is one of those cases where we'd want to perform a paste but NOT perform the action when a capitalized selection is used. Without the option, the user would experience both a paste of the URL as well as their browser opening the link.

In this PR I'm proposing the addition of a paste_performs_action override option for QuickSelectArgs which will allow users to disable this behavior. For the URL open case, when disabled, capital selection would only paste and not open the URL. I've defaulted the option to true to persist the current behavior.

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.

1 participant