summaryrefslogtreecommitdiff
path: root/plugins/eza
diff options
context:
space:
mode:
authorBenedikt Volkmer <7070761+bvolkmer@users.noreply.github.com>2024-07-08 20:19:15 +0200
committerGitHub <noreply@github.com>2024-07-08 20:19:15 +0200
commit5b37e218e5275c11cb5fecc61f943e6cea3e64bf (patch)
tree09caadd08bc4dfdbcdfb1e37c62cce19c24cfc4c /plugins/eza
parent608d62b2a5ee7f3af62dd8f31d47c167bf04547f (diff)
downloadzsh-5b37e218e5275c11cb5fecc61f943e6cea3e64bf.tar.gz
zsh-5b37e218e5275c11cb5fecc61f943e6cea3e64bf.tar.bz2
zsh-5b37e218e5275c11cb5fecc61f943e6cea3e64bf.zip
feat(eza): add hyperlink option (#12545)
Diffstat (limited to 'plugins/eza')
-rw-r--r--plugins/eza/README.md10
-rw-r--r--plugins/eza/eza.plugin.zsh3
2 files changed, 13 insertions, 0 deletions
diff --git a/plugins/eza/README.md b/plugins/eza/README.md
index 6fc113eba..0d79145c0 100644
--- a/plugins/eza/README.md
+++ b/plugins/eza/README.md
@@ -90,6 +90,16 @@ Sets the `--time-style` option of `eza`. (See `man eza` for the options)
Default: Not set, which means the default behavior of `eza` will take place.
+### `hyperlink`
+
+```zsh
+zstyle ':omz:plugins:eza' 'header' yes|no
+```
+
+If `yes`, always add `--hyperlink` flag to create hyperlink with escape codes.
+
+Default: `no`
+
## Aliases
**Notes:**
diff --git a/plugins/eza/eza.plugin.zsh b/plugins/eza/eza.plugin.zsh
index e95b14749..f25f1c30b 100644
--- a/plugins/eza/eza.plugin.zsh
+++ b/plugins/eza/eza.plugin.zsh
@@ -38,6 +38,9 @@ function _configure_eza() {
if [[ $_val ]]; then
_EZA_TAIL+=("--time-style='$_val'")
fi
+ if zstyle -t ":omz:plugins:eza" "hyperlink"; then
+ _EZA_TAIL+=("--hyperlink")
+ fi
}
_configure_eza