promptprep.tui module
A friendly terminal interface for choosing which files to process.
- class promptprep.tui.FileSelector(start_path: str)[source]
Bases:
objectLets you browse and select files using arrow keys and spacebar.
- __init__(start_path: str)[source]
Gets everything ready for file selection.
- Parameters:
start_path – Where to start browsing from
- promptprep.tui.select_files_interactive(directory: str) Tuple[Set[str], Set[str], bool][source]
Lets you pick files using an interactive menu.
- Parameters:
directory – Where to start browsing
- Returns:
Set of files you want to include
Set of directories you want to skip
Whether you want to save these choices