Last active
February 22, 2025 07:48
-
-
Save evanrelf/bb3131f02e5cc985fac88d287cfdba50 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
set -Eeuo pipefail | |
IFS=$'\n\t' | |
# https://github.com/evanrelf/indigo/tree/rust4 | |
core=$(gum style --border normal "$(fd . --extension rs crates/core/src/ | as-tree --color always)") | |
tui=$(gum style --border normal "$(fd . --extension rs crates/tui/src/ | as-tree --color always)") | |
btree=$(gum style --border normal "$(fd . --extension rs crates/btree/src/ | as-tree --color always)") | |
gum join --horizontal "$core" "$(gum join --vertical "$tui" "$btree")" | |
# $ ./files | |
# ┌─────────────────────────┐┌───────────────┐ | |
# │crates/core/src ││crates/tui/src │ | |
# │├── actions.rs ││├── event.rs │ | |
# │├── cursor.rs ││├── key.rs │ | |
# │├── display_width.rs ││├── main.rs │ | |
# │├── editor.rs ││└── terminal.rs│ | |
# │├── event.rs │└───────────────┘ | |
# │├── index.rs │┌────────────────┐ | |
# │├── key.rs ││crates/btree/src│ | |
# │├── lib.rs ││└── lib.rs │ | |
# │├── mode.rs │└────────────────┘ | |
# │├── ot.rs │ | |
# │├── prelude.rs │ | |
# │├── range.rs │ | |
# │├── rope │ | |
# ││ ├── graphemes_iter.rs│ | |
# ││ └── graphemes_step.rs│ | |
# │└── rope.rs │ | |
# └─────────────────────────┘ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment