-
Notifications
You must be signed in to change notification settings - Fork 103
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
Display day change messages #520
base: master
Are you sure you want to change the base?
Conversation
71f5b94
to
023d655
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
i'm not sure if this is an improvement over the faq variant. i like the latter because:
- day change line appears directly at midnight, and not when the next line appears
- line text easily customizable by user
- requires no effort on our part
the downside of this is that consecutive date changes are not squashed but i actually prefer this behavior over WeeChat's. as for
But this does not work for other buffers and produces log messages.
i suppose you could add the tag no_log
to make the line skip the logs? not sure in which buffers this doesn't work.
app/src/main/java/com/ubergeek42/WeechatAndroid/relay/BufferList.kt
Outdated
Show resolved
Hide resolved
What is the use of that? If there are no lines does it carry any information apart from the time you have already in the corner of your display? ;)
This does not really require effort on our part either (apart from pressing merge at some point :P). Contrary the FAQ version requires effort from every user (and they need to find that first).
The most important part here is that I didn't find a way to add the trigger to a lot of buffers (like wee-slack, weechat-matrix...) |
well the date change line has very limited utility on the whole. when does it matter that the date changed? i suppose it mostly matters when the date change itself, or the whole day, is important, e.g. it's nye or someone's birthday. sure, the same information is in the corner of your display but it's neat to also see the day change in real time in chat. i guess?
can't argue here :|
yeah both |
It matters when you scroll back in history and want to get en estimate where you are. I after have lines at specific dates (log messages, interaction at around the same time) it is really hard to separate different dates there.
they don't have such commands. Do you really think it is better to implement this behavior in every script instead of do it similar how Weechat does it? |
well you have to separate chat buffers from other buffers somehow don't you? e: e2: actually we are ignoring WeeChat's time zone completely atm |
This makes sure that lines are only added through the Lines.addLast() interface.
320b049
to
1fe18b9
Compare
I've rewritten this based on our discussion. Here is a video of a day change: out.mp4 |
4032942
to
ca0bdd8
Compare
fixed the read marker: out.mp4 |
03b6fe0
to
2c15748
Compare
to summarize the current situation:
¹ i actually like this |
The animation was only broken because I hacked the implementation to add (the same) date line every time. Here is the correct animation: out.mp4 |
I added the option to disable this with the |
Similar to weechat.look.day_change.
3789f56
to
199d6cc
Compare
it's not clear how this should work with squiggle line. squiggle separates continuous messages whenever there's a break due to connectivity loss, as in
if messages 2 and 5 have different dates, what about date change line? there seems to be 3 options:
while the last option seems to make the most sense to me, it's not clear how this should work with line filtering. note that squiggles can appear either in both filtered/unfiltered modes or only in unfiltered mode |
I agree with the options and currently the day change line is put in front of the squiggle where the day change happened. So far my tests didn't show any preference for either option, I see squiggle lines mostly for a short time and rather like a general indication that something is missing. Contrary the day change line is more like metadata. I would propose to use the current version for now and change it in case users bring argument for other options. |
@oakkitten this should fix your last comments in IRC. |
35ada9c
to
a067238
Compare
The WA FAQ proposes to do this via trigger:
https://github.com/ubergeek42/weechat-android/wiki/FAQ#i-dont-see-date-change-messages
But this does not work for other buffers and produces log messages.