Find filenames in text and show the text as a clickable page
Project description
picaf
Show the window that allows you to click filenames, which are picked up by scanning input text file.
A slightly similar tool is python -m http.server
, which serves a web page including links to files in local directories.
Installation
pip install picaf
If you get a ModuleNotFoundError when you run the picaf,
$ picaf -h
....
ModuleNotFoundError: No module named 'docopt'
Install docopt-ng additionally.
pip install docopt-ng
Usage
picaf [options] [<textfile>]
picaf --list-fonts
Launch a GUI application that displays text in the argument files, after convert each filename written in text into a clickable button.
By default, each time a button is pressed, print the filename. With the option -c
, you can execute the specified command for the filename.
Options
-c COMMAND Command line for the clicked file. `{0}` is a place holder to put a file name.
-p PAT, --pattern PAT Pattern to filter / capture files.
-n, --dry-run Print commands without running.
--font=NAMESIZE Specify font name and size, e.g. `"Noto Sans,12"`
--list-fonts Print the fonts installed.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
File details
Details for the file picaf-0.1.0.tar.gz
.
File metadata
- Download URL: picaf-0.1.0.tar.gz
- Upload date:
- Size: 4.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.8.10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3190355f4d9f985d054231c9095ea54bd6db9523ebf0997180a694c8bbb59e9f |
|
MD5 | b8a6d4556750ea0bb1f3f483c71e1909 |
|
BLAKE2b-256 | 21a8c9b489db6d5a7625d05af71e6cd6532f3d1cee9244f9c4228e0eef79ed6a |