Reocin / obsidian-markdown-formatting-assistant-plugin

This Plugin provides a simple WYSIWYG Editor for Markdown and in addition a command line interface. The command line interface facilitate a faster workflow.
250 stars 28 forks source link

changing text colors with minimum mouse clicks #52

Open listplot3d opened 2 years ago

listplot3d commented 2 years ago

With code modification shown below, now when I click the button, then click one of the "saved colors", then color of selected text is directly changed:) This is the way that I found for changing text colors with minimum mouse clicks -- of course this need boxes checked as static config, for"add color" and "add tag" in "colors" section.

Hope it could also be useful to others. Thanks:)


xiao@DESKTOP-F11HG5B /cygdrive/d/xiao/Obsidian Vault/.obsidian/plugins/obsidian-markdown-formatting-assistant-plugin
$ diff 0main\ -\ bk.js main.js
2781c2781
<         symbol: '<span></span>',
---
>         symbol: '<span ></span>',
2783c2783
<         selectionInput: 6,
---
>         selectionInput: 7,
limex commented 1 year ago

+1 for this idea. You should create a pull request for that.