Skip to content

Allow mouse click on context window to navigate to context line 🤔 #675

Description

@bew

Hello!

Thanks a lot for this plugin, it's very useful!
I've searched existing issues & repo for mouse but didn't find useful results so here goes this issue.

Currently the context window is created with focusable = false, which means AFAIK:

  • Buffer-local keymaps cannot be set on it
  • Mouse clicks fall through to the buffer line behind the float, not the context line visually under the cursor

Is there another way I don't see to bind <LeftMouse> to a sensible action to navigate to a targeted context line?

Maybe there could be an option to control the window creation options and a callback (or similar mechanism) to bind a mapping myself.
|
Alternatively, provide a way to find the context winid for a window.
Alternatively, provide an option that does exactly this behind the scene.
I think that if the window is only focused briefly for the click and processing, it doesn't really matter whether it is focusable or not 🤔


If the added complexity is not desirable here, do you think it has a chance to land as a modification to focusable on the neovim repo?

Activity

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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions