(null)
@@ -137,7 +103,6 @@ export function MarkdownEditor(): JSX.Element {
annPlugin,
themeCompartment.of(buildTheme(fontSize, isDark)),
fontSizeCompartment.of([]),
- showInvisiblesCompartment.of(buildInvisiblesPlugin(false)),
EditorView.lineWrapping,
EditorView.updateListener.of((update) => {
if (update.docChanged) {
@@ -197,11 +162,6 @@ export function MarkdownEditor(): JSX.Element {
viewRef.current?.dispatch({ effects: themeCompartment.reconfigure(buildTheme(fontSize, theme === 'dark')) })
}, [theme, fontSize])
- // Update show invisibles
- useEffect(() => {
- viewRef.current?.dispatch({ effects: showInvisiblesCompartment.reconfigure(buildInvisiblesPlugin(showInvisibles)) })
- }, [showInvisibles])
-
if (!activeStoryId) {
return Select a story or create a new one
}
diff --git a/src/renderer/store/borgesStore.ts b/src/renderer/store/borgesStore.ts
index 28947fd..3cece33 100644
--- a/src/renderer/store/borgesStore.ts
+++ b/src/renderer/store/borgesStore.ts
@@ -72,8 +72,6 @@ interface BorgesState {
toggleTheme: () => void
fontSize: number
setFontSize: (size: number) => void
- showInvisibles: boolean
- toggleInvisibles: () => void
initPrefs: () => Promise
// Session
@@ -232,8 +230,6 @@ export const useBorgesStore = create((set, get) => ({
window.api.writeConfig({ fontSize: clamped })
set({ fontSize: clamped })
},
- showInvisibles: false,
- toggleInvisibles: () => set((s) => ({ showInvisibles: !s.showInvisibles })),
initPrefs: async () => {
const cfg = await window.api.readConfig()
const fontSize = Math.max(11, Math.min(24, cfg.fontSize ?? 15))