Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

[Suggestion]: Expose/implement autocmds that fire on picker open/close #708

Copy link
Copy link

Description

@jadonwb
Issue body actions

Which fff frontend(s)?

Neovim plugin (fff.nvim)

What problem are you trying to solve?

My specific use case is to configure my whole screen to dim when the picker is open, similar to Folke's Snacks. So either that would be nice directly, or we could just expose some User autocmds that fire at the right places. I think the autocmd option is easiest for now.

Proposed solution

vim.api.nvim_exec_autocmds("User", { pattern = "FFFOpen" })
-- ... picker runs ...
vim.api.nvim_exec_autocmds("User", { pattern = "FFFClose" })
Reactions are currently unavailable

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requestNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

    Morty Proxy This is a proxified and sanitized view of the page, visit original site.