Skip to content

[REQUEST] Lazy load script mode #2287

@stag-enterprises

Description

@stag-enterprises

What is the user problem or growth opportunity you want to see solved?

When loading multiple scripts with -modi mode1:script1,mode2:script2,mode3:script3 -mode mode1, if script 3 takes 500ms to load, Rofi will not launch until 500 ms, even if script 1 only takes 100 ms. This introduces unnecessary delay. Related: #947

How do you know that this problem exists today? Why is this important?

One example is with rofimoji. One might want to do something like -modi emoji:rofimoji,everything:rofimoji -files all, but scanning all of Unicode is very slow, and so this makes startup very slow in general, when most of the time that mode won't even be used.

Rofi version (rofi -v)

Version: 2.0.0-dirty

Configuration & Information

https://gist.github.com/stag-enterprises/4ea056a310fa3bb6ea648e8663a34e12

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions