Skip to content

Ross-Thanscheidt/NppRossToolsCSharp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Ross Tools Plugin for Notepad++

Ross Tools

  • Remove Trailing Spaces

    This will trim all spaces at the end of every line.

  • Update Ages

    This will update every line in the current document that starts with a birthdate (in MM/dd/yyyy format) that has (# in yyyy) somewhere on the line, which should reflect their age for that year.

    For example, if you had a document like this:

    Celebrities
    
    05/04/1928 Maynard Ferguson (94 in 2022) (died at 78 on 08/23/2006)
    05/31/1930 Clint Eastwood (92 in 2022)
    06/09/1961 Michael J. Fox (61 in 2022)
    

    Then after running Update Ages in 2023 the document should look like this:

    Celebrities
    
    05/04/1928 Maynard Ferguson (95 in 2023) (died at 78 on 08/23/2006)
    05/31/1930 Clint Eastwood (93 in 2023)
    06/09/1961 Michael J. Fox (62 in 2023)
    
  • Update Line Balances

    This will update the balance on each transaction line in the current document.

    For example, if you had a document like this:

    Checking Account
    
    (-10.82) 06/11 Sonic
    63.28 (-25.32) 06/03 Hobby Lobby
    88.60 (-17.30) 06/01 Walmart
    105.90 Balance
    

    Then after running Update Line Balances the document should look like this:

    Checking Account
    
    52.46 (-10.82) 06/11 Sonic
    63.28 (-25.32) 06/03 Hobby Lobby
    88.60 (-17.30) 06/01 Walmart
    105.90 Balance
    

Development Environment

Visual Studio 2022 Preview - v17.11 Preview 2.1
Notepad++ - v8.6.7 (64-bit)
NppPlugin .NET package for VS2019 and beyond - v0.95.00 (Jan 2021)

Building the project in Visual Studio should add (or update) NppRossTools\NppRossTools.dll under C:\Program Files\Notepad++\plugins, which will add Ross Tools under Plugins when you run Notepad++.

Disclaimer

These tools will not likely be useful to anyone besides myself, which is why I called it Ross Tools, but I have it as a public repository in case it helps anyone else with developing their own Notepad++ plugins.

Because I am not able to compile this plugin into an ARM64 DLL, I cannot use it in Notepad++ on my Windows 10 VM running in Parallels on my MacBook that has an Apple Silicon M1 processor. For this reason I have created a C++ version of this Notepad++ Plugin.

Any further updates will likely be done in the C++ version and not in this C# version.

References

https://npp-user-manual.org/docs/plugins/#how-to-develop-a-plugin
https://github.com/kbilsted/NotepadPlusPlusPluginPack.Net
https://github.com/molsonkiko/NppCSharpPluginPack

About

Ross Tools Plugin for Notepad++

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages