AckslD / nvim-neoclip.lua

Clipboard manager neovim plugin with telescope integration
931 stars 19 forks source link

feat: when using telescope/fzf, add option to set the selected entry as most recent #92

Closed Jeansidharta closed 1 year ago

Jeansidharta commented 1 year ago

Closes #85.

This is a feature I was also interested in, so I decided to try a simple implementation.

This will add a new boolean option refresh_entry_on_select (default = false), which when set, will make whichever entry the user selects on telescope/fzf as the most recent.

One thing I disliked about this is the name of the option refresh_entry_on_select. Do you have a better suggestion?

Example:

Before selecting A: image

After selecting A, and reopening telescope: screenshot

Jeansidharta commented 1 year ago

@AckslD I've made some changes according to the review. Let me know if there's anything else that needs to be done :)

Jeansidharta commented 1 year ago

@AckslD All done! Again, let me know if anything else should be changed

AckslD commented 1 year ago

Awesome, and thanks for the changes 🚀