terminal/src/cascadia
Don-Vito c089ae0c57
Allow exporting terminal buffer into file via tab context menu (#11062)
## Summary of the Pull Request
**Naive implementation** of exporting the text buffer of the current pane
into a text file triggered from the tab context menu.

**Disclaimer: this is not an export of the command  history,** 
but rather just a text buffer dumped into a file when asked explicitly.

## References
Should provide partial solution for #642.

## Detailed Description of the Pull Request / Additional comments
The logic is following:
* Open a file save picker
  * The location is Downloads folder (should be always accessible)
  * The suggest name of the file equals to the pane's title
  * The allowed file formats list contains .txt only
* If no file selected stop
* Lock terminal
* Read all lines till the cursor
* Format each line by removing trailing white-spaces and adding CRLF if not wrapped
* Asynchronously write to selected file
* Show confirmation

As the action is relatively fast didn't add a progress bar or any other UX.
As the buffer is relatively small, holding it entirely in the memory rather than
writing line by line to disk.
2021-08-31 19:36:43 +00:00
..
CascadiaPackage Revert "Upgrade to Microsoft.UI.Xaml 2.6.2 (or equivalent) (#10996)" (#11031) 2021-08-24 17:46:12 -05:00
inc Only access ControlInteractivity through the projection (#10051) 2021-07-19 11:59:30 -05:00
LocalTests_SettingsModel Use the "base" profile for incoming handoff and new commands (#11022) 2021-08-25 22:41:42 +00:00
LocalTests_TerminalApp Revert "Upgrade to Microsoft.UI.Xaml 2.6.2 (or equivalent) (#10996)" (#11031) 2021-08-24 17:46:12 -05:00
PublicTerminalCore Fix output stuttering using a ticket lock (#10653) 2021-07-14 23:41:22 +00:00
Remoting Tray Icon PR followup (#10938) 2021-08-19 17:38:18 +00:00
ShellExtension Set working directory when invoked from shell extension (#10546) 2021-07-09 18:53:52 +00:00
TerminalApp Allow exporting terminal buffer into file via tab context menu (#11062) 2021-08-31 19:36:43 +00:00
TerminalAzBridge Switch Connections to use ValueSets to initialize them (#10184) 2021-07-20 15:02:17 +00:00
TerminalConnection [DefApp] Move from Monarch multi instance servers to Peasant single instance servers (#10823) 2021-08-05 17:05:21 +00:00
TerminalControl Allow exporting terminal buffer into file via tab context menu (#11062) 2021-08-31 19:36:43 +00:00
TerminalCore Fix text selection while new lines are being printed when history buffer is full (#10749) 2021-08-20 22:36:25 +00:00
TerminalSettingsEditor Add Tray Icon settings to the SettingsUI (#11070) 2021-08-31 01:39:03 +00:00
TerminalSettingsModel Add action to run multiple actions. (#11045) 2021-08-31 19:35:51 +00:00
UnitTests_Control Fix text selection while new lines are being printed when history buffer is full (#10749) 2021-08-20 22:36:25 +00:00
UnitTests_Remoting Add Minimize to Tray and Tray Icon (#10368) 2021-08-12 19:54:39 +00:00
UnitTests_TerminalCore Add an ENUM setting for disabling rendering "intense" text as bold (#10759) 2021-08-16 13:45:56 +00:00
ut_app Revert "Upgrade to Microsoft.UI.Xaml 2.6.2 (or equivalent) (#10996)" (#11031) 2021-08-24 17:46:12 -05:00
WindowsTerminal Revert "Upgrade to Microsoft.UI.Xaml 2.6.2 (or equivalent) (#10996)" (#11031) 2021-08-24 17:46:12 -05:00
WindowsTerminal_UIATests Enable /Zc:preprocessor (#10593) 2021-07-13 23:00:11 +00:00
WindowsTerminalUniversal Revert "Upgrade to Microsoft.UI.Xaml 2.6.2 (or equivalent) (#10996)" (#11031) 2021-08-24 17:46:12 -05:00
WinRTUtils Allow ThrottledFunc to work on different types of dispatcher (#10187) 2021-08-09 15:21:59 +00:00
WpfTerminalControl wpf: make sure to pack api-ms-win-core-synch-l1-2-0 (#10587) 2021-07-08 10:31:59 -05:00
WpfTerminalTestNetCore wpf: make sure to pack api-ms-win-core-synch-l1-2-0 (#10587) 2021-07-08 10:31:59 -05:00
wt Upgrade Windows SDK to 19041 (#10118) 2021-05-20 16:04:25 +00:00
CascadiaResources.build.items Update Cascadia Code to 2106.17 (#10455) 2021-06-18 20:47:19 +00:00