Skip to content

Show/hide main window under mouse cursor combined option #2272

Closed

Description

@NTWarrior

Is your feature request related to a problem? Please describe.
I'd like to combine "show/hide main window" and "Show main window under mouse cursor"

Describe the solution you'd like
I'd like a single keyboard shortcut to show the window under the cursor if it's currently hidden, and hide the window if it's shown.

Describe alternatives you've considered
I believe Ditto had this behaviour when I used it in the past

Additional context
Add any other context or screenshots about the feature request here.

Activity

  1. hluk commented on Mar 4, 2023

    @hluk
    Owner

    You can use modified version of the command (here is how to add the command to CopyQ):

    [Command]
    Command="
        copyq:
        if (visible())
            hide()
        else
            showAt()"
    GlobalShortcut=ctrl+shift+a
    Icon=\xf022
    IsGlobalShortcut=true
    Name=Show main window under mouse cursor
  2. hluk commented on Mar 4, 2023

    @hluk
    Owner

    Just change the Global Shortcut of the new command after you add it.

  3. Chealer commented on Mar 25, 2026

    @Chealer
    Contributor

    Thank you for reporting. This affects CopyQ 14.

    Ditto basically behaves that way, but location depends on its configuration.

    I suggest retitling this to:

    No built-in command to toggle main window displaying under/around mouse pointer

    License All comments and attachments from myself on this ticket are offered under the terms of CC0 1.0.
  4. hluk commented on Mar 26, 2026

    @hluk
    Owner

    This makes sense. Let me just change the default behavior to also hide the window with "Show main window under mouse cursor". This will be available in the next release.

  5. added a commit that references this issue on Mar 26, 2026
    1175475
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    featureNew feature request

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions