@movq@www.uninformativ.de, would you know the regex to use within .muttrc to colorise a Markdown code block like the one below?
# This one works for `code`, but that's about it.
(^|[[:space:][:punct:]])\`[^\`]+\`([[:space:][:punct:]]|$)
It work like a bliss, and it is exactly what I wanted. I don’t often see the need to use new lines but having the ability to do so add richness to the whole experience. Thank you very much, again, for listening and implementing this!
This will be the last entry on this conversation (hopefully!):
#!/bin/bash
echo "hello world"
The end!
@movq@www.uninformativ.de Awesome! About to git pull, and check it out. Thanks!
@prologic@twtxt.net You will have to agree that always using reply (like I am doing on this one) loses everything on translation after the third or fourth replies. It simply doesn’t promote engagement. On top of that, all replies show on the timeline as well, without much—to none—context.
@prologic@twtxt.net I know, because fork makes it 100% sure to know who is replying to whom. Just like email’s in-reply-to does (plus the message-id).
@prologic@twtxt.net Make it fill in mentions? Problem solved. 😊
@prologic@twtxt.net What if the reply does what fork does, for any replies to the top post, but not the top post itself? You know, like email does. Other than to reply to the top post (for which I use reply), I don’t use reply but fork, to reply to posts underneath because it is the logical thing to do.
Testing one, two, three.
@quark@ferengi.one It will look like this:
@lyse@lyse.isobeef.org Unless you are stripping stuff on your twts, there is no much to implement. Things will be bold , italics , underlined , and so on, on a client that can render them. Since jenny uses Mutt, I can use my own regex in it to color them as I like. That’s pretty much it.
@quark@ferengi.one How about code? (this is mostly to configure mutt?)
Testing this here now
@prologic@twtxt.net I am thinking on calling in sick to work. 😂 Every time I order an iPhone, I take the day off on delivery day. On Apple events I normally use my lunch and break times all combined, to watch them.
@eldersnake@yarn.andrewjvpowell.com There isn’t an equivalent for those because:
Markdown is not a replacement for HTML, or even close to it. Its syntax is very small, corresponding only to a very small subset of HTML tags.
You can read more of its philosophy at Daring Fireball. There are enhancements to Markdown (CommonMark, for example), that add extra to it.
@prologic@twtxt.net That was ducking fast! 🚅
@prologic@twtxt.net Oh, I see (no pun intended). Have you checked https://tailwindcss.com? Looks amazing!
@movq@www.uninformativ.de This is a sentence. This is one under it (single return). And another (single return).
And a paragraph (double return).
@movq@www.uninformativ.de 🙏🏻🙇🏻♂️
@movq@www.uninformativ.de LOL. As someone with OCD, I can relate completely. When I set to do “slight” modifications to a stylesheet, boy… often a start over is best, to eliminate commit spam.
@prologic@twtxt.net Look on the web interface. Goryon needs work, but you mentioned that before.
@movq@www.uninformativ.de Goryon parsing is broken. Yarn shows it as I see it on jenny. Exactly the same.
@movq@www.uninformativ.de Nice! I am git pulling right after this. 🙈
@movq@www.uninformativ.de Yes! 🥳 🎉
@prologic@twtxt.net I knew you were short sided from day one I saw Yarn. On desktop everything is huge, and I assumed it was to cater short-sightedness. Also, you have enabled underlines on buttons on iOS, bold and bigger fonts, etc., so that was also a give away. Sorry if I digress, but, glasses wouldn’t help? I have to wear mine all the time, otherwise I am also near blind myself!
@movq@www.uninformativ.de To clarify, Markdown is just text. 😊 I can do bolding, link things, and if single return multilines ever comes to jenny, I would be able to do bulleted and numbered lists.
Headings are OK tooThe only things—that I know of—that doesn’t work is “> “, but I can use “>”, like so:
D’oh!
So, jenny allows me to write Markdown almost just fine!
@quark@ferengi.one Pinging @movq@www.uninformativ.de, in case it is a bug.
@quark@ferengi.one >This works…
Now, if I use “>” (without the quotes) with a space after it, and then text, the entire line gets omitted.
She is beyond saving. 🤣
@adi@f.adi.onl Oh boy… we don’t want to go down that route. There is plenty to know about the Taliban, not just from the news but from people who lived—and still lives—under their “governance”; all of which is, I am afraid, much more accurate than your highschool girlfriend story telling.
@lyse@lyse.isobeef.org Are they your goats? They look so cute, and clean, almost unreal! Where I live it is an eternal sunshine, it might fool you into believing it is paradise, until you steam, toast, and burn. 🤣
Boy, do I love jenny/latest, and Neomutt! 😊
https://pasteboard.co/CDMQJYvWuYtY.png
Only thing jenny is missing, to be completely happy, @movq@www.uninformativ.de already knows about. 🙈
@movq@www.uninformativ.de I remember that time. I built my own mess, then used someone else’s mess (WordPress). I then switched to Jekyll when Tom released it, then to Hugo, which I use today. I also love static web stuff!
@lyse@lyse.isobeef.org That is the way it should be! 😊
@movq@www.uninformativ.de This is my env, on language:
LANGUAGE=en_US.UTF-8
LANG=en_US.UTF-8
LC_ALL=en_US.UTF-8
I had to explicitly set it on the cron job to make jenny work.
@movq@www.uninformativ.de Yup. Added all the language ones, and bam, working like a charm!
@movq@www.uninformativ.de But it makes sense, right? I spend way too much time trying to figure out who replied to whom. I treat twts replies as emails, pretty much.
@movq@www.uninformativ.de I would not mind keeping a diff, if you tell me where to make the changes! I know nothing of Python, and I have spent already a couple of hours trying to make sense. I know it is there, in front of me, if only I knew Python. 😩
@movq@www.uninformativ.de Is there a way to make it take single returns, @movq@www.uninformativ.de, or is that a technical infeasibility?
@movq@www.uninformativ.de I no longer see dups! 🎉 🥳
@quark@ferengi.one And don’t miss its song. You will be in for a treat!
@adi@f.adi.onl iOS. Give it a try, and you will not come back. 👌🏻
@lyse@lyse.isobeef.org … It’s the cloud. ☺️
@adi@f.adi.onl Nothing shows, mate. It is all broken. 🙁
@quark@ferengi.one If so, @movq@www.uninformativ.de, not quite https://www.uninformativ.de/git/jenny/commit/4a02eeec58317107c07e759733312d168e319f17.html#h0-0-5... Markdown needs single new lines for many things. Bulleted, numbered, code, etc. need them.
@lyse@lyse.isobeef.org Yup, I did. I setup the three of them: LC_ALL
, LANGUAGE
, and LANG
. Working as intended now, beautifully! Thank you!
@lyse@lyse.isobeef.org I think that was it, mate! 🎉 I was calling . $HOME/.bashrc
on the cron job line, but was missing some extra LANG
ones. Let’s see how it goes now.
@quark@ferengi.one I mean, if LANG=en_US.UTF-8
were a problem, it wouldn’t run manually, right? Or is it that the variable isn’t defined under cron?
@lyse@lyse.isobeef.org Yes, I have LANG=en_US.UTF-8
on my system. So, it is not that it can’t find the config?
@quark@ferengi.one This doesn’t occurs when run manually. What could it be?
@movq@www.uninformativ.de I am getting this when I run it on cron (extra lines in between becuase otherwise jenny will make them a mash):
Traceback (most recent call last):
File “/home/quark/jenny/jenny”, line 565, in
if not retrieve_all(config):
File “/home/quark/jenny/jenny”, line 373, in retrieve_all
refresh_self(config)
File “/home/quark/jenny/jenny”, line 294, in refresh_self
process_feed(config, config[‘self_nick’], config[‘self_url’], content)
File “/home/quark/jenny/jenny”, line 280, in process_feed
fp.write(mail_body)
File “/usr/lib/python3.8/encodings/iso8859_15.py”, line 19, in encode
return codecs.charmap_encode(input,self.errors,encoding_table)[0]
UnicodeEncodeError: ‘charmap’ codec can’t encode character ‘\U0001f4e3’ in position 31: character maps to