Skip to content
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

Hope to save the search results in one page #47

Closed
zhongguocn opened this issue Sep 6, 2021 · 11 comments
Closed

Hope to save the search results in one page #47

zhongguocn opened this issue Sep 6, 2021 · 11 comments
Assignees
Milestone

Comments

@zhongguocn
Copy link

The existing function is already very easy to use, but I hope to add a new function.

I often search some tags combinations. I hope to maintain this search condition, save the search results in one page, and the content of the search results page will be updated automatically.

Can you add this function?

thank you.

@WetHat
Copy link
Owner

WetHat commented Oct 13, 2021

Hi @zhongguocn ,
Thanks for this interesting suggestion. I need to do some feasibility check on this.

@WetHat WetHat self-assigned this Oct 13, 2021
@WetHat WetHat added this to the Next Release milestone Oct 13, 2021
@WetHat
Copy link
Owner

WetHat commented Oct 13, 2021

Hi @zhongguocn,
Updating OneNote pages with active content on them would be quite awkward for these reasons:

  • The OneNote API does not provide change event notification. Saved Search OneNote pages would have to be
    registered with the TaggingKit and updated periodically in the background to keep them up-to date.
  • So these pages would be up-to date eventually but not immediately after a change.
  • These Search Pages would redundantly show up in search results.
  • The background page updates would have negative performance impact.

What I can do:

Instead of Search Pages I could add user defined Presets to the Find Pages dialog. With this you could:

  • add your favorite tag combinations to the Presets drop down menu.
  • Manage your presets in the Settings dialog.
  • Provide a descriptive names for each tag combination.
  • Always have an up-to-date search result

@WetHat WetHat modified the milestones: Next Release, 3.9 Release Dec 1, 2021
WetHat added a commit that referenced this issue Jan 1, 2022
…s; Separating impart markers from tag name. Cleaning up the view model
WetHat added a commit that referenced this issue Jan 12, 2022
@zhongguocn
Copy link
Author

Maybe we can achieve our goal in another way.

When we set the search conditions of the tag, we get the search results. Save the page link of the search results in a page, add a refresh link at the top of the page, and then refresh the search results after the user clicks the link to replace the current page content with the latest results.

Would you please consider whether this method can be implemented? Thank you.

@WetHat
Copy link
Owner

WetHat commented Jan 24, 2022

Hi @zhongguocn,
adding a refresh link at the top of the page is not possible. Links on a page cannot trigger any actions in an Add-In. Howerver, there is a 'Refresh' button on the 'Tag Pages' dialog already which could be used to achieve something similar:

image

The process to create a saved search would then look like this:

  • On the Find Tagged Pages dialog there would be a 'Save Search' command action to save the search result to a new page
    in the current section.
    The page would look like this:

    image

  • To refresh the search result the Refresh button on the 'Tag pages' dialog needs to be pressed..

Note: as long as the structure of the search result is left intact, any additional page content can be added before or after the
search result.

What do you think?

@zhongguocn
Copy link
Author

Great. That's what I want.
Do you plan to add this function to the next version?

can you add the management function of paragraph marks? Manage like page tags. That would be perfect.

BTW:Can you add the markdown function? Use the plug-in to track the changes of page content.
For example, if the user enters "# headline", press enter to trigger the plug-in command, save the content in the page file and hide it. At the same time, it will be automatically replaced with "headline" of OneNote title text.

If the user enters "headline" at the end of the paragraph"#tagA ", press enter to trigger the plug-in command, reduce the text of" # tagA "and automatically add" #tagA "to the paragraph tag.

Note:OneNote's page link supports URL protocol. Perhaps you can use the command OneNote taggingkit: / / commands to call the plug-in command.

@WetHat
Copy link
Owner

WetHat commented Jan 24, 2022

@zhongguocn,

  "Do you plan to add this function to the next version?"

Yes. The new version should be available Q1.

  "can you add the management function of paragraph marks? "

That is already in the current version. This functionality is described here:

  • Tagging a Page - Notes section at the bottom of tha page

  • Preferences - Tag options section 4

    "Use the plug-in to track the changes of page content."
    

Unfortunately that is not possible. There are no events delivered to the add-in (technical limitation of the OneNote SDK). Therefore, any changes on the page require some manual action by the user. That is the reason the Refresh button on the Tag Pages button is needed to sync paragraph tags and hashtags.

  "OneNote's page link supports URL protocol."

I know. However, that cannot be used to communicate with the add-in. OneNote will attempt to launch an external application. It would be conceivable to create an external application which then can be registered as a protocol handler with the OS. That application would then be started on a click on that link and would attempt to communicate with the add-in.
That would be quite complicated and expensive to implement. As long as the Refresh button is acceptable it would rather not go that route.

@zhongguocn
Copy link
Author

zhongguocn commented Jan 25, 2022

The current version already supports paragraph tag management!

I missed it!

Where do you manage paragraph tag? I can't find it.

WetHat added a commit that referenced this issue Jan 26, 2022
…support the creation of new pages. Addresses issue #47
@WetHat
Copy link
Owner

WetHat commented Jan 26, 2022

@zhongguocn, the management functionality for native OneNote tags is explained in item 4 of the numbered list in the Preferences Tab documentation. You would want to look for subsection "Map OneNote Tags to Page Tags"

@zhongguocn
Copy link
Author

got it. You did a great job.Thanks!

The paragraph tag will not be updated until a tag is added。Can you make a button and click to update the paragraph tag? Or, a shortcut key is OK.

The paragraph tags are not managed by the OneNote Tagging Kit.Can OneNote tagging kit manage paragraph tags in the next version?

If you can manage paragraph tags with OneNote Tagging Kit and multiple paragraph tags search, it will be perfect.

@zhongguocn
Copy link
Author

Mapped hashtags can be used in the Find Notes dialog for tag based refinement of the search result.

A little problem:Click search results cannot be linked to the paragraph。Can you fix it?

@WetHat
Copy link
Owner

WetHat commented Jan 30, 2022

@zhongguocn,

Can you make a button and click to update the paragraph tag? Or, a shortcut key is OK.<<

Try this button
image

Click search results cannot be linked to the paragraph<<
The OneNote search API does not have this functionality. To get links to paragraph tags you need to use the built-in functionality from OneNote's Home tab:
image

WetHat added a commit that referenced this issue Feb 23, 2022
WetHat added a commit that referenced this issue Mar 2, 2022
WetHat added a commit that referenced this issue Mar 7, 2022
…d to use page proxy instead of OneNote Proxy.
@WetHat WetHat closed this as completed Mar 20, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants