AckslD / nvim-neoclip.lua

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

feat: closing telescope after action is now optional #97

Closed Jeansidharta closed 1 year ago

Jeansidharta commented 1 year ago

This would resolve this and this todos.

It adds a new settings at on_select, on_paste and on_replay called close_telescope (defaults to true), which when set to true, will close telescope after the action. If set to false, the action will be executed while maintaining the telescope window open.

Jeansidharta commented 1 year ago

Hey @AckslD, just following up on the last PR.

I found an even easier way to play actions on a buffer behind telescope. All I had to do was get the user's current buffer before opening Telescope, and pass it along to the actions, which would in turn apply their actions on the given buffer.

Therefore, this function was not needed for these cases.

AckslD commented 1 year ago

Very nice @Jeansidharta!