echasnovski / mini.nvim

Library of 40+ independent Lua modules improving overall Neovim (version 0.8 and higher) experience with minimal effort
MIT License
4.74k stars 179 forks source link

Can not paste a path to search in mini.pick #820

Closed thieung closed 4 months ago

thieung commented 4 months ago

Contributing guidelines

Module(s)

mini.pick

Description

Can not paste a path to search in mini.pick (Pick File)

Neovim version

0.9.5

Steps to reproduce

  1. Start nvim (already installed mini.pick plugin using stable version)
  2. Open minipick window (using MiniPick.buildtin.files)
  3. Cmd + v to paste a path I copied.
  4. Refer below attachment to see the issue: image

Expected behavior

It should paste my path into mini.pick textbox and trigger searching for that text

Actual behavior

It does nothing

echasnovski commented 4 months ago

Thanks for the suggestion!

This should already be possible by using paste mapping when picker is active. It can paste text from any register. In this particular case, typing <C-r>+ (or <C-r>* depending on which selection register you use) should work as intended.

That said, making pasting using terminal shortcut was on my "see if this is possible" to-do list, so I'll take a look at it somewhat later.

thieung commented 4 months ago

Thanks @echasnovski