Skip to content

Commit a81f013

Browse files
committed
fix(status): improve tips with subfolder context example and better update cmd
1 parent bdf0c20 commit a81f013

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/qmd.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -431,7 +431,8 @@ async function showStatus(): Promise<void> {
431431
const names = collectionsWithoutContext.map(c => c.name).slice(0, 3).join(', ');
432432
const more = collectionsWithoutContext.length > 3 ? ` +${collectionsWithoutContext.length - 3} more` : '';
433433
tips.push(`Add context to collections for better search results: ${names}${more}`);
434-
tips.push(` ${c.dim}qmd context add qmd://<name>/ "Description..."${c.reset}`);
434+
tips.push(` ${c.dim}qmd context add qmd://<name>/ "What this collection contains"${c.reset}`);
435+
tips.push(` ${c.dim}qmd context add qmd://<name>/meeting-notes "Weekly team meeting notes"${c.reset}`);
435436
}
436437

437438
// Check for collections without update commands
@@ -443,7 +444,7 @@ async function showStatus(): Promise<void> {
443444
const names = collectionsWithoutUpdate.map(c => c.name).slice(0, 3).join(', ');
444445
const more = collectionsWithoutUpdate.length > 3 ? ` +${collectionsWithoutUpdate.length - 3} more` : '';
445446
tips.push(`Add update commands to keep collections fresh: ${names}${more}`);
446-
tips.push(` ${c.dim}qmd collection update-cmd <name> 'git pull'${c.reset}`);
447+
tips.push(` ${c.dim}qmd collection update-cmd <name> 'git stash && git pull --rebase --ff-only && git stash pop'${c.reset}`);
447448
}
448449

449450
if (tips.length > 0) {

0 commit comments

Comments
 (0)