Agent instructions, skills, SSH host aliases and expansion triggers are worth having identical on every machine one person owns, and belong in none of the shared configuration. They live in user/ now, with a manifest saying where each piece goes and a link-user stage that puts it there. That stage does nothing unless the machine said yes. Somebody who clones Panama to try the desktop keeps their own ~/.claude/CLAUDE.md exactly where it was; the question names the destinations and defaults to no. Anything displaced goes to config/old rather than being deleted. ~/.claude/CLAUDE.md and ~/.codex/AGENTS.md were byte-identical copies of one file, which is the drift this exists to prevent. Also adds the vitals toggles for the battery and Claude usage readouts, which had preferences and no way to reach them.
38 lines
657 B
Markdown
38 lines
657 B
Markdown
---
|
|
name: max-height
|
|
description: Set a fixed height for code blocks with scrolling for long code
|
|
---
|
|
|
|
# Code Block Max Height
|
|
|
|
Set a fixed height for code blocks with scrolling.
|
|
|
|
## Usage
|
|
|
|
````md
|
|
```ts {2|3|7|12}{maxHeight:'100px'}
|
|
function add(
|
|
a: Ref<number> | number,
|
|
b: Ref<number> | number
|
|
) {
|
|
return computed(() => unref(a) + unref(b))
|
|
}
|
|
/// ...as many lines as you want
|
|
const c = add(1, 2)
|
|
```
|
|
````
|
|
|
|
## With Line Highlighting Placeholder
|
|
|
|
Use `{*}` when you only need maxHeight:
|
|
|
|
````md
|
|
```ts {*}{maxHeight:'100px'}
|
|
// long code here
|
|
```
|
|
````
|
|
|
|
## Use Case
|
|
|
|
When code is too long to fit on one slide but you want to show it all with scrolling.
|