Skip to content
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

chore: clear previewer if no item is selected #2004

Merged
merged 1 commit into from
Jun 13, 2022

Conversation

Conni2461
Copy link
Member

@Conni2461 Conni2461 commented Jun 13, 2022

close #1702

@fdschmidt93
Copy link
Member

fdschmidt93 commented Jun 13, 2022

LGTM & works for me :)

One thing that maybe comes to mind from quick test drive is that dynamic titles persist. I guess we could let those try to fall back to the static title (not required from my end, just trying to pre-empt what follow-up issues may arise 😅 ), which should typically be accessible via picker._previewer._title_fn I suppose. (previewers.pickers from a quick glance I think sole offender -- my bad -- that wouldn't have a static title.)

@Conni2461 Conni2461 force-pushed the chore/clear_previewer branch from 49ccfcb to f59848c Compare June 13, 2022 16:43
@Conni2461
Copy link
Member Author

Conni2461 commented Jun 13, 2022

forgot about the title 😆 fallback to static_title and then fallback to empty string which means no border title. I think that is good enough 😆

@Conni2461 Conni2461 merged commit 6ba4221 into nvim-telescope:dev Jun 13, 2022
@Conni2461 Conni2461 deleted the chore/clear_previewer branch June 13, 2022 16:53
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