Canop / Canop/broot

[Feature Request] add CLI flags to hide/show/enter directory paths

Open
#558 4 comments 2 reactions 0 assignees View on GitHub
enhancement
Dominant language
Rust
Stars
12.9k
Forks
314
Avg merge
1d 6h
Merged PRs (30d)
6

Description

_[Pulled from comments on Issue #409]_

It would be extremely useful to be able to pass special-paths to broot via CLI flags, as in
```bash
broot --hide="/example/useless" --no-enter="/example/slow-remote-mount" --no-enter="**/.git" --enter="/example/git-ignored-path"
```

In addition, per Issue #551, this feature should be coupled with new Verb commands within the Broot view itself:

| `:hide`
(with selection) | `:show-hidden`
(with argument) | `:no-enter`
(with argument) |
| --- | --- | --- |
| ![Screen Shot 2022-06-07 at 11 49 03 AM](https://user-images.githubusercontent.com/8279240/172424921-919644a6-a222-4738-8c3c-42717e1225d8.png) | ![Screen Shot 2022-06-07 at 11 49 19 AM](https://user-images.githubusercontent.com/8279240/172424925-5c6364f0-b211-4cc2-866d-02f6016653a8.png) | ![Screen Shot 2022-06-07 at 11 49 28 AM](https://user-images.githubusercontent.com/8279240/172424928-bdcf547f-0d8d-4308-8b0b-c5ffb254f185.png) |

Contributor guide

Open the contributing guide

Research direction

Start with the requested CLI examples and the related discussions in Issues #409 and #551. The work is complete when broot accepts the hide, no-enter, and enter path flags and provides the requested :hide, :show-hidden, and :no-enter verbs in the view.

Written by the indexing model from the issue text.

Assessment

Tech stack
rust
Domain
cli
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.