Unverified Commit 01c82c38 authored by Alexander Huynh's avatar Alexander Huynh Committed by GitHub

fix(jump): even spacing between marks (#11601)

parent 49d34d00
......@@ -35,12 +35,11 @@ marks() {
max=${#link:t}
fi
done
local printf_markname_template="$(printf -- "%%%us " "$max")"
local printf_markname_template="$(printf -- "%%%us" "$max")"
for link in $MARKPATH/{,.}*(@N); do
local markname="$fg[cyan]${link:t}$reset_color"
local markname="$fg[cyan]$(printf -- "$printf_markname_template" "${link:t}")$reset_color"
local markpath="$fg[blue]$(readlink $link)$reset_color"
printf -- "$printf_markname_template" "$markname"
printf -- "-> %s\n" "$markpath"
printf -- "%s -> %s\n" "$markname" "$markpath"
done
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment