mtm
fits me better. This is pretty cool also https://github.com/martanne/abduco.
mtm
a shot, pretty cool!
twin
before, screenshots anywhere?
tmux
alternative.
mkws
.
mkws
> refreshingly lightweight
I agree. 😊
mkws
\n\n> refreshingly lightweight\n\nI agree. 😊
https://explosm.net/comics/5834/?fbclid=IwAR1O9xeZgasj_o5zbzEHybxLkuiCzSKnES2q6WR-ogZ9szYwTw94cjg4-8A
> Yeah I get it 🤗 Breakups are hard. But we were talking about breaking lockdown to go to a party?
It's not an easy situation. I understand how it might sound bad and I understand why and how it might *be* bad.
> We have things like video and telephone or voip for this though …
Does it help with her feeling abandoned?
> IMHO going to parties during a lockdown is reckless and selfish.
Depends on a number of factors. I would have said that myself at the start of the pandemic.
> For instance I have a friend who’s going through a breakup this period. If breakups were bad outside the pandemic, they’re way worse now that you can’t go out.
She can't go out with friends, she's just at home feeling abandoned. I'm visiting her but I'm just a friend.
> Let’s try to reduce it as much as we can.
That's a better "goal". We still have, very rare, true, cases of bubonic plague tbh.
> And why do you go to parties?
Guess lockdown got me a little bit and I went out a few times.
> And mobs pushing to put others down or “cancel” them based on something they once online said eons ago is a bad path
As long as the "bad" opinion has changed in the meantime, I see no reason to "cancel" them.
> Most of this smells of software corporates wanting to get rid of a very outspoken opponent and some SJWs jumping on for the ride.
Why get rid of him?
if
s there and just render the Markdown
if all you're building is a blog.
$ cat share/l.upphtml
...
<main>
#!
if test "${1%/*}" == "./p"
then
#!
<article>
#!
cmark "$1" | \
sed "s/\
\(<h1>.*<\/h1>\)/\
\1<time>$(echo "${1##*/}" | cut -c1-10 )<\/time>/g"
#!
</article>
#!
else
pp "$1"
fi
#!
</main>
...
\n$ cat share/l.upphtml\n...\n<main>\n#!\nif test "${1%/*}" == "./p"\nthen\n#!\n<article>\n#!\ncmark "$1" | \\\nsed "s/\\\n\\(<h1>.*<\\/h1>\\)/\\\n\\1<time>$(echo "${1##*/}" | cut -c1-10 )<\\/time>/g"\n#!\n</article>\n#!\nelse\npp "$1"\nfi\n#!\n</main>\n...\n
\n$ cat share/l.upphtml\n...\n<main>\n#!\nif test "${1%/*}" == "./p"\nthen\n#!\n<article>\n#!\ncmark "$1" | \\\nsed "s/\\\n\\(<h1>.*<\\/h1>\\)/\\\n\\1<time>$(echo "${1##*/}" | cut -c1-10 )<\\/time>/g"\n#!\n</article>\n#!\nelse\npp "$1"\nfi\n#!\n</main>\n
pe
is pe.c
https://clbin.com/X1GkA, an utility for percent encoding strings.
cat share/f.upp
https://clbin.com/XiMw4
cat bin/mkws
...
echo "Making feed"
pp "$sharedir"/f.upp "$1" > f
...
\ncat share/f.upp\n
\ f\n...\n```">nhttps://clbin.com/XiMw4\n\n```\ncat bin/mkws\n...\necho "Making feed"\npp "$sharedir"/f.upp "$1" > f\n...\n```
$ cat blog.upphtml
<h1>Blog</h1>
<h2>News and a collection of tips and tricks for <code>mkws</code></h2>
<ol id=i>
#!
find p -mindepth 1 | sort -r | while read -r f
do
test "${f##*.}" == "html" && continue;
t=$(echo "${f##*/}" | cut -c21-)
#!
<li>
<h2><a href=p/$(echo "$t" | pe).html>$t</a></h2>
<time>$(echo "${f##*/}" | cut -c1-10 )</time>
</li>
#!
done
#!
</ol>
\n$ cat blog.upphtml\n<h1>Blog</h1>\n<h2>News and a collection of tips and tricks for <code>mkws</code></h2>\n<ol id=i>\n#!\nfind p -mindepth 1 | sort -r | while read -r f\ndo\ntest "${f##*.}" == "html" && continue;\nt=$(echo "${f##*/}" | cut -c21-)\n#!\n<li>\n<h2><a href=p/$(echo "$t" | pe).html>$t</a></h2>\n<time>$(echo "${f##*/}" | cut -c1-10 )</time>\n</li>\n#!\ndone\n#!\n</ol>\n
\ncat bin/mkws\n...\nfor p in "$srcdir"/p/*\ndo\n test "${p##*.}" == "html" && continue\n echo "Making p/$(echo "${p##*/}" | cut -c21-).html"\n pp "$sharedir"/l.upphtml "$p" "$1" > "p/$(echo "${p##*/}" | cut -c21-).html"\n\ndone\n...\n
cat bin/mkws
...
for p in "$srcdir"/p/*
do
test "${p##*.}" == "html" && continue
echo "Making p/$(echo "${p##*/}" | cut -c21-).html"
pp "$sharedir"/l.upphtml "$p" "$1" > "p/$(echo "${p##*/}" | cut -c21-).html"
done
...
\n$ ls -1 p\n2021-02-28 15:34:42 Welcome\n2021-02-28 15:35:21 How to add a navigation menu\n2021-02-28 15:35:39 How to add custom titles\n2021-03-09 19:45:23 How to render
Markdown\nHow to add a navigation menu.html\nHow to add custom titles.html\nHow to render
Markdown.html\nWelcome.html\n
This is how I render the blog
$ ls -1 p
2021-02-28 15:34:42 Welcome
2021-02-28 15:35:21 How to add a navigation menu
2021-02-28 15:35:39 How to add custom titles
2021-03-09 19:45:23 How to render
Markdown
How to add a navigation menu.html
How to add custom titles.html
How to render
Markdowntml
Welcome.html
grep ... | colorize | less
\n\nExactly!\n\n> That would potentially expose the same problem.\n\nIt's only a problem for _you_ I guess, it seems they agree on that solution with advantages and disadvantages listed in the comments? Yeah, maybe go with another pager?
> But grep knows best which parts of the output should be colored.
I would go with a _good enough_ coloring.
>
grep ... | colorize | less
Exactly!
> That would potentially expose the same problem.
It's only a problem for _you_ I guess, it seems they agree on that solution with advantages and disadvantages listed in the comments? Yeah, maybe go with another pager?
> Doing the coloring in a second step using a second program feels like a hack to me as well.
I don't believe it's hack a all, but true to the unix philosophy of a program that does just the highlighting for other programs.
> (Maybe we just shouldn’t be passing flat plain text, but structured objects …)
Just whip out a parser, it's not that hard, just saying. 😋
--color=always
on grep
imo. I was considering building a generic syntax highlighter for the CLI with various lexers, for ls
, diff
, grep
, find
, etc...