From 7eb83bf5297ebd2dbf8dae7337dad3266b51c8cf Mon Sep 17 00:00:00 2001 From: Golson Xie Date: Sun, 15 Jun 2025 00:56:29 -0700 Subject: [PATCH] More descriptive alias This is my quick and dirty way to solve the problem mentioned in https://github.com/Aloxaf/fzf-tab/issues/394 Not even certain if this is the correct approach (not very efficient to me) - feel free to close mine and make another PR if a better approach exists. Short demo: https://youtu.be/L-Yml_kN9eU --- fzf-tab.zsh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/fzf-tab.zsh b/fzf-tab.zsh index de36a52f..050d3276 100644 --- a/fzf-tab.zsh +++ b/fzf-tab.zsh @@ -80,6 +80,8 @@ builtin unalias -m '[^+]*' word=$__hits[i] dscr=$__dscr[i] if [[ -n $dscr ]]; then dscr=${dscr//$'\n'} + elif [[ "$expl" == '[alias]' ]]; then + dscr="$(echo $(alias $word) | sed 's/=/ :=> /')" elif [[ -n $word ]]; then dscr=$word fi