Skip to content

[Feature request] 按候选窗宽度自动决定每页候选数 / Fill candidate page by panel width instead of fixed page_size #1203

Open

Description

@WangMeng20152019

需求 / Request

目前每页候选数由 menu/page_size 固定。希望能增加一个选项,让横排候选窗保持固定(或最大)宽度,每页显示的候选数量根据候选词长度自动调整,尽量填满这一行。类似 macOS 自带简体拼音的行为:候选词短时一页显示更多,长时显示更少。

Currently the number of candidates per page is fixed by menu/page_size. I'd like an option for the horizontal (linear) panel to keep a fixed/maximum width and fit as many candidates as that width allows, like Apple's built-in Pinyin IME does: more candidates when they're short, fewer when they're long.

现状 / Current workaround

style/memorize_size: true 可以防止窗口宽度频繁变化,但每页数量仍然固定,短词时一行有很多空白,长词时窗口又很宽。

style/memorize_size: true keeps the panel from resizing constantly, but the count per page stays fixed, so short candidates leave empty space and long ones make the panel very wide.

可能的配置 / Possible config

style:
  candidate_list_layout: linear
  max_width: 600        # panel width in points
  page_size_mode: fit   # fill page by width; page_size acts as upper limit

环境 / Environment

  • macOS (MacBook Air)
  • Squirrel ,方案:雾凇拼音 (rime-ice)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions