-
Notifications
You must be signed in to change notification settings - Fork 562
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add/inter note link searching (#2286)
* WIP: Add inter-note link auto-complete Adds an auto-complete provider to use Monaco's built-in functionality for searching notes when linking. This patch presents an alternative approach from creating a custom dialog. Due to the way that the auto-complete always returns results even if none are wanted it may be best to look for a custom dialog. * trigger with bracket, move to editorInit * allow escape to clear suggestions * remove commented styles * tweak some options * restore singleton enforcement * remove from ownState * try incomplete flag * search title only * exclude the current note, dispose the completion provider on unmount * rearrange and use onWillDispose * pass note ID in on instantiate * add command to allow triggering suggest after dismissal * move completionProviderHandle * move bracket finding into a helper function * prevent suggestions widget from popping up in the wrong context * use getTitle for title search * let runSearch do the filtering * make typescript happy * change word boundaries Co-authored-by: Kat Hagan <[email protected]>
- Loading branch information
Showing
4 changed files
with
156 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters