marcusolsson/obsidian-projects

Can't add commands for Projects!

whdmike opened this issue · 4 comments

I try to mark Projects to add them to Commands, that I can access URL via command palette.

There is a very strange behavior. I would like to mark all my Projects, but when I mark them and close settings, next time I open Obsidian-Projects settings some Projects remain marked and others return to blank (sometimes even random). How is possible to fix that? I believe is a basic setting and should work. Thank you!
.
.
project

.
.

Discussed in #377

Originally posted by marcusolsson January 19, 2023
Since Projects stores all its configuration in the plugin configuration, data.json, you can't link to a Project from a note using internal links.

A workaround is to use the Advanced URI plugin, which lets you create links to commands.

  1. Install Obsidian Advanced URI from Community plugins.
  2. In the Command palette, select Advanced URI: copy URI for command.
  3. Select <Don't specify a file>.
  4. Select Projects: Show projects.
  5. In a note, enter [Show projects](<paste the copied URI>).

From 1.13.0, you can also enable commands to show specific projects and views. To enable a command:

  1. Open Settings.
  2. Select Projects in the sidebar.
  3. Under Commands, enable the projects and views you want to create commands for.

The command palette now has an additional Show command for each project and view that you enabled. Note that you can use Advanced URI: copy URI for command to create links for each one.

Sadly I cannot reproduce this on my side. Could you provide more info to help determine the bug? Like plugin version, your OS ect.

You can try adding command to Projects in a blank Obsidian vault to see if the problem is on Projects or due to conflicts between plugins. Also if you can access the console, via Ctrl / Cmd + Shift + i, can you post a screenshot of the error log?

I have Windows 10, latest update.
Projects version 1.17.4

What I do: I mark all my projects as in projects1.jpg, then I close settings, and when I open them again, you can see some of the projects that were marked are marked no more (picture projects2.jpg)

project1

project2

The problem is that for "non-marked" projects, I can't make a shortcut (link to the project).

I am posting a screen of the console:

err1

err2

err3

err4

err5

I changed number of my project to 4 (before 20+) and now it works.