Skip to content

armgit / macro

Public Imported from GitHub
0

Macro is a unified workspace for teams: email, chat, docs, tasks, agents, calls, and CRM — @-linked together with shared AI memory.

project-block: disable split replace content on jk navigation

Caleb Taylora44abe314af2
diff --git a/js/app/packages/app/component/EntityNavigationIndicator.tsx b/js/app/packages/app/component/EntityNavigationIndicator.tsx
index 61650035c9..836c524f14 100644
--- a/js/app/packages/app/component/EntityNavigationIndicator.tsx
+++ b/js/app/packages/app/component/EntityNavigationIndicator.tsx
@@ -24,7 +24,8 @@ const EntityNavigationIndicator = () => {
when={
entities()?.length &&
selectedEntity() &&
- handle.content().type !== 'component'
+ handle.content().type !== 'component' &&
+ handle.content().type !== 'project'
}
>
<div class="flex gap-1 items-center font-mono text-xs text-ink/50 pl-2 pr-4">
diff --git a/js/app/packages/app/component/SoupContext.tsx b/js/app/packages/app/component/SoupContext.tsx
index cb83b714b4..add6e48695 100644
--- a/js/app/packages/app/component/SoupContext.tsx
+++ b/js/app/packages/app/component/SoupContext.tsx
@@ -305,7 +305,10 @@ export function createNavigationEntityListShortcut({
const selectedEntity = entities()?.at(index);
if (selectedEntity) {
- if (splitHandle.content().type !== 'component') {
+ if (
+ splitHandle.content().type !== 'component' &&
+ splitHandle.content().type !== 'project'
+ ) {
const { type, id } = selectedEntity;
if (type === 'document') {
const { fileType } = selectedEntity;