Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

picaf-0.3.0.tar.gz (4.6 kB view hashes)

Uploaded Source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page