diff --git a/README.md b/README.md index 375c330..85610b4 100644 --- a/README.md +++ b/README.md @@ -283,6 +283,17 @@ nmap [[ :prevHeading See [here](JsSnippets.md) for the full example, and please contribute your own! +### Custom Styles for Status Bar + +You may utilize the following CSS class names to add styles to the status bar prompt +(e.g. assign colors for different status). + +| Mode | Class Name | +| ------- | ---------------------------------------------- | +| normal | `plugin-obsidian-vimrc-support-prompt-normal` | +| insert | `plugin-obsidian-vimrc-support-prompt-insert` | +| visual | `plugin-obsidian-vimrc-support-prompt-visual` | +| replace | `plugin-obsidian-vimrc-support-prompt-replace` | ## Changelog diff --git a/main.ts b/main.ts index 207f698..7660cc4 100644 --- a/main.ts +++ b/main.ts @@ -781,6 +781,8 @@ class SettingsTab extends PluginSettingTab { }) }); + containerEl.createEl('hr'); + new Setting(containerEl) .setName('Normal mode prompt') .setDesc('Set the status prompt text for normal mode.')