mirror of
https://github.com/getcompanion-ai/co-mono.git
synced 2026-04-16 22:03:45 +00:00
Update docs for inline images, remove PI_NO_IMAGES env var
- Add CHANGELOG entry for inline image rendering feature - Add /show-images to slash commands table in README - Expand Image Support section with inline rendering info - Add terminal.showImages to settings documentation - Remove PI_NO_IMAGES environment variable feature
This commit is contained in:
parent
53794d78f2
commit
b8a0465e30
4 changed files with 15 additions and 10 deletions
|
|
@ -209,8 +209,6 @@ tui.addChild(image);
|
|||
|
||||
Supported formats: PNG, JPEG, GIF, WebP. Dimensions are parsed from the image headers automatically.
|
||||
|
||||
Set `PI_NO_IMAGES=1` to disable inline rendering and always use the text fallback.
|
||||
|
||||
## Autocomplete
|
||||
|
||||
### CombinedAutocompleteProvider
|
||||
|
|
|
|||
|
|
@ -39,12 +39,6 @@ export function detectCapabilities(): TerminalCapabilities {
|
|||
const termProgram = process.env.TERM_PROGRAM?.toLowerCase() || "";
|
||||
const term = process.env.TERM?.toLowerCase() || "";
|
||||
const colorTerm = process.env.COLORTERM?.toLowerCase() || "";
|
||||
const disableImages = process.env.PI_NO_IMAGES === "1" || process.env.PI_NO_IMAGES === "true";
|
||||
|
||||
if (disableImages) {
|
||||
const trueColor = colorTerm === "truecolor" || colorTerm === "24bit";
|
||||
return { images: null, trueColor, hyperlinks: true };
|
||||
}
|
||||
|
||||
if (process.env.KITTY_WINDOW_ID || termProgram === "kitty") {
|
||||
return { images: "kitty", trueColor: true, hyperlinks: true };
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue