Skip to content

WIP: allow popups to be resized #15

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 2 commits into from

Conversation

l-kershaw
Copy link
Contributor


Initial commit is a first attempt and probably needs looking through closely to make sure I haven't missed anything.

- adds table to keep track of `Border`s associated to `popup`s

- adds function to resize a `popup`

- relies on nvim-lua/plenary.nvim#180
- add relative key to `win_opts` which is set to 'editor'

- small renaming and typos
l-kershaw added a commit to l-kershaw/telescope.nvim that referenced this pull request Jul 5, 2021
- implements `Picker:recalculate_layout` function

- adds an autocommand to call this function on the `VimResized` event

- relies on nvim-lua/plenary.nvim#180 and nvim-lua/popup.nvim#15

Currently has issues when the results window increases in height
@tjdevries
Copy link
Member

Do you need anything from me here? I am trying to catch up on (very delayed) reviews in popup and plenary.

@l-kershaw
Copy link
Contributor Author

I honestly can't remember where I was up to on this and the related PRs in plenary and telescope.
I think I stopped to see how things worked with your async stuff, and then I could make sure that the picker resizing in telescope worked well with it.

@l-kershaw
Copy link
Contributor Author

Closing in favour of plenary PR as popup functionality has moved to plenary

@l-kershaw l-kershaw closed this Aug 24, 2021
l-kershaw added a commit to l-kershaw/telescope.nvim that referenced this pull request Oct 10, 2021
- implements `Picker:recalculate_layout` function

- adds an autocommand to call this function on the `VimResized` event

- relies on nvim-lua/plenary.nvim#180 and nvim-lua/popup.nvim#15

Currently has issues when the results window increases in height
l-kershaw added a commit to l-kershaw/telescope.nvim that referenced this pull request Oct 18, 2021
- implements `Picker:recalculate_layout` function

- adds an autocommand to call this function on the `VimResized` event

- relies on nvim-lua/plenary.nvim#180 and nvim-lua/popup.nvim#15

Currently has issues when the results window increases in height

lint
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants