Skip to content

Conversation

bitoffdev
Copy link
Contributor

Overview

I pulled in the changes that @Komediruzecki had originally proposed in BoostIO/BoostNote-App#691.

I updated the patch for all the recent changes, including moving the context menu from the old API to V2.

Preview

This preview is from testing with the local development setup.

Peek 2022-02-26 14-50

Detailed Changelog

Based on https://github.com/BoostIO/BoostNote-App/pull/691

Changes pulled in from original patch:

- Update db API for creating a note link (createstore, FSNoteDb)
- Add codemirror hyperlink addon
- Initialize hyperlink addon (CodeMirror.ts)
- Add event handling of editor ctrl+click link with ipc (App.tsx)
- Add regexes for note link shortId (MarkdownPreviewer.tsx)
- Add handling of rendering and clicking of note link in md preview
- Fix electron only API
- Fix getWebContentsById to be initialized
- Fix hyperlink to use electron only API
- Fix macos binding in hyperlink
- Refactor utility functions and put regexes in constants
- Fix note linking when title contains characters that should be escaped
- Add note link copied push message
- Add push message when note link is successfully copied
- Fix issues with event default propagation on context menu

Differences from original patch:

- Removed PouchNoteDb support
- Migrated to V2 API for context menu in sidebar
- Removed codemirror hyperlink addon css style (CodeEditor.tsx)

Based on BoostIO/BoostNote-App#691

Changes pulled in from original patch:

- Update db API for creating a note link (createstore, FSNoteDb)
- Add codemirror hyperlink addon
- Initialize hyperlink addon (CodeMirror.ts)
- Add event handling of editor ctrl+click link with ipc (App.tsx)
- Add regexes for note link shortId (MarkdownPreviewer.tsx)
- Add handling of rendering and clicking of note link in md preview
- Fix electron only API
- Fix getWebContentsById to be initialized
- Fix hyperlink to use electron only API
- Fix macos binding in hyperlink
- Refactor utility functions and put regexes in constants
- Fix note linking when title contains characters that should be escaped
- Add note link copied push message
- Add push message when note link is successfully copied
- Fix issues with event default propagation on context menu

Differences from original patch:

- Removed PouchNoteDb support
- Migrated to V2 API for context menu in sidebar
- Removed codemirror hyperlink addon css style (CodeEditor.tsx)

Co-authored-by: Elliot Miller <[email protected]>
Co-authored-by: Komediruzecki <[email protected]>
@Komediruzecki
Copy link
Collaborator

Komediruzecki commented Feb 26, 2022

Hi,

thanks for the contribution, will inspect and resolve this tomorrow, so we can have note linking in the next release.

@Komediruzecki Komediruzecki linked an issue Feb 26, 2022 that may be closed by this pull request
Add cross storage note linking
Fix notification type on success for note link copy
@Komediruzecki
Copy link
Collaborator

Komediruzecki commented Feb 27, 2022

Hi,

I've made some small changes:

  • Add cross-storage linking
  • Fix push message type
  • Fix error handling
  • Fix dark theme link color

Tested the feature, works really nice, so I think we can merge it.

@Komediruzecki Komediruzecki merged commit bdf7d5f into BoostIO:master Feb 27, 2022
@bitoffdev
Copy link
Contributor Author

Hi,

I've made some small changes:

  • Add cross-storage linking
  • Fix push message type
  • Fix error handling

Tested the feature, works really nice, so I think we can merge it.

Awesome! Thanks for doing this, especially with such a quick turnaround! Cheers.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add linking between notes

2 participants