Skip to content

smalshus/OneMore

Repository files navigation

logo OneMore - a OneNote Add-in

A OneNote add-in with the following Level 1 features:

  • Create/edit/apply custom styles with advanced options
  • Disable spell-check on the current page
  • Manage menu of Favorite pages
  • Paste Rich Text (preserve colors when pasting code from Visual Studio)
  • Search and replace text on the current page

Level 2 Features

  • Add icon to page title, also appears in page hierarchy
  • Collapse the page hierarchy to see only top-level pages
  • Change selected text to UPPERCASE
  • Change selected text to lowercase
  • Insert single horizontal line
  • Insert double horizontal line
  • Insert Table of Contents including all headers on page
  • Increase/Decrease the font size of all content in the current page
  • Sort pages, sections, or notebooks
  • Trim trailing whitespace from selected text
  • View and edit page XML (a diagnostic, debugging, advanced-user tool)

All commands are accessed by two new buttons added to the main ribbon bar.

Minimum Prerequisites

  • Developed for Windows 10
  • Microsoft Visual Studio 2019, C# 7
  • Microsoft Visual Studio 2019 Installer Projects extension
  • .NET Framework 4.8
  • Microsoft OneNote 2016 32-bit

Tested recently with Windows 10 1909, VS2019, and OneNote 2019/O365

OneMore Command Menu Favorites Menu
Command Menu Favorites Menu
Custom Styles Custom Styles Dialog
Styles Styles Dialog
Title Icons Dialog Sort Dialog
Title Icon Dialog Sort Dialog

XML Dialog

XML Dialog


Developing OneMore

Microsoft' OneNote Developer Reference is here.

Direct Development

To avoid continually copying to the installation folder, you can modify the Registry setting to point to your project build output folder instead. You'll need to restart OneNote every time you want to rebuild but it's still easier. T The Registry key is here:

[HKEY_CLASSES_ROOT\WOW6432Node\CLSID\{88AB88AB-CDFB-4C68-9C3A-F10B75A5BC61}\InprocServer32]

and the key would be something like this:

"CodeBase"="C:\\OneMore\\OneMoreAddIn\\bin\\x86\\Debug\\River.OneMoreAddIn.dll"

There are additional haphazard notes in the OneMore project folder readme.txt.

Debugging

To start the debugger, add this line to your code where you want a breakpoint:

System.Diagnostics.Debugger.Launch();

This will cause Visual Studio to display the "attach debugger" dialog. If this dialog does not appear and instead a new instance of VS is opened then check this out from Microsoft about the Just in Time Debugger settings.

About

A OneNote add-in with simple, yet powerful and useful features

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • C# 99.4%
  • PowerShell 0.6%