Skip to content

Bug: Can't show all items correctly #114

Description

@zhuyk6

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions