Projfiles

Projfiles is a small Tcl/Tk script that shows the files and subdirectories from the directory where it is launched in a listbox together with some custom configured buttons and filter boxes for the files to show. Doubleclicking on a file can run a command to launch an editor to edit the file. The script was written mainly to be used under Linux but should also work under Windows using MSYS2.

The default configuration shows C files (*.c and *.h) with buttons to call make all and make clean.

When the program starts, it sources in the file .projfilesrc.tcl in the user's home directory (if it exists) and then the file pwconfig.tcl in the current directly (again, if it exists). Both of these can be used to provide user-specific (e.g. this code will use KDE's Kate for a text editor and xterm to run terminal commands) and project-specific configuration (e.g. this code sets up a custom file pattern, two configurations that each change the make and clean commands to run and four custom buttons, three of which run commands in the terminal and one that sets a configuration parameter).

At the top of the script are the variables and functions that can be used and changed, if needed.

Download: