.mentions is empty
Open
@EduardMe is already working on this.
Since Jan 27, 2024.
API
bug
P-5
- Dominant language
- JavaScript
- Stars
- 204
- Forks
- 82
- Avg merge
- 22h 27m
- Merged PRs (30d)
- 3
Description
Here's an ancient problem that I'd like to see cleared up, in order to make progress on new features for Project + Reviews plugin.
The plugin depends on reading metadata in notes, for example
#area @start(2021-09-29) @review(6w) @reviewed(2023-06-23)
To do this I first try to get the list of all mentions:
let mentions: $ReadOnlyArray<string> = note.mentions ?? []
but normally it finds none, despite there being many in the note.
So I then have to use this fallback:
const metadataLineIndex = getOrMakeMetadataLine(note)
let metadataLine = paras[metadataLineIndex].content
mentions = (metadataLine + ' ').split(' ').filter((f) => f[0] === '@')
I've put a warning in the plugin-side docs that this call is unreliable.
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.