-
Notifications
You must be signed in to change notification settings - Fork 23
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feature Request: API for Dictionary registration #118
Comments
Hi, @MSzturc :) Does that mean it is needed to add the path(URL) to the Custom dictionary paths via the API? (ex: |
Yes exactly, with a path like |
OK. LGTM 👍 Probably, I will add the API such a |
@MSzturc Please confirm whether it works as you expected via BRAT. P.S. |
Awesome, works as expected! The implementation is fine. One think i would introduce with v.6.1 is an API Method Thx ;-) |
Got a prototype running ;-) autoComplete.mov |
Thank you! I'll add the function 👍 |
@MSzturc There is a bit of breaking change. Please fix the code as follows. - app.plugins.plugins["various-complements"].ensureCustomDictionaryPath("./your-dictionary.md", "present")
+ app.plugins.plugins["various-complements"].api.ensureCustomDictionaryPath("./your-dictionary.md", "present") |
done. |
Ah... it doesn't need settings except for |
That would be a nice feature since there are some Settings to get the dict working properly:
A dict based on a JSON file would make a hierarchically dictionary easier to implement since we wont have to parse a md file |
I'll add this option certainly. However, I think that I will not add other settings for now.
Yes. Originally I don't use Custom dictionary (I do now), so I selected the specifications based on the IME dictionary, but already the expressions are pushing the limits 😅 |
@MSzturc 2022-05-04_00h33_30.mp4 |
Supported properties. {
"caretSymbol": "[[CARET]]",
"ignoreSpaceAfterCompletion": true,
"words": [
{ "value": "custom dictionary1" },
{ "value": "custom dictionary2", "description": "hogehoge" },
{ "value": "custom dictionary3", "aliases": ["w3", "word3"] },
{ "value": "```json\n[[CARET]]\n```", "displayed": "code-json" }
]
}
|
Uhhh... looks neat! Will test it tomorrow and give you feedback. Thx |
Will v6.1.0-beta4 support dict hierarchy (as described in #119 )? |
No it doesn't because of #119 (comment). |
@MSzturc |
Played a bit with it! Works like intended! Thx man |
@MSzturc By the way, can I remove the API of this issue by any chance? Because Best regards. |
Yeah, if you want you may remove it. I experimented yesterday a bit with it and i was not comfortable with my dictionary without the hierarchy feature, Advanced Slides is too complex for a basic auto complete, so i hacked an own suggester... but i have to rewrite it after its stable.. the code is too complex |
OK! Thanks for reply 👍 |
Hi,
i've created a custom dictionary to for Advanced Slides syntax. I would like to ship this dictionary with the current build of advanced slides and register it dynamically when the user also has installed various complements plugin. Therefore it would be be cool when provide me such an api for integration
The text was updated successfully, but these errors were encountered: