natecraddock / nvim-find

A fast and simple finder plugin for Neovim

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Prompt and status window

natecraddock opened this issue · comments

the prompt character > is currently implemented by setting the buffer type to be a prompt. This is simple and convenient, but causes a few problems

  • Makes it more difficult to get the query text
  • It is hard (impossible?) to set the prompt text through code

Additionally, it would be nice to have some status info

  • current mode
  • number of results

So instead of using the prompt buffer type it would be better to just make a new window to hold this information. Depending on what status info is shown, it may even be good to add status info right aligned, and keep the prompt and mode on the left

Something like this

FILES > my query here                               100 

or

FILES (100) > my query here

40ffd06 added the prompt. During development I tried adding labels and I'm not sure if I liked it. Maybe right aligned would look better. I will have to continue to evaluate

I decided that the finder looks nicer without labels, but I may revisit this in the future. Closing for now.