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
template: '{{ if gt .Code 0 }}{{ .Code }}{{ else }}{{ end }}'
- type: text
style: plain
template: "\u200b"
- type: prompt
alignment: right
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