()
| 331 | } |
| 332 | |
| 333 | export function SettingsModal(): JSX.Element { |
| 334 | const zenBridge = getZenBridge() |
| 335 | const appInfo = zenBridge.getAppInfo() |
| 336 | const supportsRemoteWorkspace = |
| 337 | appInfo.runtime === 'desktop' && zenBridge.getCapabilities().supportsRemoteWorkspace |
| 338 | const setSettingsOpen = useStore((s) => s.setSettingsOpen) |
| 339 | const vimMode = useStore((s) => s.vimMode) |
| 340 | const setVimMode = useStore((s) => s.setVimMode) |
| 341 | const vimInsertEscape = useStore((s) => s.vimInsertEscape) |
| 342 | const setVimInsertEscape = useStore((s) => s.setVimInsertEscape) |
| 343 | const vimYankToClipboard = useStore((s) => s.vimYankToClipboard) |
| 344 | const setVimYankToClipboard = useStore((s) => s.setVimYankToClipboard) |
| 345 | const keymapOverrides = useStore((s) => s.keymapOverrides) |
| 346 | const setKeymapBinding = useStore((s) => s.setKeymapBinding) |
| 347 | const resetAllKeymaps = useStore((s) => s.resetAllKeymaps) |
| 348 | const whichKeyHints = useStore((s) => s.whichKeyHints) |
| 349 | const setWhichKeyHints = useStore((s) => s.setWhichKeyHints) |
| 350 | const whichKeyHintMode = useStore((s) => s.whichKeyHintMode) |
| 351 | const setWhichKeyHintMode = useStore((s) => s.setWhichKeyHintMode) |
| 352 | const whichKeyHintTimeoutMs = useStore((s) => s.whichKeyHintTimeoutMs) |
| 353 | const setWhichKeyHintTimeoutMs = useStore((s) => s.setWhichKeyHintTimeoutMs) |
| 354 | const vaultTextSearchBackend = useStore((s) => s.vaultTextSearchBackend) |
| 355 | const setVaultTextSearchBackend = useStore((s) => s.setVaultTextSearchBackend) |
| 356 | const ripgrepBinaryPath = useStore((s) => s.ripgrepBinaryPath) |
| 357 | const setRipgrepBinaryPath = useStore((s) => s.setRipgrepBinaryPath) |
| 358 | const fzfBinaryPath = useStore((s) => s.fzfBinaryPath) |
| 359 | const setFzfBinaryPath = useStore((s) => s.setFzfBinaryPath) |
| 360 | const livePreview = useStore((s) => s.livePreview) |
| 361 | const setLivePreview = useStore((s) => s.setLivePreview) |
| 362 | const renderTablesInLivePreview = useStore((s) => s.renderTablesInLivePreview) |
| 363 | const setRenderTablesInLivePreview = useStore((s) => s.setRenderTablesInLivePreview) |
| 364 | const markdownSnippets = useStore((s) => s.markdownSnippets) |
| 365 | const setMarkdownSnippets = useStore((s) => s.setMarkdownSnippets) |
| 366 | const tabsEnabled = useStore((s) => s.tabsEnabled) |
| 367 | const setTabsEnabled = useStore((s) => s.setTabsEnabled) |
| 368 | const wrapTabs = useStore((s) => s.wrapTabs) |
| 369 | const setWrapTabs = useStore((s) => s.setWrapTabs) |
| 370 | const quickNoteDateTitle = useStore((s) => s.quickNoteDateTitle) |
| 371 | const setQuickNoteDateTitle = useStore((s) => s.setQuickNoteDateTitle) |
| 372 | const quickNoteTitlePrefix = useStore((s) => s.quickNoteTitlePrefix) |
| 373 | const setQuickNoteTitlePrefix = useStore((s) => s.setQuickNoteTitlePrefix) |
| 374 | const wordWrap = useStore((s) => s.wordWrap) |
| 375 | const setWordWrap = useStore((s) => s.setWordWrap) |
| 376 | const previewSmoothScroll = useStore((s) => s.previewSmoothScroll) |
| 377 | const setPreviewSmoothScroll = useStore((s) => s.setPreviewSmoothScroll) |
| 378 | const editorMaxWidth = useStore((s) => s.editorMaxWidth) |
| 379 | const setEditorMaxWidth = useStore((s) => s.setEditorMaxWidth) |
| 380 | const pdfEmbedInEditMode = useStore((s) => s.pdfEmbedInEditMode) |
| 381 | const setPdfEmbedInEditMode = useStore((s) => s.setPdfEmbedInEditMode) |
| 382 | const contentAlign = useStore((s) => s.contentAlign) |
| 383 | const setContentAlign = useStore((s) => s.setContentAlign) |
| 384 | const vault = useStore((s) => s.vault) |
| 385 | const workspaceMode = useStore((s) => s.workspaceMode) |
| 386 | const remoteWorkspaceInfo = useStore((s) => s.remoteWorkspaceInfo) |
| 387 | const remoteWorkspaceProfiles = useStore((s) => s.remoteWorkspaceProfiles) |
| 388 | const vaultSettings = useStore((s) => s.vaultSettings) |
| 389 | const persistVaultSettings = useStore((s) => s.setVaultSettings) |
| 390 | const openVaultPicker = useStore((s) => s.openVaultPicker) |
nothing calls this directly
no test coverage detected