Skip to content

Commit 3a80cb7

Browse files
committed
Callback URLs - fix addNote text param
1 parent cf87e3a commit 3a80cb7

3 files changed

Lines changed: 9 additions & 5 deletions

File tree

‎np.CallbackURLs/CHANGELOG.md‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,10 @@
44

55
See Plugin [README](https://github.com/NotePlan/plugins/blob/main/np.CallbackURLs/README.md) for details on available commands and use cases.
66

7+
## [1.11.1] - 2026-05-27 @dwertheimer
8+
9+
- Fix addNote wizard: use `text` parameter for note content (was `noteText`, which NotePlan's `/addNote` x-callback-url does not recognize)
10+
711
## [1.11.0] - 2025-01-30 @dwertheimer
812

913
- Fix addNote wizard: was returning addText URL; now correctly returns addNote URL

‎np.CallbackURLs/plugin.json‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@
55
"noteplan.minAppVersion-NOTE": "Includes folder view picker",
66
"plugin.id": "np.CallbackURLs",
77
"plugin.name": "🔗 Link Creator",
8-
"plugin.version": "1.11.0",
9-
"plugin.lastUpdateInfo": "1.11.0: selectTag, installPlugin, toggleSidebar wizards; openNote timeframe/highlight; addText/addNote openType and highlight; fix addNote URL",
8+
"plugin.version": "1.11.1",
9+
"plugin.lastUpdateInfo": "1.11.1: fix addNote wizard using wrong parameter name for note content (text, not noteText)",
1010
"plugin.description": "Interactively helps you form links/x-callback-urls (and also Template Tags with runPlugin commands) to perform actions from within NotePlan or between other applications and NotePlan.",
1111
"plugin.author": "dwertheimer",
1212
"plugin.dependencies": [],

‎np.CallbackURLs/src/NPXCallbackWizard.js‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -260,8 +260,8 @@ export async function addNote(): Promise<string> {
260260
vars.noteTitle = await getInput(`What's the title?\n(optional - click OK to leave blank)`, `OK`, `Title of Note`, '')
261261
if (vars.noteTitle === false) return ''
262262
vars.folder = await chooseFolder(`What folder?`)
263-
vars.noteText = await getInput(`What text for content?\n(optional - click OK to leave blank)`, `OK`, `Note Content`, '')
264-
if (vars.noteText === false) return ''
263+
vars.text = await getInput(`What text for content?\n(optional - click OK to leave blank)`, `OK`, `Note Content`, '')
264+
if (vars.text === false) return ''
265265
vars.openNote = await showMessageYesNo(`Open note automatically?`, ['yes', 'no'], `Open Note`)
266266
vars.subWindow = await showMessageYesNo(`Open in Floating Window?`, ['yes', 'no'], `Open in Window`)
267267
vars.splitView = await showMessageYesNo(`Open in Split View?`, ['yes', 'no'], `Open in Split View`)
@@ -279,7 +279,7 @@ export async function addNote(): Promise<string> {
279279
delete vars[key]
280280
}
281281

282-
if (['noteTitle', 'folder', 'noteText'].indexOf(key) > -1 && vars[key] === '') {
282+
if (['noteTitle', 'folder', 'text'].indexOf(key) > -1 && vars[key] === '') {
283283
delete vars[key]
284284
}
285285
}

0 commit comments

Comments
 (0)