mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-06-20 06:05:32 -06:00
ide: Copy output directory / target path
git-svn-id: svn://ultimatepp.org/upp/trunk@15664 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
parent
11d58ad37e
commit
db487ba8cf
4 changed files with 7 additions and 8 deletions
|
|
@ -211,8 +211,3 @@ void Ide::CreateMakefile()
|
|||
return;
|
||||
SaveMakeFile(~mfout, true);
|
||||
}
|
||||
|
||||
void Ide::OpenOutputFolder()
|
||||
{
|
||||
ShellOpenFolder(GetFileFolder(target));
|
||||
}
|
||||
|
|
|
|||
|
|
@ -914,7 +914,6 @@ public:
|
|||
void Preprocess(bool asmout);
|
||||
void ToggleStopOnErrors();
|
||||
void CreateHostRunDir(Host& h);
|
||||
void OpenOutputFolder();
|
||||
void PreprocessInternal();
|
||||
|
||||
void DebugMenu(Bar& menu);
|
||||
|
|
|
|||
|
|
@ -80,6 +80,9 @@ KEY(OPENLOG, "View log file", K_ALT_L)
|
|||
|
||||
KEY(OPENFILEDIR, "Open file directory", 0)
|
||||
KEY(OPENOUTDIR, "Open output directory", 0)
|
||||
KEY(COPYOUTDIR, "Copy output directory", 0)
|
||||
KEY(COPYTARGET, "Copy target path", 0)
|
||||
KEY(OUTDIRTERMINAL, "Terminal at output directory", 0)
|
||||
|
||||
KEY(TOGGLEBROWSER, "Show Browser++", K_CTRL_B)
|
||||
KEY(NAVIGATOR, "Navigator bar", K_CTRL_N)
|
||||
|
|
|
|||
|
|
@ -681,8 +681,10 @@ void Ide::BuildMenu(Bar& menu)
|
|||
menu.Add(ffb, AK_FINDPREVERROR, THISBACK(FindPrevError))
|
||||
.Help("Find previous " + hh + "according to console pane");
|
||||
menu.MenuSeparator();
|
||||
menu.Add(!IsNull(target), AK_OPENOUTDIR, THISBACK(OpenOutputFolder));
|
||||
menu.Add(!IsNull(target), "Terminal at output directory", [=] { LaunchTerminal(GetFileFolder(target)); });
|
||||
menu.Add(!IsNull(target), AK_OPENOUTDIR, [=] { ShellOpenFolder(GetFileFolder(target)); });
|
||||
menu.Add(!IsNull(target), AK_COPYOUTDIR, [=] { WriteClipboardText(GetFileFolder(target)); });
|
||||
menu.Add(!IsNull(target), AK_COPYTARGET, [=] { WriteClipboardText(target); });
|
||||
menu.Add(!IsNull(target), AK_OUTDIRTERMINAL, [=] { LaunchTerminal(GetFileFolder(target)); });
|
||||
}
|
||||
|
||||
void Ide::DebugMenu(Bar& menu)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue