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
{{ message }}
This repository has been archived by the owner on Feb 26, 2021. It is now read-only.
Right now there's some special handling of named pages, but instead we'd like to put "named page" into other phrases. For instance open [name:pageName] that would match named pages.
To do this we need a new page type (in entityTypes.js) that is dynamically filled with the available names. This would also mean that page names would respect aliases and ignore stopwords.
I believe textMatching.Alternatives can accept a mutable array, and if that array is changed then the pattern matching will change. So we can instantiate the alternatives, and modify it when storage is initialized and as commands are executed that change the named pages. Ideally this would happen in the functions suggested by #1483
The text was updated successfully, but these errors were encountered:
ianb
changed the title
Create namedPage type
Create pageName type
Apr 6, 2020
This is a followup to #1302:
Right now there's some special handling of named pages, but instead we'd like to put "named page" into other phrases. For instance
open [name:pageName]
that would match named pages.To do this we need a new page type (in
entityTypes.js
) that is dynamically filled with the available names. This would also mean that page names would respect aliases and ignore stopwords.I believe
textMatching.Alternatives
can accept a mutable array, and if that array is changed then the pattern matching will change. So we can instantiate the alternatives, and modify it when storage is initialized and as commands are executed that change the named pages. Ideally this would happen in the functions suggested by #1483The text was updated successfully, but these errors were encountered: