-
Notifications
You must be signed in to change notification settings - Fork 207
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
Ability to mark/hide declined events #580
Comments
Good idea, once khal know about your emails, it can also answer(RSVP) and send them (invite). I have actually yesterday implemented something similar for Your suggestions
|
An alternative to ANSI codes for strikethrough would be unicode strikethrough. Seems to work for me: In [1]: STRIKE = '\u0336'
In [2]: def strikethrough(string):
...: new = list()
...: for char in string:
...: new.append(STRIKE)
...: new.append(char)
...: return ''.join(new)
...:
In [3]: print(strikethrough('strikken'))
s̶t̶r̶i̶k̶k̶e̶n |
I think ANSI escape codes are they way to go despite tmux. I wasn't able to find a terminal on Linux that doesn't support strikethrough. |
Feel free to add more information to this list Terminal emulators etc. supporting ANSI strikethrough:
not supporting:
|
Since, personally, I use I'll leave these symbols here for consideration: ⊗⊘ ⊜⊖ ⊝ ⛔ ꚛ ⏹▣ ■ ⯀x × X ✕ ☓ ✖ ✗ ✘ I think the x marks (eg: ✖) make the most sense for declined events, and the first one for cancelled (⊗). This is really subjective though. (I basically scrolled the entire unicode symbols table). |
While we're talking symbols, we also have the "invited but not accepted" status ( |
Problem with (only using) ANSI strikethrough is, that it gets removed if stdout is not a terminal. |
urwid doesn't seem to support strikethrough either |
After tmux, urwid is the most important part to get working now before we can use strikethrough, because I really want to avoid the situation where khal's and ikhal's output look qualitatively different. |
I'd kinda like to bring this issue back to life. I've been thinking about a configuration option to HIDE declined events altogether (since I've way to many laying around in my work calendar). Do you think that might be acceptable (regardless of any decoration added to them when not-hidden)? |
Sure, go ahead. If you need any help, feel free to contact me. |
Sorry to add to this old thread, but it appears tmux now supports this out of the box. At least on my system, the |
Is there a chance of this getttting implemented? Whether struck out or prepended with a symbol, that can be made configurable later, no? |
Can you send some examples of what we are looking for? (Sorry, this issue is ancient, I have forgotten most of the details) Are we talking about: |
btw: urwid now supports strikethrough, but I'd first go with an icon, as it is easier to implement. |
Thanks for your response, Chris! Yes, The other use case is an event with |
Note to self: We do support "status" already, that is, we can print it in the calendar representation. We could
But I'm not sure how STATUS interacts with PARTSTAT. Especially the interface in ikhal is already quite overloaded. |
Sorry, took me a bit longer. It works as you had intended it, and that's great. Thank you for that! A couple of thoughts:
|
Thanks for testing @madduck!
|
Thank you for your response, @geier!
|
I currently have some work events which I've declined, and are indistinguishable from accepted events.
I'd like to somehow mark (an icon similar to recurring events), hide, stike-through (this is my first choice, but very few terminals support it, including my own) or dim (eg: slightly darker colour) events which I've declined.
As far as I understand, this also requires khal to know my email[s] (because that's how attendees are identified).
IMHO, dimming or some special character to recognize these are the best choices.
The text was updated successfully, but these errors were encountered: