nvim-mini / nvim-mini/mini.nvim

[mini.pick] Builtin default mouse mappings

Open
#2,130 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

feature-request mini.pick
Dominant language
Lua
Stars
9.5k
Forks
310
Avg merge
4h 16m
Merged PRs (30d)
1

Description

Contributing guidelines
Module(s)

mini.pick

Description

First of all, I would just like to thank everyone that works on mini. It's awesome!

Now, for the feature request proper. I think having builtin, default mouse mappings for scrolling over, choosing and previewing matches in mini.pick would make the user experience a bit more complete. It just feels a tad awkward, not being able to interact with the picker window by mouse even with set mouse=a.

Taking a look at the code, it seems like allowing multiple mappings for the same action would be required to implement this feature (or at least, it seems to me like this would be the most general, clean way to implement this. But I guess you could also use custom mappings). This definitely complicates the plugin a bit, and using the mouse is not all that common anyways, so I'm not sure if you'll find this to be a worthwhile feature. If, however, you agree with me that this would be a nice addition, I'm willing to put in the work to make it happen.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reading the mini.pick mapping implementation and its existing action configuration. Determine how default mouse mappings could support scrolling, choosing, and previewing matches while preserving current keyboard mappings. Done means those interactions work with set mouse=a and the mapping behavior is covered by the module's existing tests, if present.

Written by the indexing model from the issue text.

Assessment

Tech stack
lua
Domain
tooling
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.