microsoft/Terminal

Data URI scheme support for images in settings.json

オープン

#6,747 opened on 2020/07/01

 (1 件のコメント) (7 件のリアクション) (0 人の担当者)C++ (9,275 件のフォーク)batch import
Area-SettingsHelp WantedIssue-TaskPriority-2Product-Terminal

Repository metrics

Stars
 (103,173 個のスター)
PR merge metrics
 (平均マージ 27d 19h) (30d で 24 merged PRs)

説明

Description of the new feature/enhancement

It would be great to be able to set image files (like icon or backgroundImage) in settings.json using data URI scheme. This could be useful when making backups or clones of Windows terminal settings, when syncing them with other devices, etc., especially when our custom profiles are concerned.

Proposed technical implementation details

An example fragment from settings.json for a custom icon:

{
    "guid": "{7895828e-1e14-4068-89b4-582567b7495e}",
    "name": "MySQL",
    "commandline": "wsl.exe mysql -u username -p",
    "hidden": false,
    "icon": "data:image/png;base64,iVBORw0KG..............goAJRU5ErkJggg=="
}

コントリビューターガイド