diff --git a/repl/src/App.jsx b/repl/src/App.jsx
index 5149027f..c6c363ca 100644
--- a/repl/src/App.jsx
+++ b/repl/src/App.jsx
@@ -108,6 +108,7 @@ function App() {
const [view, setView] = useState(); // codemirror view
const [lastShared, setLastShared] = useState();
const [activeFooter, setActiveFooter] = useState('');
+ const [isZen, setIsZen] = useState(false);
const { code, setCode, scheduler, evaluate, activateCode, isDirty, activeCode, pattern, started, stop } = useStrudel({
initialCode: '// LOADING',
@@ -238,6 +239,8 @@ function App() {
handleUpdate,
handleShuffle,
handleShare,
+ isZen,
+ setIsZen,
}}
>
{!hideHeader && }
-
+ {
+ // TODO: scroll to selected function in reference
+ // console.log('selectino change', selection.ranges[0].from);
+ }}
+ />
diff --git a/repl/src/Footer.jsx b/repl/src/Footer.jsx
index 23df2cb4..595be1f4 100644
--- a/repl/src/Footer.jsx
+++ b/repl/src/Footer.jsx
@@ -8,7 +8,7 @@ import { Reference } from './Reference';
export function Footer() {
// const [activeFooter, setActiveFooter] = useState('console');
- const { activeFooter, setActiveFooter } = useContext(AppContext);
+ const { activeFooter, setActiveFooter, isZen } = useContext(AppContext);
const footerContent = useRef();
const [log, setLog] = useState([]);
@@ -65,6 +65,9 @@ export function Footer() {
{activeFooter === name && <>{children}>}
>
);
+ if (isZen) {
+ return null;
+ }
return (