Merge branch 'dev-status-bar-css'

This commit is contained in:
Weixuan Lin 2023-04-02 22:34:45 -07:00
commit f8e9893126

View file

@ -285,15 +285,20 @@ 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).
You may utilize the vim mode display prompt class and the `data-vim-mode` attribute to
add styles to the status bar prompt (e.g. assign colors for different status). You can
also toggle the setting in settings page to also apply the display prompt class to the
entire status bar container if you want some customizations on it.
| 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` |
The display prompt class: `vimrc-support-vim-mode`
The `data-vim-mode` values:
| Mode | Data Value (`data-vim-mode`) |
| ------- | ---------------------------- |
| normal | `normal` |
| insert | `insert` |
| visual | `visual` |
| replace | `replace` |
## Changelog