gitmaps 1.1.21 → 1.1.22
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/app/analytics.db +0 -0
- package/app/lib/viewport-culling.ts +20 -1
- package/package.json +1 -1
package/app/analytics.db
CHANGED
|
Binary file
|
|
@@ -826,6 +826,25 @@ export function setupPillInteraction(ctx: CanvasContext) {
|
|
|
826
826
|
window.addEventListener('mouseup', onPillUp);
|
|
827
827
|
});
|
|
828
828
|
|
|
829
|
+
ctx.canvas.addEventListener('contextmenu', (e: MouseEvent) => {
|
|
830
|
+
const pill = (e.target as HTMLElement).closest('.file-pill') as HTMLElement;
|
|
831
|
+
if (!pill) return;
|
|
832
|
+
e.preventDefault();
|
|
833
|
+
e.stopPropagation();
|
|
834
|
+
|
|
835
|
+
const pillPath = pill.dataset.path || '';
|
|
836
|
+
if (pillPath) {
|
|
837
|
+
const selected = ctx.snap().context.selectedCards || [];
|
|
838
|
+
if (!selected.includes(pillPath)) {
|
|
839
|
+
ctx.actor.send({ type: 'SELECT_CARD', path: pillPath, shift: false });
|
|
840
|
+
updatePillSelectionHighlights(ctx);
|
|
841
|
+
}
|
|
842
|
+
import('./cards').then(({ showCardContextMenu }) => {
|
|
843
|
+
showCardContextMenu(ctx, pill, e.clientX, e.clientY);
|
|
844
|
+
});
|
|
845
|
+
}
|
|
846
|
+
});
|
|
847
|
+
|
|
829
848
|
// Native dblclick to open editor modal (consistent with card dblclick)
|
|
830
849
|
ctx.canvas.addEventListener('dblclick', (e: MouseEvent) => {
|
|
831
850
|
const pill = (e.target as HTMLElement).closest('.file-pill') as HTMLElement;
|
|
@@ -834,7 +853,7 @@ export function setupPillInteraction(ctx: CanvasContext) {
|
|
|
834
853
|
e.preventDefault();
|
|
835
854
|
const pillPath = pill.dataset.path || '';
|
|
836
855
|
if (pillPath) {
|
|
837
|
-
const file = ctx
|
|
856
|
+
const file = resolvePreviewFile(ctx, pillPath) ||
|
|
838
857
|
{ path: pillPath, name: pillPath.split('/').pop(), lines: 0 };
|
|
839
858
|
import('./file-modal').then(({ openFileModal }) => openFileModal(ctx, file));
|
|
840
859
|
}
|