swiftbar / SwiftBar

Powerful macOS menu bar customization tool
https://swiftbar.app
MIT License
2.92k stars 92 forks source link

Unable to write `|` #420

Closed matopeto closed 1 month ago

matopeto commented 3 months ago

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?

melonamin commented 2 months ago

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.

matopeto commented 1 month ago

OK, thanks for suggestion :)