-
-
Notifications
You must be signed in to change notification settings - Fork 262
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Formatter new features #752
Comments
ellipsis for shortened strings
|
symmetric shortening etc. allow trimming
|
soft spaces. Often we want a separator but only if needed eg
|
and condition: Could be good to have
Soft spaces could be perfect for colons too. There should be some other modules just like that too. No song playing, etc.
Unrelated: An ability to override STRING_ERROR / STRING_UNAVAILABLE. |
|
I think I need to wait for new formatters before I make Something to make
|
it might be possible to do something like We could just do it for English and most other European languages (interestingly not French) but I'd prefer a full implementation. A problem is that it might be over complicated for users, also getting the plural types for all different languages would be a pain (I can't seem to find them easily) |
What about just
|
I care about the french 🇫🇷 |
... does not work as expected due to spaces. Soft spaces may be perfect for this.
Maybe we could make
EDIT: Maybe make it smart like this if no character(s) detected.
|
how about I like the It is a shame that |
Two modules off my head... For clementine, We could do same for any other similar module (if we find them). |
Something inverse of
Can be crazy if we toss in EDIT: Smart suggestion.
I suppose we could be cleaner by not assuming we want to strip whitespace in second, third lines, but I can't think of scenario where we want to keep whitespace at end for the modules since I assume we will be mostly using |
Place an extra |
|
I think we ought to have something like this Current New format... Same as Current Customizing... Note:
This way, I think, would allow us to change statusline color for all modules and would make it possible for people to keep all modules consistent with just 6 existing color options after they finished setting up new EDIT: Maybe just |
I'm experimenting with something to see if I can keep everything in one
EDIT: I got it... |
@tobes What should I do with this? https://github.com/lasers/py3status/blob/whatismyip-formatter/py3status/modules/whatismyip.py I cleaned up everything. No depreciation stuffs. One @maximbaz I know you like this module. What do you think of it now? Everything should be same as old |
So my feedback:
|
I renamed If we add other options... like stop, mute, etc... we could use I also don't know if that's the direction we're going with the formatter. This is a good experiment to get some ideas of whenever we want things to be like this. I think this is nice and easy for on/off modules. This is a little crazy because I went a little crazy by omitting Thanks for the feedback. 👍 |
My take on the I like the idea of supplying multiple formats to modules eg Now the multi format approach is a challenge because really if we do it we want to allow it without having to implement it for every module (because that would be a pain) So anyhow that's where I'd like to go but I don't think it is easy. But that does not really solve the Anyhow with the example format |
How should I pass I tried I think the screenshot have the |
Well it seems the nice way to do it is broken in master, but it works correctly in #887 and I've now added some tests to that branch. The nice way is to just set A fine demonstration of why #887 is amazing 🔥 |
Can confirm the nice way using DPMS's Composite issue? If this works, then I could drop |
@tobes I'm making changes in We may be missing the formatter features for In
EDIT: Hi. There won't be any timedate placeholders. We can forget about In
to...
Replace
I'll keep working on |
Something for the sizes?
Not sure how we can configure the format... Maybe universal
|
Something for the urgency hints? 🔔
|
Something for the notifications? ℹ️
Something for the exec? ❗
|
Reverse ellipsis is required if we want to keep |
Something for the case conversions? 💌
|
Something for the timeouts? ⏲ Thought:
Policy:
Reasons.
Examples using cmus:
New.
Pro -- More choices.
Con -- Not user friendly. |
Something to update the other modules? ⬆️ Random module updating other module.
Random module updating all modules.
|
@lasers I think things like the Really the main work I need to do now is provide some formatter documentation and then look at implementing some of the more straight forward ideas. Also hopefully I will get more settled and have some time for py3status. Maybe even today if I meet my targets. |
The module
One
No problem. I hope the new situation is working out wonderful for you. 📦 |
@tobes Anything to truncate 3 chars from right side? I can with left. EDIT: Placeholder. |
Something to report errors? This comes from #1217 Assuming (self.py3.error)
|
I think there is an inconsitency in the parsing of the format strings. Consider the following format string for the mpd_status module: Oh and is it possible to add a format or condition debug mode which will print the exact comparisons done to the journal? Like: |
For archiving purposes... The answer to comment above is that in py3status/py3status/modules/mpd_status.py Lines 113 to 115 in d065a99
I think this issue has outlived its usefulness long time ago. And we have a RFC 4.0 for dropping |
I'm planning to add some new formatter features.
Current features for blocks.
colors
[\?color=bad ...]
conditions
[\?if=condition ...]
including negation[\?if=!condition ...]
always show block
[\?show ...]
options, choose first with output
[...|...|...]
text size
[\?min_size=7 ...]
,[\?max_size=17 ...]
do not count 0 as valid eg no notifications
[\?not_zero ...]
The new options I'm thinking of adding are below, please vote on any you would like to see or are opposed to. I'll make each as a new reply.
Also feel free to add suggestions
The text was updated successfully, but these errors were encountered: