Skip to content

Auto-completion based on buffer #264

@j4hangir

Description

@j4hangir

Thanks for the ongoing impressive job, the terminal emulator is becoming better and better every day 👍

The only thing I miss as I used to work on my Mac with iTerm is its smart auto-completion feature, one could press a key and a drop-down box would open with suggestions from the buffer, say the line above:

>>>
>>> name=root
>>> echo $n<HOTKEY>

There, name would be one of the top suggestions (pre-selected, similar to autocompletion in Fish)

I think implementing this wouldn't be that difficult, given that the buffer is readily available and it'd be merely a matter of ordering the suggestions based on their distance to the cursor + LD (Levenshtein distance). On the plus side, it's exceedingly a useful feature, reducing the strain on fingers to move and copy paste things around.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions