5b37e218e5275c11cb5fecc61f943e6cea3e64bf
- Author
- Benedikt Volkmer <7070761+bvolkmer@users.noreply.github.com>
- Committer
- GitHub <noreply@github.com>
- Date
Message
feat(eza): add hyperlink option (#12545)
Diff
1diff --git a/plugins/eza/README.md b/plugins/eza/README.md
2index 6fc113ebaf3bb293a7aecc767d44e8b777890110..0d79145c0804301bd43dfdb44a989aa1c231bcbf 100644
3--- a/plugins/eza/README.md
4+++ b/plugins/eza/README.md
5@@ -90,6 +90,16 @@ Sets the `--time-style` option of `eza`. (See `man eza` for the options)
6
7 Default: Not set, which means the default behavior of `eza` will take place.
8
9+### `hyperlink`
10+
11+```zsh
12+zstyle ':omz:plugins:eza' 'header' yes|no
13+```
14+
15+If `yes`, always add `--hyperlink` flag to create hyperlink with escape codes.
16+
17+Default: `no`
18+
19 ## Aliases
20
21 **Notes:**
22diff --git a/plugins/eza/eza.plugin.zsh b/plugins/eza/eza.plugin.zsh
23index e95b14749e4241e8edef46a62ebcd8c99106cb1d..f25f1c30ba74612fb57449f8260ac57b1b59fb97 100644
24--- a/plugins/eza/eza.plugin.zsh
25+++ b/plugins/eza/eza.plugin.zsh
26@@ -38,6 +38,9 @@ function _configure_eza() {
27 if [[ $_val ]]; then
28 _EZA_TAIL+=("--time-style='$_val'")
29 fi
30+ if zstyle -t ":omz:plugins:eza" "hyperlink"; then
31+ _EZA_TAIL+=("--hyperlink")
32+ fi
33 }
34
35 _configure_eza