anyrun-org / anyrun

A wayland native, highly customizable runner.
GNU General Public License v3.0
560 stars 44 forks source link

Bug: Can't show all items correctly #114

Open zhuyk6 opened 7 months ago

zhuyk6 commented 7 months ago

I want to use anyrun --plugins libstdin.so instead of dmenu (or wofi, rofi etc.).

But now, anyrun first uses max_entries in stdin.ron and then uses max_entries in config.ron. If input lines are more than max_entries, it will only keep max_entries items.

Example

I write a python script to print n number, each number in a line.

import sys

if len(sys.argv) != 2:
    raise Error("Need one number n")

n = int(sys.argv[1])

for i in range(n):
    print(i)

Expected

Using python test.py 50 | wofi --dmenu, the screenshot is screenshot_20231109_183507

But using anyrun

I set max_entries to None in config.ron and max_entries to 100 in stdin.ron. After python test.py 50 | anyrun --plugins libstdin.so, the result is screenshot_20231109_183307

The list is out of the screen. When I move down, the cursor will move out of the screen and there is no slide bar. I don't know why anyrun can't show a ListBox properly.

cybergaz commented 7 months ago

yeah, i came here for filing same issue.

we just want a scrollable list , it's simple isn't it?? since it's gtk.