Skip to content

Commit 837d606

Browse files
committed
Update doc and readme
1 parent c288d3f commit 837d606

File tree

13 files changed

+26
-28
lines changed

13 files changed

+26
-28
lines changed

Odotocodot.OneNote.Linq/OneNoteApplication.cs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -64,19 +64,19 @@ public static void Init()
6464
public static void CreateQuickNote() => OneNoteParser.CreateQuickNote(OneNote, true);
6565

6666
/// <inheritdoc cref="OneNoteParser.CreatePage(IApplication, OneNoteSection, string, bool)"/>
67-
public static void CreatePage(OneNoteSection section, string pageTitle) => OneNoteParser.CreatePage(OneNote, section, pageTitle, true);
67+
public static void CreatePage(OneNoteSection section, string name) => OneNoteParser.CreatePage(OneNote, section, name, true);
6868

6969
/// <inheritdoc cref="OneNoteParser.CreateSection(IApplication, OneNoteSectionGroup, string, bool)"/>
70-
public static void CreateSection(OneNoteSectionGroup parent, string sectionName) => OneNoteParser.CreateSection(OneNote, parent, sectionName, true);
70+
public static void CreateSection(OneNoteSectionGroup parent, string name) => OneNoteParser.CreateSection(OneNote, parent, name, true);
7171

7272
/// <inheritdoc cref="OneNoteParser.CreateSection(IApplication, OneNoteNotebook, string, bool)"/>
73-
public static void CreateSection(OneNoteNotebook parent, string sectionName) => OneNoteParser.CreateSection(OneNote, parent, sectionName, true);
73+
public static void CreateSection(OneNoteNotebook parent, string name) => OneNoteParser.CreateSection(OneNote, parent, name, true);
7474

7575
/// <inheritdoc cref="OneNoteParser.CreateSectionGroup(IApplication, OneNoteSectionGroup, string, bool)"/>
76-
public static void CreateSectionGroup(OneNoteSectionGroup parent, string sectionGroupName) => OneNoteParser.CreateSectionGroup(OneNote, parent, sectionGroupName, true);
76+
public static void CreateSectionGroup(OneNoteSectionGroup parent, string name) => OneNoteParser.CreateSectionGroup(OneNote, parent, name, true);
7777

7878
/// <inheritdoc cref="OneNoteParser.CreateSectionGroup(IApplication, OneNoteNotebook, string, bool)"/>
79-
public static void CreateSectionGroup(OneNoteNotebook parent, string sectionGroupName) => OneNoteParser.CreateSectionGroup(OneNote, parent, sectionGroupName, true);
79+
public static void CreateSectionGroup(OneNoteNotebook parent, string name) => OneNoteParser.CreateSectionGroup(OneNote, parent, name, true);
8080

8181
/// <inheritdoc cref="OneNoteParser.CreateNotebook(IApplication, string, bool)"/>
8282
public static void CreateNotebook(string notebookName) => OneNoteParser.CreateNotebook(OneNote, notebookName, true);

Odotocodot.OneNote.Linq/OneNoteParser.cs

Lines changed: 8 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -21,23 +21,23 @@ public static class OneNoteParser
2121
public const char RelativePathSeparator = '\\';
2222

2323
/// <summary>
24-
/// An array containing the characters that are not allowed in a <see cref="OneNoteNotebook">notebook</see> <see cref="OneNoteNotebook.Name">name</see>.<br/>
24+
/// An array containing the characters that are not allowed in a <see cref="OneNoteNotebook">notebook</see> <see cref="OneNoteNotebook.Name"> name</see>.<br/>
2525
/// These are:&#009;<b>\ / * ? " | &lt; &gt; : % # .</b>
2626
/// </summary>
2727
/// <seealso cref="IsNotebookNameValid(string)"/>
2828
/// <seealso cref="InvalidSectionChars"/>
2929
/// <seealso cref="InvalidSectionGroupChars"/>
3030
public static readonly ImmutableArray<char> InvalidNotebookChars = """\/*?"|<>:%#.""".ToImmutableArray();
3131
/// <summary>
32-
/// An array containing the characters that are not allowed in a <see cref="OneNoteSection">section</see> <see cref="OneNoteSection.Name">name</see>.<br/>
32+
/// An array containing the characters that are not allowed in a <see cref="OneNoteSection">section</see> <see cref="OneNoteSection.Name"> name</see>.<br/>
3333
/// These are:&#009;<b>\ / * ? " | &lt; &gt; : % # &amp;</b>
3434
/// </summary>
3535
/// <seealso cref="IsSectionNameValid(string)"/>
3636
/// <seealso cref="InvalidNotebookChars"/>
3737
/// <seealso cref="InvalidSectionGroupChars"/>
3838
public static readonly ImmutableArray<char> InvalidSectionChars = """\/*?"|<>:%#&""".ToImmutableArray();
3939
/// <summary>
40-
/// An array containing the characters that are not allowed in a <see cref="OneNoteSectionGroup">section group</see> <see cref="OneNoteSectionGroup.Name">name</see>.<br/>
40+
/// An array containing the characters that are not allowed in a <see cref="OneNoteSectionGroup">section group</see> <see cref="OneNoteSectionGroup.Name"> name</see>.<br/>
4141
/// These are:&#009;<b>\ / * ? " | &lt; &gt; : % # &amp;</b>
4242
/// </summary>
4343
/// <seealso cref="IsSectionGroupNameValid(string)"/>
@@ -257,7 +257,7 @@ public static IEnumerable<OneNotePage> FindPages(IApplication oneNote, string se
257257
/// <param name="scope">The hierarchy item to search within.</param>
258258
/// <returns><inheritdoc cref="FindPages(IApplication, string)" path="/returns"/></returns>
259259
/// <seealso cref="FindPages(IApplication, string)"/>
260-
/// <exception cref="ArgumentException"><inheritdoc cref="ValidateSearch(string)" path="/param[@cref='ArgumentException'"/></exception>
260+
/// <exception cref="ArgumentException"><inheritdoc cref="ValidateSearch(string)" path="/exception[@cref='ArgumentException']"/></exception>
261261
/// <exception cref="ArgumentNullException">Thrown if <paramref name="search"/> or <paramref name="scope"/> is <see langword="null"/>.</exception>
262262
public static IEnumerable<OneNotePage> FindPages(IApplication oneNote, string search, IOneNoteItem scope)
263263
{
@@ -452,8 +452,7 @@ private static void CreateItemBase<T>(IApplication oneNote, IOneNoteItem parent,
452452
}
453453

454454
/// <summary>
455-
/// Creates a <see cref="OneNoteSection">section</see> with a title equal to <paramref name="name"/> located in the specified <paramref name="parent"/>
456-
/// <see cref="OneNoteSectionGroup">section group</see>.
455+
/// Creates a <see cref="OneNoteSection">section</see> with a title equal to <paramref name="name"/> located in the specified <paramref name="parent"/> <see cref="OneNoteSectionGroup"> section group</see>.
457456
/// </summary>
458457
/// <param name="oneNote"><inheritdoc cref="GetNotebooks(IApplication)" path="/param[@name='oneNote']"/></param>
459458
/// <param name="parent">The hierarchy item to create the section in.</param>
@@ -465,8 +464,7 @@ public static void CreateSection(IApplication oneNote, OneNoteSectionGroup paren
465464
=> CreateItemBase<OneNoteSection>(oneNote, parent, name, openImmediately);
466465

467466
/// <summary>
468-
/// Creates a <see cref="OneNoteSection">section</see> with a title equal to <paramref name="name"/> located in the specified <paramref name="parent"/>
469-
/// <see cref="OneNoteNotebook">notebook</see>.
467+
/// Creates a <see cref="OneNoteSection">section</see> with a title equal to <paramref name="name"/> located in the specified <paramref name="parent"/> <see cref="OneNoteNotebook"> notebook</see>.
470468
/// </summary>
471469
/// <param name="oneNote"><inheritdoc cref="GetNotebooks(IApplication)" path="/param[@name='oneNote']"/></param>
472470
/// <param name="parent">The hierarchy item to create the section in.</param>
@@ -478,8 +476,7 @@ public static void CreateSection(IApplication oneNote, OneNoteNotebook parent, s
478476
=> CreateItemBase<OneNoteSection>(oneNote, parent, name, openImmediately);
479477

480478
/// <summary>
481-
/// Creates a <see cref="OneNoteSectionGroup">section group</see> with a title equal to <paramref name="name"/> located in the specified <paramref name="parent"/>
482-
/// <see cref="OneNoteSectionGroup">section group</see>.
479+
/// Creates a <see cref="OneNoteSectionGroup">section group</see> with a title equal to <paramref name="name"/> located in the specified <paramref name="parent"/> <see cref="OneNoteSectionGroup"> section group</see>.
483480
/// </summary>
484481
/// <param name="oneNote"><inheritdoc cref="GetNotebooks(IApplication)" path="/param[@name='oneNote']"/></param>
485482
/// <param name="parent">The hierarchy item to create the section group in.</param>
@@ -491,8 +488,7 @@ public static void CreateSectionGroup(IApplication oneNote, OneNoteSectionGroup
491488
=> CreateItemBase<OneNoteSectionGroup>(oneNote, parent, name, openImmediately);
492489

493490
/// <summary>
494-
/// Creates a <see cref="OneNoteSectionGroup">section group</see> with a title equal to <paramref name="name"/> located in the specified <paramref name="parent"/>
495-
/// <see cref="OneNoteNotebook">notebook</see>.
491+
/// Creates a <see cref="OneNoteSectionGroup">section group</see> with a title equal to <paramref name="name"/> located in the specified <paramref name="parent"/> <see cref="OneNoteNotebook"> notebook</see>.
496492
/// </summary>
497493
/// <param name="oneNote"><inheritdoc cref="GetNotebooks(IApplication)" path="/param[@name='oneNote']"/></param>
498494
/// <param name="parent">The hierarchy item to create the section group in.</param>

Readme.md

Lines changed: 13 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ A [OneNote](https://www.microsoft.com/en-gb/microsoft-365/onenote/digital-note-t
2424
- [Title Search](#title-search)
2525
- [Settings](#settings)
2626
- [Keywords](#keywords)
27-
- [Changelog](#changelog)
27+
- [Changelog](#200---2023-mm-dd)
2828
- [Acknowledgements](#acknowledgements)
2929

3030
## Installation
@@ -36,25 +36,25 @@ pm install OneNote
3636
```
3737

3838
> [!IMPORTANT]
39-
> For [version 2.0+](#changelog) requires at least Flow Launcher version 1.16.
39+
> For [version 2.0+](#200---2023-mm-dd) requires at Flow Launcher version 1.16+.
4040
4141
## Features
4242

4343
### At a glance
4444

45-
| Keyword | Name | Description |
46-
| ---------------------------- | --------------------------------------- | ---------------------------- |
47-
| `` on {your search query} `` | [Default Search](#default-search) | Search OneNote pages |
48-
| `` on nb:\ `` | [Notebook Explorer](#notebook-explorer) | Navigate notebooks hierarchy |
49-
| `` on rcntpgs: `` | [Recent Pages](#recent-pages) | View recently modified pages |
45+
| Keyword | Name | Description |
46+
| -------------------------- | --------------------------------------- | ---------------------------- |
47+
| ` on {your search query} ` | [Default Search](#default-search) | Search OneNote pages |
48+
| ` on nb:\ ` | [Notebook Explorer](#notebook-explorer) | Navigate notebooks hierarchy |
49+
| ` on rcntpgs: ` | [Recent Pages](#recent-pages) | View recently modified pages |
5050

5151
<!-- omit from toc -->
5252
#### Modifiers
5353

5454
| Keyword | Name | Notes |
5555
| ------- | ------------------------------- | -------------------------------------------- |
56-
| `` > `` | [Scoped Search](#scoped-search) | Search only within a specific hierarchy item |
57-
| `` * `` | [Title Search](#title-search) | Search only the title of hierarchy items |
56+
| ` > ` | [Scoped Search](#scoped-search) | Search only within a specific hierarchy item |
57+
| ` * ` | [Title Search](#title-search) | Search only the title of hierarchy items |
5858

5959
> [!NOTE]
6060
> Hierarchy items are notebooks, section groups, sections and pages.
@@ -67,6 +67,8 @@ on {your search query}
6767

6868
This is allows you to search OneNote pages using the OneNote API which searches both the content in a page as well as the page title.
6969

70+
- Press <kbd>⏎ Enter</kbd> or left-click on a search result to open in OneNote.
71+
7072
> [!NOTE]
7173
> You can include bitwise operators like `AND` or `OR` (they must be uppercase) in your search. E.g. `on hello there AND general kenobi`.
7274
@@ -163,7 +165,7 @@ The plugin has a number of settings such as the ability items in the recycle bin
163165

164166
<details>
165167
<summary>Screenshot of settings</summary>
166-
<img src= "doc/settings.png" width="820" height="598" alt="settings">
168+
<img src= "doc/settings.png" width="823" height="598" alt="settings">
167169
</details>
168170

169171
### Keywords
@@ -172,7 +174,7 @@ All the keywords used can be changed according to user preference.
172174

173175
<details>
174176
<summary>Screenshot of keywords</summary>
175-
<img src= "doc/keywords.png" alt="keywords">
177+
<img src= "doc/keywords.png" width="823" height="276" alt="keywords">
176178
</details>
177179

178180
<details>

doc/flow.png

5.57 KB
Loading

doc/keywords.png

9.84 KB
Loading
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)