swiftbar/SwiftBar

Unable to write `|`

Closed this issue · 2 comments

Hi, thanks for great program, but i have question (not sure if it is a bug or a feature)

is there any way to write | in menu row (pipe character)?

I try several escaping but no one works:

Escaping
---
test row
\|
\\|
\\\|
\\\\|
"|"
'|'

Result:

Screenshot 2024-07-27 at 18 24 15

no one works. Is there any way?

Yeah, SwiftBar is pretty bulletproof in this part; processing of | is as straightforward as it gets - it doesn't take into account any escaping whatsoever.

I consider this being a feature, not a bug.

In your case, I suggest you use the vertical pipe symbol, there are a couple in Unicode.

OK, thanks for suggestion :)