Skip to content

Commit

Permalink
hotfix: fix pipeline, buttons
Browse files Browse the repository at this point in the history
- buttons were inverted (same button as default action)
- used rename-item instead of move-item in pipeline for a directory
  • Loading branch information
nathancartlidge committed Nov 11, 2024
1 parent 541108c commit 2372b8c
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 12 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ jobs:
- name: Prepare the artifacts
run: |
Remove-Item -Path ${{ env.OUTPUT_PATH }}\* -Recurse -Include *.xml, *.pdb, PowerToys.*, Wox.*
Rename-Item -Path ${{ env.OUTPUT_PATH }}\${{ matrix.platform }}\Release -NewName ${{ env.OUTPUT_PATH }}\${{ matrix.platform }}\UnicodeInput
Move-Item -Path ${{ env.OUTPUT_PATH }}\${{ matrix.platform }}\Release -Destination ${{ env.OUTPUT_PATH }}\${{ matrix.platform }}\UnicodeInput
Compress-Archive -Path ${{ env.OUTPUT_PATH }}\${{ matrix.platform }}\UnicodeInput -DestinationPath "${{ env.PLUGIN_NAME }}-${{ env.PLUGIN_VERSION }}-${{ matrix.platform }}.zip"
- name: Upload the artifact(s)
Expand Down
20 changes: 10 additions & 10 deletions src/Community.PowerToys.Run.Plugin.UnicodeInput/Main.cs
Original file line number Diff line number Diff line change
Expand Up @@ -158,34 +158,34 @@ public List<ContextMenuResult> LoadContextMenus(Result selectedResult)
ContextMenuResult remainingOption;
if (_doTyping)
{
remainingOption = new ContextMenuResult
remainingOption = new ContextMenuResult
{
PluginName = Name,
Title = $"Input symbol {symbol} (Ctrl+I)",
Title = $"Copy symbol {symbol} to clipboard (Ctrl+C)",
FontFamily = "Segoe Fluent Icons,Segoe MDL2 Assets",
Glyph = "\ue765", // Keyboard
AcceleratorKey = Key.I,
Glyph = "\ue8c8", // Copy
AcceleratorKey = Key.C,
AcceleratorModifiers = ModifierKeys.Control,
Action = _ =>
{
Task.Run(() => _typer.Type(symbol, _typeDelay));
Clipboard.SetText(symbol);
return true;
}
};
}
else
{
remainingOption = new ContextMenuResult
remainingOption = new ContextMenuResult
{
PluginName = Name,
Title = $"Copy symbol {symbol} to clipboard (Ctrl+C)",
Title = $"Input symbol {symbol} (Ctrl+I)",
FontFamily = "Segoe Fluent Icons,Segoe MDL2 Assets",
Glyph = "\ue8c8", // Copy
AcceleratorKey = Key.C,
Glyph = "\ue765", // Keyboard
AcceleratorKey = Key.I,
AcceleratorModifiers = ModifierKeys.Control,
Action = _ =>
{
Clipboard.SetText(symbol);
Task.Run(() => _typer.Type(symbol, _typeDelay));
return true;
}
};
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"ActionKeyword": "\\",
"Name": "Unicode Input",
"Author": "nathancartlidge",
"Version": "1.2.0",
"Version": "1.2.1",
"Language": "csharp",
"Website": "https://github.com/nathancartlidge/powertoys-run-unicode",
"ExecuteFileName": "Community.PowerToys.Run.Plugin.UnicodeInput.dll",
Expand Down

0 comments on commit 2372b8c

Please sign in to comment.