Quick Tip To Get Agents Running Longer
Here's a quick tip if you want to get your agents running longer, **prompt better**.
No themes match.
←→↑↓ preview · 123 tabs · Enter done
All published posts
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
| j | Scroll down |
| k | Scroll up |
| g g | Scroll to top |
| Shift G | Scroll to bottom |
| d | Half-page down |
| u | Half-page up |
| j / ↓ | Next post (in feeds) |
| k / ↑ | Previous post (in feeds) |
| Enter / o | Open highlighted post |
| Shift O | Open in new tab |
| g h | Go to home |
| g s | Focus search |
| [ / Shift K | Previous post in series (or previous page) |
| ] / Shift J | Next post in series (or next page) |
| b | Toggle left sidebar |
| Shift B | Toggle right sidebar |
| s | Toggle reader mode (posts) / simple/rich view (feeds) |
| t | Open theme picker |
| , / . | Previous / Next theme |
| < / > | Previous / Next style |
| F / f | Previous / Next font |
| \ | Toggle dark/light mode |
| / | Focus search input |
| ⌘CtrlK | Focus search (alternative) |
| y y | Copy URL to clipboard |
| ? | Show this help |
| Esc | Close / clear highlight |