From 1a1cd75dccf46efa625a82146e828bc08ef3ba26 Mon Sep 17 00:00:00 2001 From: Weixuan Lin Date: Mon, 27 Mar 2023 15:47:11 -0700 Subject: [PATCH 1/2] Add a break line in settings tab --- main.ts | 2 ++ 1 file changed, 2 insertions(+) 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.') From 3f58d4db7e1604345608aca8723949d2176f1113 Mon Sep 17 00:00:00 2001 From: Weixuan Lin Date: Mon, 27 Mar 2023 15:50:52 -0700 Subject: [PATCH 2/2] Update README --- README.md | 11 +++++++++++ 1 file changed, 11 insertions(+) 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