--show-gitignored, but do not enter
broot allows special paths in the config:
special_paths: {
"/media/slow-backup-disk" : no-enter
"/home/dys/useless" : hide
"/home/dys/my-link-I-want-to-explore" : enter
}
which are quite useful for dealing e.g. with .git folders:
special_paths: {
"**/.git": no-enter
}
so they are still visible in broot (especially when used as a replaced for tree), but don't mess the output with their content.
It would be nice to achieve similar effect with git-ignored directores.
Reformulation: It looks to me that the solution would be
- a new mode in which gitignored files are displayed but not automatically entered
- the verbs toggling this mode
@Canop did you ever resolve this issue?
@faelin I didn't. I'm not even sure of the needs or best ergonomics here. Comments welcome.
(most especially, as I'm dealing with a dozen projects atm, I have to estimate priorities and people telling they're interested are probably the best hint to me)
I agree with your reformulation, except that only directories that are git-ignored should be shown (and not entered), while git-ignored file nodes should remain hidden by default.
As a separate (but related) request—which I might move into a separate [feature request] issue—it would be extremely nice to be able to pass special-paths to broot via CLI flags, as in
$> broot --hide="/home/dys/useless" --no-enter="/media/slow-backup-disk" --no-enter="**/.git" --enter="/home/dys/git-ignored-path"
(not that in my example, flags can be repeated multiple times, but semicolon-separated paths might be acceptable instead)
Not sure about the best arg syntax but this feature sounds reasonable and with no downside. Please create a separate issue for it.