Skip to content

Does anybody have a clean solution for files that need to be edited often, but are in .gitignore, and can't be checked in, such as .env? #1930

Answered by ibhagwan
unphased asked this question in Q&A
Discussion options

You must be logged in to vote

You can start in different stats with :FzfLua files hidden=true or :FzfLua files no_ignore=true.

Yes indeed. to clarify I want to keep all the same default behavior as files and my little ~/.ignore workaround works fine for special things like .env in projects! Thanks

You can combine outputs with manual ones, for example adding .env at the top of the list:

:lua FzfLua.files({ cmd = "echo .env && fd --type f", hidden = false  })

Replies: 1 comment 6 replies

Comment options

You must be logged in to vote
6 replies
@unphased
Comment options

@ibhagwan
Comment options

@unphased
Comment options

@ibhagwan
Comment options

Answer selected by unphased
@unphased
Comment options

@ibhagwan
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants