mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-13 05:44:11 +02:00
Added an open in terminal dialogue
This commit is contained in:
parent
efb1a9c350
commit
8f7287b3dc
5 changed files with 69 additions and 0 deletions
|
@ -6514,6 +6514,20 @@ namespace IDE
|
|||
procInfo.UseShellExecute = true;
|
||||
procInfo.SetFileName(directory);
|
||||
|
||||
let process = scope SpawnedProcess();
|
||||
process.Start(procInfo).IgnoreError();
|
||||
});
|
||||
item = menu.AddItem("Open in Terminal");
|
||||
item.mOnMenuItemSelected.Add(new (menu) =>
|
||||
{
|
||||
let directory = scope String();
|
||||
Path.GetDirectoryPath(sourceViewPanel.mFilePath, directory);
|
||||
|
||||
ProcessStartInfo procInfo = scope ProcessStartInfo();
|
||||
procInfo.UseShellExecute = true;
|
||||
procInfo.SetFileName(gApp.mSettings.mEditorSettings.mDefaultConsole);
|
||||
procInfo.SetWorkingDirectory(directory);
|
||||
|
||||
let process = scope SpawnedProcess();
|
||||
process.Start(procInfo).IgnoreError();
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue