No3371 / obsidian-regex-pipeline

An Obsidian plugin that allows users to setup custom regex rules to automatically format notes.
70 stars 8 forks source link

Rulesets can't be included in commands #18

Closed Alex47856 closed 1 year ago

Alex47856 commented 1 year ago

There are only two entries in commands

  1. RegEx Pipeline: Undifined (not working)
  2. RegEx Pipeline: Apply Ruleset

I would like to add RegEx Rulesets to create Macros using another plugin. But it can't be implemented without inputs in commands.

No3371 commented 1 year ago

Please enable commands in the plugin settings.

RegEx Pipeline: Undifined (not working)

I'm not sure if this means you already enabled that. If it is and it's not working, it could be that the ruleset is not properly written, or you renamed your ruleset. In case of the latter, you need to reload Obsidian because the plugin use filename to create commands.

XMB-7 commented 1 year ago

Just found that with the following config, rules are not only disappear in the right click manu but also in the command palette, whcih is not as expected. image image

No3371 commented 1 year ago

The quick-rule slider is dragged to the left most, which is zero. So no quick-rule. Commands are just quick-rules in command form.

XMB-7 commented 1 year ago

My expectation is no rules in right-click menu but all rules still available as obsidian commands. Is it possible to achieve? For example, I've made 10 rules, and I only want the ninth to be integrated into a macro as an obsidian command using the QuickAdd plugin. In this case, I have to drag the slider to 10, otherwise, the specific rule doesn't show up in the command palette.

No3371 commented 1 year ago

Unfortunately no. Maybe in next update.

No3371 commented 1 year ago

@XMB-7 In 1.4 the count of commands and menu items are now separately configurable.

As for the original issue, due to lack of activity, I'm closing this.

XMB-7 commented 1 year ago

@No3371 Thanks for your time and effort, it helps me a lot.