Add support for updating a register on quick access menu selection - #31
Conversation
When I select an item from the quick access menu, I'd like to be able to paste that item consecutively without re-entering the menu. This is now available with the optional paste_register setting. As the default value for paste_register is nil, this change will not affect existing user's workflows.
ptdewey
left a comment
There was a problem hiding this comment.
Hi, thanks for the contribution and I'm glad you like the plugin!
I'm happy to merge this after a few small changes are made.
Thanks!
- preserve the reg_type to make sure block-wise yanks don't become character-wise - snacks picker guard against empty selections: - bug fix - ensure snacks picker selection always pastes
|
Hey Patrick, Thanks for the feedback! Incorporated your suggestions and fixed a bug I introduced in the snacks picker (pasting the selected, non-empty item shouldn't be conditional). Two other issues, unrelated to this PR:
cheers, |
👍
I don't use snacks (and the integration was contributed by someone else), but I think I'd be inclined to remove the noisy numbers by default. (maybe worth making that a config option, but idk -- probably fine to just add one if someone asks for that behavior back). Feel free to open another PR with that change if you get around to it. |
I don't think I've tested that combination of options, and that definitely is not the intended behavior there. I'd be happy to accept a PR for that as well if you track down what causes that. |
When I select an item from the quick access menu, I'd like to be able to paste that item consecutively without re-entering the menu. This is now available with the optional
paste_registersetting. As the default value for paste_register is nil, this change will not affect existing user's workflows.Thanks for this plugin, it's great!