Similar to rofi -dmenu -format i, I suggest to add a --index option to the dmenu mode that will return the index of the selected entry starting from zero instead of the text of the entry.
I haven't been using this Rofi feature, but I noticed its usefulness recently while trying some of qutebrowser's official userscripts, and making them Flatpak compatible.
It's being used by the open_download usercript.
Similar to `rofi -dmenu -format i`, I suggest to add a `--index` option to the dmenu mode that will return the index of the selected entry starting from zero instead of the text of the entry.
I haven't been using this Rofi feature, but I noticed its usefulness recently while trying some of qutebrowser's official userscripts, and making them Flatpak compatible.
It's being used by the [open_download usercript](https://github.com/qutebrowser/qutebrowser/blob/master/misc/userscripts/open_download).