Skip to content

Commit

Permalink
notes
Browse files Browse the repository at this point in the history
  • Loading branch information
zadjii-msft committed Sep 19, 2022
1 parent 4def21a commit 0c68bd1
Show file tree
Hide file tree
Showing 4 changed files with 33 additions and 0 deletions.
26 changes: 26 additions & 0 deletions .wt.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
{
"actions":
[
{
"command": { "action": "sendInput", "input": "bx\r" },
"name": "Build project",
"description": "Build the project in the CWD"
},
{
"command": { "action": "sendInput", "input": "bz\r" },
"name": "Build solution, incremental",
"description": "Just build changes to the solution"
},
{
"command": { "action": "sendInput", "input": "bcz\r" },
"name": "Clean & build solution",
"description": "Start over. Go get your coffee. "
},
{
"command": { "action": "sendInput", "input": "nuget push -apikey az -source TerminalDependencies %userprofile%\\Downloads" },
"name": "Upload package to nuget feed",
"description": "Go download a .nupkg, put it in ~/Downloads, and use this to push to our private feed."
},

]
}
1 change: 1 addition & 0 deletions src/cascadia/TerminalApp/AppActionHandlers.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1203,6 +1203,7 @@ namespace winrt::TerminalApp::implementation
auto cwd = context.CurrentWorkingDirectory();
if (!cwd.empty())
{
// TODO! don't read the file on the UI thread you idiot
auto localTasks = CascadiaSettings::ReadFile(cwd + L"\\.wt.json");
if (!localTasks.empty())
{
Expand Down
2 changes: 2 additions & 0 deletions src/cascadia/TerminalControl/ControlCore.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1858,6 +1858,8 @@ namespace winrt::Microsoft::Terminal::Control::implementation
auto terminalLock = _terminal->LockForWriting();
auto context = winrt::make_self<DirectoryHistoryContext>();
context->CurrentWorkingDirectory(WorkingDirectory());
// TODO! as the CWD changes, store them in a stack (up to some
// quantity), and bubble them up here.
return *context;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -528,6 +528,10 @@ JSON_ENUM_MAPPER(::winrt::Microsoft::Terminal::Settings::Model::CommandPaletteLa
};
};

// TODO! This could totally be a flag enum
// TODO! Add "saved" -> ones in the settings file
// TODO! Add "local" -> ones in the cwd
// TODO! default to saved|local
JSON_ENUM_MAPPER(::winrt::Microsoft::Terminal::Settings::Model::TaskSource)
{
JSON_MAPPINGS(4) = {
Expand Down

0 comments on commit 0c68bd1

Please sign in to comment.