Coverage for src/pyselector/__init__.py: 100%
3 statements
« prev ^ index » next coverage.py v7.2.2, created at 2023-03-29 12:33 -0300
« prev ^ index » next coverage.py v7.2.2, created at 2023-03-29 12:33 -0300
1"""
2A module for selecting options from a list using various menu implementations.
4Menus available:
5- Rofi
6- Dmenu (work-in-progress)
7- Fzf (work-in-progress)
9Usage:
11options = ["a", "b", "c"]
12menu = pyselector.Menu.rofi()
13menu.keybind.add(
14 key="alt-n",
15 description="sort by recent",
16 callback=lambda: None,
17 hidden=False,
18)
19selected_option, keycode = menu.prompt(options)
20"""
21from __future__ import annotations
23from .selector import Menu as Menu
25__version__ = "0.0.7b0"