Skip to content

Commit

Permalink
Small copy changes
Browse files Browse the repository at this point in the history
  • Loading branch information
kepano committed Oct 17, 2024
1 parent d294bb4 commit d075da7
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 5 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@ Filters allow you to modify variables in a template. Filters are applied to vari
- Syntax: `map:item => item.property` or `map:item => item.nested.property` for nested properties.
- Example: `[{gem: "obsidian", color: "black"}, {gem: "amethyst", color: "purple"}]|map:item => item.gem` returns `["obsidian", "amethyst"]`.
- Parentheses are needed for object literals and complex expressions: `map:item => ({key: value})`.
- Example: `[{gem: "obsidian", color: "black"}, {gem: "amethyst", color: "purple"}]|map:item => ({name: item.gem, hex: item.color === "black" ? "#000" : "#800080"})` returns `[{name: "obsidian", hex: "#000"}, {name: "amethyst", hex: "#800080"}]`.
- Example: `[{gem: "obsidian", color: "black"}, {gem: "amethyst", color: "purple"}]|map:item => ({name: item.gem, hex: item.color})` returns `[{name: "obsidian", hex: "#000"}, {name: "amethyst", hex: "#800080"}]`.
- String literals are supported and automatically wrapped in an object with a `str` property:
- Example: `["rock", "pop"]|map:item => "genres/${item}"` returns `[{str: "genres/rock"}, {str: "genres/pop"}]`.
- The `str` property is used to store the result of string literal transformations.
Expand Down
4 changes: 3 additions & 1 deletion src/icons/icons.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ import {
RotateCw,
Settings,
SquareCheckBig,
Tags,
Trash2,
X
} from 'lucide';
Expand Down Expand Up @@ -66,7 +67,8 @@ export function getPropertyTypeIcon(type: string): string {
number: 'binary',
checkbox: 'square-check-big',
date: 'calendar',
datetime: 'clock'
datetime: 'clock',
tags: 'tags'
};
return iconMap[type] || 'align-left';
}
4 changes: 2 additions & 2 deletions src/settings.html
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,7 @@ <h2>Interpreter</h2>
<div class="setting-item-info">
<label for="interpreter-toggle">Enable interpreter</label>
<div class="setting-item-description">
Use natural language to extract data from pages. For example, you can use the template syntax <strong>{{prompt:"a summary of the page"}}</strong>. Requires an API&nbsp;key or local&nbsp;model.
Use natural language to extract data from pages. For example, you can use the template syntax <strong>{{prompt:"a summary of the page"}}</strong>. Requires an API&nbsp;key or custom model configured&nbsp;below.
</div>
</div>
<div class="setting-item-control">
Expand All @@ -226,7 +226,7 @@ <h2>Interpreter</h2>
</div>
</div>
<div class="setting-item">
<label for="default-prompt-context" style="font-weight: 400;">Default prompt context</label>
<label for="default-prompt-context" style="font-weight: 400;">Default interpreter context</label>
<div class="setting-item-description">The model will use this context to interpret prompt variables. Variables can be used&nbsp;here.</div>
<textarea id="default-prompt-context" rows="4" placeholder="{{fullHtml}}" spellcheck="false"></textarea>
</div>
Expand Down
2 changes: 1 addition & 1 deletion src/styles/_variables.scss
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@
--metadata-label-text-color: var(--text-muted);
--metadata-label-text-color-hover: var(--text-muted);
--metadata-label-width: 6.5rem;
--metadata-input-height: 1.75rem;
--metadata-input-height: 1.625rem;
--metadata-input-text-color: var(--text-normal);
--metadata-input-font: var(--font-interface);
--metadata-input-font-size: var(--font-smaller);
Expand Down

0 comments on commit d075da7

Please sign in to comment.