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

[Feature request] Override paste and cancel actions in QuickSelectArgs #5399

Open
GoodbyeNJN opened this issue May 9, 2024 · 0 comments
Open
Labels
enhancement New feature or request

Comments

@GoodbyeNJN
Copy link

Is your feature request related to a problem? Please describe.

It is currently possible to override the primary action in QuickSelectArgs, but there is no way to override the paste and cancel actions.

For example, I want to clear selection after the paste action, or scroll to bottom after the cancel action.

Describe the solution you'd like

wezterm.action.QuickSelectArgs({
    -- mark as deprecated
    -- if both label and primary_label are specified, primary_label is preferred
    label = 'primary action label',
    -- mark as deprecated
    -- if both action and primary_action are specified, primary_action is preferred
    action = wezterm.action_callback(
        function(window, pane)
            -- do primary action
        end
    ),

    primary_label = 'primary action label',
    secondary_label = 'secondary action label',
    cancel_label = 'cancel action label',

    primary_action = wezterm.action_callback(
        function(window, pane)
            -- do primary action
        end
    ),
    secondary_action = wezterm.action_callback(
        function(window, pane)
            -- do secondary action
        end
    ),
    cancel_action = wezterm.action_callback(
        function(window, pane)
            -- do cancel action
        end
    ),
})

Describe alternatives you've considered

Not considered yet.

Additional context

Nope.

@GoodbyeNJN GoodbyeNJN added the enhancement New feature or request label May 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant