Add zwsp to prompt to make stripping easier

Signed-off-by: Knut Ahlers <knut@ahlers.me>
This commit is contained in:
Knut Ahlers 2022-09-20 15:30:58 +02:00
parent 127c9caba3
commit d36e21b2f6
Signed by: luzifer
GPG key ID: 0066F03ED215AD7D
2 changed files with 7 additions and 0 deletions

View file

@ -58,6 +58,10 @@ blocks:
always_enabled: false always_enabled: false
template: '{{ if gt .Code 0 }}{{ .Code }}{{ else }}{{ end }}' template: '{{ if gt .Code 0 }}{{ .Code }}{{ else }}{{ end }}'
- type: text
style: plain
template: "\u200b"
- type: prompt - type: prompt
alignment: right alignment: right
overflow: hide overflow: hide

3
bin/strip-paste-buffer Executable file
View file

@ -0,0 +1,3 @@
#!/bin/bash
xclip -selection c -o | sed "s/$(printf '\u200b').*//" | xclip -selection c -i