Skip to content

Qt GUI for automatically generating command lines that are immediately pushed to the clipboard for quick use.

License

Notifications You must be signed in to change notification settings

Ixilthrin/command-painter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 

Repository files navigation

command-painter

Qt GUI Generator for Command Painting

You are creating a simple GUI that will generate a command.

First create an input file. The language is simple. Each line represents a keyword or text. The keywords are:

title - The following line becomes the title of the GUI dialog.

literal - Whatever is on the next line becomes part of the command as is.

option - The following line is the name of the option, the following line after that becomes part of the command when selected.

choice - The following line is the name of the group, after that is the name of the choice, after that is the text for the command. The text is added when the option is selected. Choice entries with the same group name will become a radio button group in the dialog.

textbox - The following line is the label. Any text entered by the user becomes part of the command.

pasteselect - Adds selection to command. Linux only.

pasteclip - Adds clipboard text to command.

Basic Description of Process for Creating a Widget

The input file is piped to the generator, and the output is a GUI dialog written in Python.

Redirect the output to a file, and execute the file using Python.

Any change in the dialog or any click on the dialog automatically copies the command to the clipboard.

Just paste into a terminal and you have painted your command.

The sample file input_find_in_files is provided that generates a find | grep command.

Run this to generate the GUI:

cat input_find_in_files | python gen_widget.py > widget.py

Run the widget:

python widget.py

About

Qt GUI for automatically generating command lines that are immediately pushed to the clipboard for quick use.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages