Skip to content

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

Description

@jadonwb

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" })

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions