-
I find that expressions in yuck are sometimes a bit limited. As far as I know there is no way to get a substring from a string, which would actually be pretty handy to handle text in a top bar, which could be truncated and then eventually expanded with a revealer. I guess I could obtain a substring with the replace function, but that seems clunky. Is there really no way to get a substring from a string? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
i think you could use the search(string, regex) function with a regex pattern to lookbehind for the first X characters, and match the subsequent Y characters, to get the substring of length Y that starts at X. but good luck trying to get regex to work. |
Beta Was this translation helpful? Give feedback.
-
I added a substring function to simplexpr now, update eww and check the docs ^^ |
Beta Was this translation helpful? Give feedback.
I added a substring function to simplexpr now, update eww and check the docs ^^