euporie.core.widgets.file_browser.PathCompleter

class euporie.core.widgets.file_browser.PathCompleter(only_directories: bool = False, get_paths: Optional[Callable[[], list[str]]] = None, file_filter: Optional[Callable[[str], bool]] = None, min_input_len: int = 0, expanduser: bool = False)

Complete for Path variables.

Parameters:
  • get_paths – Callable which returns a list of directories to look into when the user enters a relative path.

  • file_filter – Callable which takes a filename and returns whether this file should show up in the completion. None when no filtering has to be done.

  • min_input_len – Don’t do autocompletion when the input string is shorter.