Skip to content

Commit

Permalink
#2 Moved docs to github, switched to MessageBox instead of starting a…
Browse files Browse the repository at this point in the history
… process. Also disable mousetracking
  • Loading branch information
halvarsson committed May 3, 2024
1 parent 8b04015 commit b35d636
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions ShowEditorCommand.cs
Original file line number Diff line number Diff line change
Expand Up @@ -118,12 +118,7 @@ protected override void ProcessRecord()
new MenuBarItem("_Help", new [] {
new MenuItem("_About", "", () => MessageBox.Query("About", $"PowerShell Pro Tools Terminal Editor\nVersion: {base.MyInvocation.MyCommand.Module.Version.ToString()}\n", "Ok")),
new MenuItem("_Docs", "", () => {
var psi = new ProcessStartInfo
{
FileName = "https://docs.poshtools.com/powershell-pro-tools-documentation/powershell-module/show-pseditor",
UseShellExecute = true
};
Process.Start(psi);
MessageBox.Query("Documentation", "For documentation, please visit: https://github.com/ironmansoftware/psedit", "Ok");
})
})
}));
Expand Down Expand Up @@ -166,6 +161,10 @@ protected override void ProcessRecord()
finally
{
_runspace.Dispose();
if (!Console.IsInputRedirected)
{
Console.Write("\u001b[?1h\u001b[?1003l");
}
}
}
private void SetLanguage(string path)
Expand Down

0 comments on commit b35d636

Please sign in to comment.