nvim-tree.lua icon indicating copy to clipboard operation
nvim-tree.lua copied to clipboard

Use `vim.ui.select` for selecting an option instead of `vim.ui.input`

Open nghialm269 opened this issue 3 years ago • 1 comments

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

https://github.com/kyazdani42/nvim-tree.lua/commit/8dc2144e878921111c75a942af6abed685e15c01 switched from vim.ui.select to vim.ui.input, which causes a problem for me: when the filename is too long, the title is truncated and I couldn't see the choices (y/n/r).

Describe the solution you'd like

I think using vim.ui.select is a better fit since in this case we're selecting an option rather than inputting something. If user doesn't happy with the UI/UX, they can override vim.ui.select instead.

Additional context image

In this image, I'm copying and pasting a file into the same folder, nvim-tree prompts for overriding or renaming the file, but the title is truncated and I couldn't see the possible choices/what to enter.

nghialm269 avatar Aug 02 '22 13:08 nghialm269

I experience the same thing. Very much needed.

mosheavni avatar Aug 11 '22 07:08 mosheavni

Resolved https://github.com/kyazdani42/nvim-tree.lua/commit/ac8d259badf915cd9aaad406503d116230296c44

alex-courtis avatar Sep 22 '22 03:09 alex-courtis