@hienlh/ppm 0.13.60 → 0.13.62
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +10 -0
- package/assets/skills/ppm/SKILL.md +1 -1
- package/assets/skills/ppm/references/http-api.md +1 -1
- package/dist/web/assets/{audio-preview-DPUWgkFM.js → audio-preview-B3rIhhbi.js} +1 -1
- package/dist/web/assets/{chat-tab-jeH2KOyI.js → chat-tab-nNh5rLB2.js} +3 -3
- package/dist/web/assets/{code-editor-D689bNqg.js → code-editor-CMSwWKuR.js} +2 -2
- package/dist/web/assets/{conflict-editor-BBLBwDP3.js → conflict-editor-B4f2ilts.js} +1 -1
- package/dist/web/assets/{database-viewer-Dn_XmPuG.js → database-viewer-D-28-BdV.js} +1 -1
- package/dist/web/assets/{diff-viewer-BawweIzs.js → diff-viewer-Bv8DUUIR.js} +1 -1
- package/dist/web/assets/{extension-webview-CnW4FmbT.js → extension-webview-CUPyfczi.js} +1 -1
- package/dist/web/assets/{git-log-panel-DOtefVWL.js → git-log-panel-CFLQD23g.js} +1 -1
- package/dist/web/assets/{glide-data-grid-ckYYsHxU.js → glide-data-grid-1rBqhi2J.js} +1 -1
- package/dist/web/assets/{image-preview-vivCL0Rz.js → image-preview-DHrZPetH.js} +1 -1
- package/dist/web/assets/index-CkQX29w3.js +27 -0
- package/dist/web/assets/keybindings-store-Bigfs0Ss.js +1 -0
- package/dist/web/assets/{markdown-renderer-BiLohd4E.js → markdown-renderer-BS-EgLZm.js} +1 -1
- package/dist/web/assets/notification-store-NXr7Mag_.js +1 -0
- package/dist/web/assets/{pdf-preview-CZxInEra.js → pdf-preview-CeN9W7kd.js} +1 -1
- package/dist/web/assets/{port-forwarding-tab-cEuRXpkT.js → port-forwarding-tab-CYUcx2_j.js} +1 -1
- package/dist/web/assets/{postgres-viewer-DotG-n6G.js → postgres-viewer-BZ7RHn6E.js} +1 -1
- package/dist/web/assets/{settings-tab-DCNSHpkk.js → settings-tab-B3U6o2Cv.js} +1 -1
- package/dist/web/assets/{sql-query-editor-wMM7vxn4.js → sql-query-editor-CfDG3duv.js} +1 -1
- package/dist/web/assets/{sqlite-viewer-fczUQ3pm.js → sqlite-viewer-ofYBAsHX.js} +1 -1
- package/dist/web/assets/{system-monitor-tab-DnjKZ6kX.js → system-monitor-tab-By-j_TO1.js} +1 -1
- package/dist/web/assets/{terminal-tab-4VTsRAv_.js → terminal-tab-BEGaXjCj.js} +1 -1
- package/dist/web/assets/{video-preview-Aabd59Fv.js → video-preview-CHOiQ3I9.js} +1 -1
- package/dist/web/index.html +1 -1
- package/dist/web/sw.js +1 -1
- package/package.json +1 -1
- package/packages/ext-git-graph/src/webview-html.ts +2 -2
- package/src/services/db.service.ts +7 -4
- package/src/web/components/explorer/file-tree.tsx +5 -0
- package/src/web/components/explorer/tree-node-context-menu.tsx +3 -0
- package/src/web/components/layout/draggable-tab.tsx +3 -0
- package/src/web/components/layout/mobile-nav.tsx +11 -0
- package/src/web/components/layout/tab-bar.tsx +9 -0
- package/src/web/lib/score-file-search.ts +18 -0
- package/dist/web/assets/index-tXhZwam6.js +0 -27
- package/dist/web/assets/keybindings-store-BPLIbuiX.js +0 -1
- package/dist/web/assets/notification-store-DfPnCRYc.js +0 -1
|
@@ -66,6 +66,9 @@ export function TreeNodeContextMenu({
|
|
|
66
66
|
<ContextMenuItem onClick={() => onAction("copy-path", node)}>
|
|
67
67
|
Copy Path
|
|
68
68
|
</ContextMenuItem>
|
|
69
|
+
<ContextMenuItem onClick={() => onAction("copy-full-path", node)}>
|
|
70
|
+
Copy Full Path
|
|
71
|
+
</ContextMenuItem>
|
|
69
72
|
<ContextMenuSeparator />
|
|
70
73
|
<ContextMenuItem onClick={() => onAction("download", node)}>
|
|
71
74
|
<Download className="size-3.5 mr-2" />
|
|
@@ -182,6 +182,9 @@ export function DraggableTab({
|
|
|
182
182
|
<ContextMenuItem onClick={() => onContextAction("copy-path")}>
|
|
183
183
|
Copy Path
|
|
184
184
|
</ContextMenuItem>
|
|
185
|
+
<ContextMenuItem onClick={() => onContextAction("copy-full-path")}>
|
|
186
|
+
Copy Full Path
|
|
187
|
+
</ContextMenuItem>
|
|
185
188
|
<ContextMenuItem onClick={() => onContextAction("download")}>
|
|
186
189
|
<Download className="size-3.5 mr-2" />
|
|
187
190
|
Download
|
|
@@ -138,6 +138,13 @@ export function MobileNav({ onMenuPress, onProjectsPress }: MobileNavProps) {
|
|
|
138
138
|
case "copy-path":
|
|
139
139
|
if (filePath) navigator.clipboard.writeText(filePath).catch(() => {});
|
|
140
140
|
break;
|
|
141
|
+
case "copy-full-path": {
|
|
142
|
+
if (filePath) {
|
|
143
|
+
const project = projectName ? useProjectStore.getState().projects.find((p) => p.name === projectName) : null;
|
|
144
|
+
navigator.clipboard.writeText(project ? `${project.path}/${filePath}` : filePath).catch(() => {});
|
|
145
|
+
}
|
|
146
|
+
break;
|
|
147
|
+
}
|
|
141
148
|
case "download":
|
|
142
149
|
if (filePath && projectName) downloadFile(projectName, filePath);
|
|
143
150
|
break;
|
|
@@ -334,6 +341,10 @@ export function MobileNav({ onMenuPress, onProjectsPress }: MobileNavProps) {
|
|
|
334
341
|
className="flex items-center gap-2 w-full px-3 py-2.5 text-sm text-foreground active:bg-surface-elevated">
|
|
335
342
|
<Copy className="size-4" /> Copy Path
|
|
336
343
|
</button>
|
|
344
|
+
<button onClick={() => handleFileAction(menuTab, "copy-full-path")}
|
|
345
|
+
className="flex items-center gap-2 w-full px-3 py-2.5 text-sm text-foreground active:bg-surface-elevated">
|
|
346
|
+
<Copy className="size-4" /> Copy Full Path
|
|
347
|
+
</button>
|
|
337
348
|
<button onClick={() => handleFileAction(menuTab, "download")}
|
|
338
349
|
className="flex items-center gap-2 w-full px-3 py-2.5 text-sm text-foreground active:bg-surface-elevated">
|
|
339
350
|
<Download className="size-4" /> Download
|
|
@@ -231,6 +231,15 @@ export const TabBar = memo(function TabBar({ panelId }: TabBarProps) {
|
|
|
231
231
|
if (filePath) navigator.clipboard.writeText(filePath).catch(() => {});
|
|
232
232
|
break;
|
|
233
233
|
}
|
|
234
|
+
case "copy-full-path": {
|
|
235
|
+
const filePath = tab.metadata?.filePath as string | undefined;
|
|
236
|
+
const projectName = tab.metadata?.projectName as string | undefined;
|
|
237
|
+
if (filePath) {
|
|
238
|
+
const project = projectName ? useProjectStore.getState().projects.find((p) => p.name === projectName) : null;
|
|
239
|
+
navigator.clipboard.writeText(project ? `${project.path}/${filePath}` : filePath).catch(() => {});
|
|
240
|
+
}
|
|
241
|
+
break;
|
|
242
|
+
}
|
|
234
243
|
case "download": {
|
|
235
244
|
const filePath = tab.metadata?.filePath as string | undefined;
|
|
236
245
|
const projectName = tab.metadata?.projectName as string | undefined;
|
|
@@ -58,6 +58,24 @@ export function scoreFileSearchFast(
|
|
|
58
58
|
labelLen: number,
|
|
59
59
|
depth: number,
|
|
60
60
|
): FileSearchScore | null {
|
|
61
|
+
// Multi-word query: score each word independently, require all to match
|
|
62
|
+
if (qLower.includes(" ")) {
|
|
63
|
+
const words = qLower.split(/\s+/).filter(Boolean);
|
|
64
|
+
if (words.length === 0) return null;
|
|
65
|
+
if (words.length === 1) {
|
|
66
|
+
return scoreFileSearchFast(words[0]!, filenameLower, pathLower, labelLen, depth);
|
|
67
|
+
}
|
|
68
|
+
let maxTier = 0;
|
|
69
|
+
let totalOffset = 0;
|
|
70
|
+
for (const word of words) {
|
|
71
|
+
const s = scoreFileSearchFast(word, filenameLower, pathLower, labelLen, depth);
|
|
72
|
+
if (!s) return null;
|
|
73
|
+
maxTier = Math.max(maxTier, s.tier);
|
|
74
|
+
totalOffset += s.offset;
|
|
75
|
+
}
|
|
76
|
+
return { tier: maxTier, offset: totalOffset, nameLen: labelLen, depth };
|
|
77
|
+
}
|
|
78
|
+
|
|
61
79
|
// Tier 0: exact filename match
|
|
62
80
|
if (filenameLower === qLower) return { tier: 0, offset: 0, nameLen: labelLen, depth };
|
|
63
81
|
|