Skip to content

Directories with lots of inodes grind completion to a crawl in prompt #3604

Closed
@nrdxp

Description

@nrdxp

Summary

When completing a directory with a large quanity of files and folders in the prompt, say with :o, if the directory in question has thousands of inodes, as does the /nix/store when using Nix, for example, typing becomes extremely laggy and difficult. Even pasting text takes a long time, and worse, makes helix unresponsive until finished.

I would guess that the entire directory is being crawled on each keystroke and that's why it takes so long.

Reproduction Steps

The following asciinema shows a text being pasted into the prompt directly from the system clipboard:
https://asciinema.org/a/kV7WxOfdvmFxNwEUsPzQPDogT

Helix log

No relevant log segment

Platform

Linux

Terminal Emulator

kitty 0.25.2

Helix Version

22.05

Metadata

Metadata

Assignees

No one assigned

    Labels

    C-bugCategory: This is a bug

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions