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

[Feature Request] Support Fzf Lua #17

Open
jellydn opened this issue Apr 25, 2024 · 1 comment
Open

[Feature Request] Support Fzf Lua #17

jellydn opened this issue Apr 25, 2024 · 1 comment
Labels
enhancement New feature or request

Comments

@jellydn
Copy link

jellydn commented Apr 25, 2024

What

Add support for cloaking in Fzf Lua, similar to the existing support for Telescope.

Why

Fzf Lua is a powerful and popular finder tool within the Neovim ecosystem. Supporting Fzf Lua in cloak.nvim would allow users who prefer Fzf Lua over Telescope to benefit from the cloaking features, enhancing privacy and reducing distractions during code navigation and file searching.

How

Implement a configuration flag similar to the cloak_telescope option, which when set to true, will enable cloaking for Fzf Lua buffers. Here's a proposed configuration snippet:

-- Set to true to cloak Fzf Lua preview buffers. (Proposed feature)
cloak_fzf_lua = true,

The implementation would need to hook into the Fzf Lua plugin's buffer creation and apply cloaking rules similar to those used for Telescope.

@philosofonusus
Copy link

philosofonusus commented Jan 12, 2025

If you are still interested in this feature. I have created a plugin(Github link) that provides all-in-one solution for environment variables and files. It has a feature to mask sensitive values in fzf preview buffers: https://github.com/philosofonusus/ecolog.nvim?tab=readme-ov-file#-features-1

While it is great, currently my plugin focuses to work with .env files and their patterns explicitly. Cloak provides more lightweight/minimal approach and some of the customization options that my plugin doesn't have.

However, if your main way to use mask is to use it with .env files and environment variables be sure to check it out

feryardiant added a commit to feryardiant/config-nvim that referenced this issue Jan 26, 2025
A plugin that claims to provide privacy over our `dotenv`
files by hiding/masking the values of all environment variables
and apparently has quite a lot of feature out of the box.

Previously I've tried `laytan/cloak.nvim` after watching
video from TJ DeVries. But after seeing laytan/cloak.nvim#17
and find out that `ecolog.nvim` has quite interesting features
I decided to give it a try.

Signed-off-by: Fery Wardiyanto <[email protected]>
@laytan laytan added the enhancement New feature or request label Mar 5, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants