microsoft / microsoft/terminal
Data URI scheme support for images in settings.json
Nobody has claimed this yet.
- Dominant language
- C++
- Stars
- 105k
- Forks
- 9.6k
- Avg merge
- 3d 17h
- Merged PRs (30d)
- 29
Description
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=="
}
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by locating the settings.json handling for the icon and backgroundImage fields, then trace how image values are loaded. Check the existing image-related tests or test entry points if available. Done means valid data URI image values work for these settings fields while existing image paths continue to work.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- cpp
- Domain
- cli, desktop
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 42/100