No description
Find a file
Ryan McQuen 5a81bf3744
1.11.5
2024-11-06 20:01:05 -08:00
.gitignore Use Workspace, hoping that type definitions will land there soon. 2021-06-06 15:00:24 -07:00
.prettierrc.json Close splits using workspace methods, rather than dom clicking. 2021-05-13 11:29:55 -07:00
LICENSE Create LICENSE 2021-05-22 13:18:48 -07:00
main.ts Clean up duplicated logic, only store split values if we are not already in focus mode. 2022-11-02 12:14:28 -07:00
manifest.json 1.11.5 2024-11-06 20:00:06 -08:00
obsidian-command-focus-mode-demo-v1.gif Use full links in README so they work in Obsidian store. 2021-05-21 10:05:57 -07:00
obsidian-focus-mode-demo-v2.gif Accept the dashes! 2021-05-09 22:10:55 -07:00
obsidian-focus-mode-demo-v3.gif Accept the dashes! 2021-05-09 22:10:55 -07:00
obsidian-focus-mode-demo.gif Accept the dashes! 2021-05-09 22:10:55 -07:00
obsidian-super-focus-mode-demo-v2.gif Show off Super Focus. 2021-05-16 14:13:16 -07:00
package.json 1.11.5 2024-11-06 20:00:44 -08:00
README.md Standardize capitalization. 2023-09-13 22:46:35 -07:00
rollup.config.js Use Workspace, hoping that type definitions will land there soon. 2021-06-06 15:00:24 -07:00
styles.css More fixes for Super Focus Mode when many panels and splits exist. 2022-11-01 15:46:38 -07:00
tsconfig.json Use Workspace, hoping that type definitions will land there soon. 2021-06-06 15:00:24 -07:00
versions.json 1.11.5 2024-11-06 20:01:05 -08:00

Obsidian Focus Mode

Add Focus Mode to Obsidian.

Focus Mode Demo

Now with Super Focus Mode (Shift + Left Click), which will only focus on the active pane. The original behavior still exists on a normal Left Click.

Super Focus Mode and Command/Hotkey demo

Hotkeys

Hotkeys Action
Cmd/Ctrl + Alt + Z Toggle Focus Mode
Cmd/Ctrl + Alt + Shift + Z Toggle Super Focus Mode (Active pane only)

Customizing the plugin's appearance:

Classes are added to document.body depending on the state. focus-mode exists in Normal and Super Focus modes, while super-focus-mode, only exists in Super Focus Mode (surprise!).

The following CSS snippet added to a vault will remove the opacity on non-active lines:

.focus-mode .cm-s-obsidian .cm-line:not(.cm-active),
.focus-mode .cm-s-obsidian div:not(.CodeMirror-activeline) > .CodeMirror-line {
    opacity: 1 !important;
    filter: saturate(1) !important;
}

Manually installing the plugin:

  • Copy over main.js, styles.css, manifest.json to your vault VaultFolder/.obsidian/plugins/obsidian-focus-mode/.