feat(pick): update event and window config #2276
feat(pick): update event and window config #2276somnam wants to merge 3 commits intonvim-mini:mainfrom
Conversation
|
Thanks for the PR! Couple of observations:
At this point, I'd also like to ask to see how the minimal (i.e. not fancy) implementation of the side-by-side preview can look like with the proposed changes to the 'mini.pick' code. So that there won't be any new additional PRs to cover this use case. Also, @somnam, I would like to point out that it is better to first create a feature request issue before the PR. This usually saves time for both parties (PR author and reviewer(s)) by first discussing the possible scope without having to add/review tests+documentation. It is documented in 'CONTRIBUTING.md'. |
I did notice that
I've used this to calculate the dimensions of the preview window and adjust the picker window accordingly. Turned out that fetching the config via
Sorry, if I caused any inconvenience. The posted PR was basically working and I was using it for a few days, so I thought why not. I will keep this in mind for the future. Thanks for all the feedback. I'll close this PR as it seems that the current events are sufficient for a side-by-side preview w/o timers. |
Yeah, these are probably enough. Replacing "custom mappings fro cursor movement" with custom event (like
No worries. Just wanted to mention in case of future contributions.
I think several people would be curious to look at the code (if you'd okay with sharing it, of course). The "Show and Tell" discussions are there specifically for this :) |
Following the discussion in #2268. This PR attempts to expose minimal information allowing for custom modifications to mini.pick based on triggering an event on pick update. It also exposes window config calculation so it may be altered by the custom modification.