andrewjmead / wpsites

A CLI for quickly spinning up WordPress sites
MIT License
17 stars 1 forks source link

Sites navigation in "destroy" sites list is very slow #36

Open slaFFik opened 1 week ago

slaFFik commented 1 week ago

I configured the 1.9.0-beta2 with 4 directories set in sites_directories. They are nested:

    "sites_directory" => [
        '$HOME/Projects',
        '$HOME/Projects/one',
        '$HOME/Projects/two',
        '$HOME/Projects/three/four',
    ],

Now, when I run wpsites destroy - I get a list of 13 sites, and the navigation between them to pick one is very slow. It's like a full 1 second or so after each arrow-down press.

image

The situation is better when the number of sites in the list is 6 (I removed the last directory for sites_directory) - so it's definitely related to the number of sites in a list.

andrewjmead commented 2 hours ago

I tried to recreate this but I wasn't able to. Is it still an issue on your end?

It's not doing anything special when the current selection is changed.