Skip to content

Suggestion: Sort by usage to middle #178

@ackvf

Description

@ackvf

What is your problem
Hi, when the option "Sort characters by usage frequency" is used, it actually moves the most frequent characters AWAY from the middle, which is the default selection position when invoked.

It is necessary to also turn on "Start selection from the left" to fully utilize the sorted characters.

However, starting from the left makes it subpar in terms of navigation speed as the distance effectively doubles.

Describe the solution you'd like

I would love it if the sorting was based on the prefered selection starting point, meaning that the most used characters would clump around middle - the default starting selection position.

#  | Sort characters by usage frequency | Start selection from the left | result
1. | off   |  middle  |  default, it takes at most `n/2` key strokes to navigate to any option, `n/4` on average
2. | left  |  middle  |  it takes exactly `n/2` (the worst case) to select the MOST used option - this is the worst of all
3. | off   |  left    |  it takes at most `n` key strokes to navigate to the last option, `n/2` on average. Double of the first case.
4. | left  |  left    |  it takes `0` key strokes to navigate to the most used option and `n` to the last option. This is a win/lose situation, combining the best and worst of both.
---
5. | middle | middle  |  it takes at most `n/2` key strokes to navigate to any option, `n/4` on average and exactly `0` to navigate to the most used option. This is a win/win situation.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions