Skip to content

Autocompletion dialog shouldn't push up the input line and previous output #485

@st0012

Description

@st0012

Description

Currently, if autocompletion dialog's height > the remaining space between input line and the terminal bottom, it'll push the input line and previous output up:

autocompletion dialog shouldn't move input line

This gives a bad user experience because users now need to scroll up to see previous output. In small terminal windows, the frequency to do so is likely very high.

Possible Solution

I think when the space below input line is not enough to display autocompletion dialog, reline should do 2 things:

  1. Display the dropdown above the input line instead, which is what VS Code does:

  1. If the dialog height still exceeds the available space above, reduce the candidates to make it fit.

Terminal Emulator

This happens in Terminal.app, iTerm2, and Kitty terminal and it's not an emulator-related issue.

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