I really wish I would have got this right a few years ago. Theres a couple of flags I had to use to get mdformat to do hard wraps at 80 characters and not wreck tables. This mix of flags and plugins is workign really well for me so far.
mdfmt() {
uvx \
--with "mdformat-ruff" \
--with "mdformat-beautysh" \
--with "mdformat-web" \
--with "mdformat-config" \
--with "mdformat-gfm" \
--with "mdformat-front-matters" \
--with "mdformat-wikilink" \
--with "mdformat-simple-breaks" \
mdformat \
--wrap 80 \
--end-of-line lf \
--codeformatters python \
--codeformatters bash \
"$@"
}
And as pre-commmit.
repos
- repo: https://github.com/hukkin/mdformat
rev: 1.0.0 # pin to the version you want
hooks:
- id: mdformat
args:
- --wrap
- "80"
- --end-of-line
- lf
- --codeformatters
- python
- --codeformatters
- bash
additional_dependencies:
- mdformat-ruff
- mdformat-beautysh
- mdformat-web
- mdformat-config
- mdformat-gfm
- mdformat-front-matters
- mdformat-wikilink
- mdformat-simple-breaks
Ping 19
What is that
📝 Git Notes
Dont Trust Users Tokens
Opencode is changing on the daily right now, today I noticed the word low pop
up in Orange text in my opencode window. Looking into this they are exposing
variants to the user. This allows
you to change between fast or slow and thinking, the later taking more time to
prepare before doing an action.
It looks like this toggle may have been here for awhile and I’m just now discovering it. Potentially because its a new feature of the free Zen provider.
Variants Many models support multiple variants with different configurations. OpenCode ships with built-in default variants for popular providers.
Built-in variants OpenCode ships with default variants for many providers:
Anthropic:
high - High thinking budget (default) max - Maximum thinking budget OpenAI:
Varies by model but roughly:
none - No reasoning minimal - Minimal reasoning effort low - Low reasoning effort medium - Medium reasoning effort high - High reasoning effort xhigh - Extra high reasoning effort Google:
low - Lower effort/token budget high - Higher effort/token budget