Skip to content

Make scanning non-blocking (ie. async) #421

@idr4n

Description

@idr4n

Hi,
I just started trying the plugin and although I really like how fast it find matches in normal size projects, when using these two commands at least (CommandT and CommandTFind) in the whole $HOME directory, it hangs for way too long until it opens up the window and show the results, blocking the whole neovim instance in the meantime.

Although it is not the case that I want to search my whole home directory, it sometimes happens (normally by mistake) that I don't realize I open neovim in the home directory and start searching for files. As point of comparison, Fzf.vim and FzfLua handle this very nicely and it doesn't block and I can cancel and quit right away, even I can search and it will start showing some results right away. Telescope on the other hand does stop scanning for files if I start searching but at least I can just close telescope and quit or do something else. CommandT, however, just block the neovim instance completely and I cannot stop the process or quit neovim (unless killing the tmux pane or closing the terminal).

It would be nice if CommandT handles very large directories in a similar way as Fzf that while it keeps scanning for files, I can still use the interface to some extend and even start searching and getting some results.

Not sure if this is something that can be achieve, but I just wanted to mention it nonetheless.

Gracias de antemano!

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions