Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
Vadoola committed Aug 4, 2023
1 parent 446d117 commit 42bdb3d
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@ When you copy a pipe it just copies the raw json to the clipboard. This plug-in

It's pretty basic, and just uses a basic regex find a replace for all x and y coordinate values.

As someone pointed out, I probably could have done this from within Ignition as a Python script...true, but I guess part of me wanted to:
* Practice some Rust / C FFI
* See if I could create a Notepad++ plug-in.
As someone pointed out, I probably could have done this from within Ignition as a Python script...true, but I guess part of me wanted to
1. Practice some Rust / C FFI
2. See if I could create a Notepad++ plug-in.

Why choose [Slint](https://slint.dev/) for the dialog box? I initially tried using the Rust [Native Windows Gui](https://crates.io/crates/native-windows-gui) crate since it's just a single simple dialog box, but I have a hi DPI monitor and I couldn't get it to respect the scaling settings. Out of the other Rust Gui options, the only 2 I've spent any time with were Druid (work has moved to Xilem which isn't ready) and Slint, so that seemed like the quick and easy choice.

Expand All @@ -19,4 +19,4 @@ I've never used Github Actions, before, and as of right now I don't have it buil
If you already have [rust](https://www.rust-lang.org/) installed (on Windows since that's the only official platform of Notepad++, although I've heard it works well in Wine), it should just be a matter of checking out the code and doing a cargo build --release

# Installing
Once you have built the dll create a folder titled "ignition_npp_tools" under the plugins directory for Notepad++ and drop the dll in there. Start Notepad++ and you should find it in the menu under Plugins->Ignition Tools->Move Pipes
Once you have built the dll create a folder titled "ignition_npp_tools" under the plugins directory for Notepad++ and drop the dll in there. Start Notepad++ and you should find it in the menu under Plugins->Ignition Tools->Move Pipes

0 comments on commit 42bdb3d

Please sign in to comment.