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

Option to enable hidden folders on Walkbuilder #190

Closed
jpcrs opened this issue Dec 30, 2024 · 2 comments
Closed

Option to enable hidden folders on Walkbuilder #190

jpcrs opened this issue Dec 30, 2024 · 2 comments
Assignees
Labels
enhancement New feature or request good first issue Good for newcomers

Comments

@jpcrs
Copy link

jpcrs commented Dec 30, 2024

Currently, it is not possible to use the "files" channel to search for files within hidden folders. Upon reviewing the code, Walkbuilder is utilizing the default value, and there is no option to configure it. https://docs.rs/ignore/latest/src/ignore/walk.rs.html#730-736

It would be nice to have an argument to enable or disable it. Ideally, it should be possible to set arguments for a specific channel, but I think it's not currently supported?

@jpcrs jpcrs added the enhancement New feature or request label Dec 30, 2024
@jpcrs jpcrs changed the title Option to enable hidden files on Walkbuilder Option to enable hidden folders on Walkbuilder Dec 30, 2024
@alexpasmantier alexpasmantier added the good first issue Good for newcomers label Jan 6, 2025
@alexpasmantier
Copy link
Owner

You could solve this by creating a custom cable channel that includes hidden files (or maybe even override the default files channel with that if you like) like so:

# $CONFIG_FOLDER/television/my_cable_channels.toml
[[cable_channel]]
name = "hidden-files"
source_command = "fd --hidden"
preview_command = ":files:"
Screenshot 2025-01-09 at 14 23 50

@alexpasmantier alexpasmantier self-assigned this Jan 9, 2025
@alexpasmantier
Copy link
Owner

I believe custom cable channels are the way to go here, especially if we're heading towards #253.
Closing this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

2 participants