You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* feat: introduce optional selection-only mode
* fix: do not render suggestions if they're not present
* docs: explain selection-only option in the readme
Copy file name to clipboardExpand all lines: README.md
+24Lines changed: 24 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -25,6 +25,30 @@ Becomes a list of commands:
25
25
- 📚 Prompt Library: Organize prompts in a folder structure
26
26
- 🔥 Instant Commands: Your prompts transform into Obsidian commands
27
27
28
+
## Extra Features
29
+
30
+
### Selection-Only Commands
31
+
32
+
Some prompts work best when applied to a specific selection of text. You can mark a command as selection-only by adding frontmatter to your prompt file:
33
+
34
+
```yaml
35
+
---
36
+
llm-shortcut-selection-mode: selection-only
37
+
---
38
+
39
+
Your prompt content here...
40
+
```
41
+
42
+
When a command is marked as selection-only, it will:
43
+
44
+
- Require text to be selected before execution
45
+
- Show an error notification if you try to run it without a selection
46
+
- Only process the selected text (and the document context) when executed
47
+
48
+
This is useful for prompts that are designed to transform, analyze, or modify specific portions of text rather than working with the entire document.
0 commit comments