mirror of
https://github.com/microsoft/PowerToys.git
synced 2026-04-04 18:26:39 +02:00
_⚠️ targets #39955_
This adds history support to the new run page.
* It'll initialize the history with the history from the run dialog, if
there is any.
* Any new commands that are run, or files/dirs that are opened will also
get added to the history
* history will persist across reboots
22 lines
475 B
C++
22 lines
475 B
C++
#pragma once
|
|
|
|
#include "RunHistory.g.h"
|
|
#include "types.h"
|
|
|
|
namespace winrt::Microsoft::Terminal::UI::implementation
|
|
{
|
|
struct RunHistory
|
|
{
|
|
RunHistory() = default;
|
|
static winrt::Windows::Foundation::Collections::IVector<hstring> CreateRunHistory();
|
|
|
|
private:
|
|
winrt::Windows::Foundation::Collections::IVector<hstring> _mruHistory;
|
|
};
|
|
}
|
|
|
|
namespace winrt::Microsoft::Terminal::UI::factory_implementation
|
|
{
|
|
BASIC_FACTORY(RunHistory);
|
|
}
|