microsoft / microsoft/terminal

initialRows/initialCols should respect the first launched profile in a window, rather than the default

Open
#19,265 3 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Area-UserInterface Help Wanted Impact-Visual Issue-Bug Priority-3 Product-Terminal
Dominant language
C++
Stars
105k
Forks
9.6k
Avg merge
3d 17h
Merged PRs (30d)
29

Description

### Current behavior

Currently, the `--size` command uses the font of the default profile to calculate window size, which results in a different size when opening another profile with a different font setting.

### Proposed change

Add a new `Default launch size` field to profile settings. If only one profile is requested at launch, use the size from the new field (`--size` overrides it) with the font settings of the specified profile. If multiple profiles is requested, use the current behavior.

### Why do I need this feature

This is important for my workflow as I need to open an instance with many small cells instead of a few big cells. Changing from the settings page is slow and ruins the default settings.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by tracing how the --size command calculates dimensions and how profile settings are loaded. Compare launches with one requested profile against launches with multiple profiles, then verify that the new Default launch size is used only for the single-profile case and that --size still takes precedence.

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
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.