You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The documentation provides sample callback URLs with the pretty function names urlencoded, such as noteplan://x-callback-url/runPlugin?pluginID=jgclark.QuickCapture&command=quick%20add%20to%20journal%20today
However, this fails with a command not found error in the logs. Instead, Noteplan expects the actual js function names in the callback URL, e.g. appendTextToDailyJournal instead of quick%20add%20to%20journal%20today
The docs should be updated with the Javascript function names.
Plugin Console Log
AppDelegate: handleGetURLEventcalled,firstcheckingifitsforDropboxnone
AppDelegate: handleGetURLEventcalled,pickingthefirsturl: noteplan://x-callback-url/runPlugin?pluginID=jgclark.QuickCapture&command=quick%20add%20to%20journal%20today&arg0=helloworld&arg1=&arg2=&arg3=. Is the handler nil = no (cache the url if needed)UI+URLScheme: parseincomingx-callback-urlUI+URLScheme: dosomethingwithrunPluginRunningapluginthroughx-callback(["arg2": "","command": "quick add to journal today","pluginID": "jgclark.QuickCapture","arg1": "","arg0": "helloworld","arg3": ""]Plugin'dwertheimer.DateAutomations'isalreadydownloadedwiththesameorhigherversion,don't add it from the core plugins again
Foundplugin: 'jgclark.QuickCapture'.Couldn't find the command in any plugin, check for typos
AppDelegate: handleGetURLEventcalled,firstcheckingifitsforDropboxnoneAppDelegate: handleGetURLEventcalled,pickingthefirsturl: noteplan://x-callback-url/runPlugin?pluginID=jgclark.QuickCapture&command=appendTextToDailyJournal&arg0=helloworld&arg1=&arg2=&arg3=.Isthehandlernil=no(cachetheurlifneeded)UI+URLScheme: parseincomingx-callback-urlUI+URLScheme: dosomethingwithrunPluginRunningapluginthroughx-callback(["command": "appendTextToDailyJournal","arg1": "","arg2": "","arg3": "","pluginID": "jgclark.QuickCapture","arg0": "helloworld"]Plugin'dwertheimer.DateAutomations'isalreadydownloadedwiththesameorhigherversion,don't add it from the core plugins again
Foundplugin: 'jgclark.QuickCapture'.Foundcommand'quick add to today'sjournal'.initFuncresult: undefinedJSLog: Executingfunction'appendTextToDailyJournal'JSLog: 2024-12-1516:20:23|DEBUG|jgclark.QuickCapturev0.16.0 :: starting/qajwitharg0='helloworld'JSLog: 2024-12-1516:20:23|DEBUG|jgclark.QuickCapturev0.16.0 :: Adding'helloworld'to2024-12-15(📆today)undermatchedHeading'Journal'Register: 20241215.md,update: changed,source: localcommandFuncresult: Optional([objectPromise])Pluginsuccessfullyexecutedviax-callback
The text was updated successfully, but these errors were encountered:
@alexbartok Thx for reporting. You are correct, the docs are wrong. The command changed names awhile back but it looks like the docs were not updated to match. The correct URL is:
Checks
System
Describe the bug
There seems to be a documentation bug @ https://github.com/NotePlan/plugins/blob/main/jgclark.QuickCapture/README.md :
noteplan://x-callback-url/runPlugin?pluginID=jgclark.QuickCapture&command=quick%20add%20to%20journal%20today
appendTextToDailyJournal
instead ofquick%20add%20to%20journal%20today
Plugin Console Log
The text was updated successfully, but these errors were encountered: