obsidian-slash-commander icon indicating copy to clipboard operation
obsidian-slash-commander copied to clipboard

Slash commander commands show "This command is not available currently" on 1.9.1

Open Alicecomma opened this issue 6 months ago • 5 comments

Hi, update to Obsidian 1.9.1 (w/ Slash commander 0.3.4 still) seems to have disabled all my commands? Windows 11 desktop. The same seems to happen on a clear vault for several of the commands. Re-creating the commands makes them show up again; maybe previously made commands' availability settings aren't set? But I also cannot click to edit their settings, just that the command is not available;

Image

Alicecomma avatar May 22 '25 20:05 Alicecomma

Here is the data.json, it seems they lack the entries:

  • "action": "editor:follow-link",
  • "triggerMode": "anywhere",
  • "isGroup": false,

..that do get populated when a new command is made

data.json

Alicecomma avatar May 22 '25 20:05 Alicecomma

Could you remove the version: 2 (or set it to 1) from your data and reload the plugin?

alephpiece avatar May 22 '25 22:05 alephpiece

Setting the version to 1 and restarting Obsidian did fix the commands (seems the data.json got converted correctly to the version 2 format); it also seems to have added Admonition, Excalidraw, Task, Template and Citation. This was with Slash commander updated to 0.3.5. The update also seemed to allow the broken commands to be edited but the textbox for selecting an Obsidian command was blank.

Alicecomma avatar May 23 '25 13:05 Alicecomma

The default settings may be merged accidentally. I'll fix it.

The textbox for selecting a command will always show the command id of the slash command being edited. If the slash command has an action field, it will be there as the command id.

alephpiece avatar May 23 '25 14:05 alephpiece

默认设置可能会被意外合并。我会修复它。

用于选择命令的文本框将始终显示正在编辑的斜线命令的命令 ID。如果斜线命令有action字段,则该字段将作为命令 ID 存在。

@alephpiece I've also encountered this issue. Is it fixed? Should I delete the unavailable commands now?

RainyGrass avatar Aug 31 '25 02:08 RainyGrass