Closed gesellkammer closed 9 months ago
I think there's confusion what accept-single is supposed to do. The accept-single is supposed to return immediately if there's only one item in the list, this seems to change the behavior that accept-single returns immediately if filter out the list enough that there remains only one item.
I thought accept single was the pendant to dmenu's "instant" patch or rofi's auto select. If this is not the case, would you consider adding such an option?
On Wed, Sep 27, 2023, 02:53 Jari Vetoniemi @.***> wrote:
I think there's confusion what accept-single is supposed to do. The accept-single is supposed to return immediately if there's only one item in the list, this seems to change the behavior that accept-single returns immediately if filter out the list enough that there remains only one item.
— Reply to this email directly, view it on GitHub https://github.com/Cloudef/bemenu/pull/357#issuecomment-1736496515, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAAT3NGQUULO5LXXZJMH2C3X4N2HJANCNFSM6AAAAAA5HR2TYA . You are receiving this because you authored the thread.Message ID: @.***>
Yes that kind of behavior would be a new option
Would you accept a patch which implements that functionality under the flag "--accept-single", mirroring rofi's own option?
That would break the current expected behavior of --accept-single, patch with different flag name is okay.
Optional argument for --accept-single could work too as well I guess, something like "always"
Reverted the behaviour of --accept-single, added a new flag --auto-select
Can you also document the flag in the man page, looks good otherwise
Thanks
Looks like we hit string length limit:
error: string literal of length 4104 exceeds maximum length 4095 that ISO C99 compilers are required to support
Thanks
This PR fixes --accept-single, see #335