fix: prompt termination in devious-diamonds.omp.yaml

The " \b" in this template was causing issues with non-deletable characters when you used tab to pop up suggestions in zsh.
The approach of inserting an invisible character if not root preserves  the trailing diamond without introducing spacing issues.
This commit is contained in:
Bondrake 2024-04-14 14:19:02 +10:00 committed by Jan De Dobbeleer
parent a47070b9d8
commit 1055f69ec7

View file

@ -234,7 +234,7 @@ blocks:
foreground: white
properties:
root_icon:
template: "{{ if and .Root ( not .Segments.Path.Writable ) }} {{ end }}{{ if and .Root .Segments.Path.Writable }}  {{ end }} \b"
template: "{{ if not .Root }}\u2800{{ end }}{{ if and .Root ( not .Segments.Path.Writable ) }} {{ end }}{{ if and .Root .Segments.Path.Writable }}  {{ end }}"
console_title_template: "{{ .Folder }}"
palette:
black: "#1B1A23"