Organized List of My Macros

Last Updated:   5/2/26  15:10                 Jeffrey Knauth

See the Programming section of my jgkhome.name website for links to zip files you can click to download. My KEDIT macros are collected in the ALLMACROS.zip file.  Below I provide a one-line summary for each of those macros.  Much more information can be found in the macros themselves, typically in comments at the top of the macro or in a Help section at the end.  If it exists, a macro's Help section can be displayed by invoking the macro with just a single "?" parameter.  PCCON doc and ENHSRCH doc provide detailed documentation for the tools in the PCCON.pkg and ENHSRCH.pkg zip files.

Basic File Editing

WINPROF This is my KEDIT profile.
FILEJGK If the file was changed, updates the timestamp line (if present) and does a SAVE or FILE; else QUIT.
TSL Adds a generic timestamp line as the top line, for later use by FILEJGK.
QAZ Erases an (accidentally created) file if it is less than four lines long.
KCLOSE Closes the file:  Just QQUIT if no changes, i.e., alt()=0; otherwise optionally uses FILEJGK to do a FILE.

BOXFILL Fills a marked block (box) with the text from the first line in the box.
CENTERITEM Centers text in a line with a gap on each side of that text and "rule" characters to fill the rest of the line.
FIXCMNT Adjusts the length of the lines in a centered-text comments block.
ULINE Underlines each blank-delimited word on the line.
SEPLINE Adds a line of "-"s or "="s below the cursor line.
JOINSPLT If the cursor is on or before the last non-blank character of a line, splits the line at the cursor.
Otherwise joins the following line to the cursor line at the cursor position.
SWAPCHAR Swaps a character with the one before it; i.e., reverses the order of the two characters.
APPENDTEXT Steps thru the file, line by line starting with the cursor line, optionally appending text to each line.
PASTECLIP Pastes the clipboard contents at the cursor position.  Assign to a key easier to press than Ctrl-V.
SETUPPASTE Places DEF F6 "TEXT _" on the command line. You then replace the "_" with your desired text and press Enter. Now pressing F6 places your text at the cursor position. Pressing F6 can be easier than pressing Ctrl-V, especially for multiple presses. Also, using F6 together with Ctrl-V makes two paste strings available.
KK Edits the named file in the KMACROS directory.
EDITSHOW Selects a file "name" from the text area or clipboard  Then either KEDITs that "named" file or puts the "name" data on the command line.  Beforehand the selected data can be edited, e.g., to add a drive+path section and remove/add quotes.
EDITSHOW_CHK_CLIP.txt Support file for "EDITSHOW (CLIP".  Doubleclicking this file (or a shortcut for it) invokes KEDIT for
this file and immediately runs "EDITSHOW (CLIP" to edit the (supposed) file named in the clipboard.
MVCURSLN Repeated invocations make the cursor line become the top line in the window, then the
bottom line, then back to the initial window position.
LPP Makes the last line of the file become the bottom line in the window.
COLLINE Puts a column marker at a position depending on the cursor location.

DRAFT Saves a user-named draft file to ...\NOTES\$$$_DRAFTS\draft_name.DRAFT.
SHOWQ Displays formatted EXTRACT output together with the associated section of KEDIT Help.
COUNTS Displays counts of file lines, characters, words, etc., and the length of the longest line.
SW Repeated invocations switch the prefix location in a right, left, off cycle.
VIEWURL Invokes Firefox to view the file referenced by the block-selected URL.
DBLSPACE Double spaces the file lines.
NEWDIR Displays a popup menu for selecting among many directory options.  Can be put on the toolbar.
HELPTOPIC Displays a popup menu for easily viewing various sections of KEDIT Help.  Can be put on the toolbar.
HELPMISC Displays a popup menu for easily viewing selected web pages.  Can be put on the toolbar.
keys.txt Summary of all my KEDIT key settings.

Text Flow Tools   (See PCCON package.)

PCCON Flows the text in the specifed area with settable values for indent, overhang, and right margin.
FLOWCMNT Edits and flows comment lines to start with "* " and fit within the file's standard margins:  from 1 to 72 or 1 to 90.
PCCONALL Flows all file "paragraphs' with the current indent, overhang, and right margin.
PCCONZ Flows all file "paragraphs' with inset = 0, hanging indent = 0, and right margin.

Search Tools   (see ENHSRCH package)

LKJGK Searches for a specified (or default) string and highlights the string if found.
LK Searches for a specified (or default) string, using LKJGK (normally a forward search).
LB Does a backward search for the specified (or default) string, using LKJGK.
LF Does a forward search for the specified (or default) string, using LKJGK.
LW Does a wrap search for the specified (or default) string, using LKJGK.
EVBACKUP Manages a backup file for persistent EDITV global variables. This file is used to save such EDITV keys and associated values, enabling this EDITV data to be remembered across KEDIT sessions.
LKREVERSE Reverses the direction of the previous search.
SHALL Does an enhanced "ALL /string/", allowing easy flipflopping between "ALL" and "ALL /string/".
SHALLCLIP Sets up a SHALL search for the string currently in the clipboard.
COLLECT Creates a report of all files in a directory containing a specified string.
EDDQFILE Edits the file whose double quoted fileid is found in the focus line.

Print Tools

MARKPRT Highlights the block of lines that would fit on a printed page and be within margins.
DBLPRINT Prints a temporary, double-spaced copy of the file.
DIRPRNFMT Formats the output from Karenware's DIRPRN tool to make it more readable.

Tools To Manage My BOE Website   (Board of Elections work)

DATESORT Checks for consistency of my many Board of Election work files and then produces status reports.
DATESORT_DELTA Supports DATESORT.
DATESORT_MATCH  Supports DATESORT.

Language Support

KEDIT
FLOWCMNT (See above under Text Flow Tools.)
SHFTCMNT Shifts a "/* ... */" comment to end at the boundary column of a line (column 90 for a .kex file).
PREFXAST Inserts "* " before the cursor line, then moves down to the next line.  User can repeat to comment out a section.
HTML
HTMLJK.kld Control file for providing a color-formatted display of .htm and .html files.
CHKTAGS Does HTML format checks for a blank-line-delimited block of lines.  (In the PCCON package.)
CHKTAGSLINE Does HTML format checks for a single line.  (In the PCCON package.)
CHKTAGS_test.txt Text to test CHKTAGS(In the PCCON package.)
CMNTOUT Allows commenting out (for testing) a block of lines that contains HTML comments.
CMNTOUT_flow.txt Overviw of CMNTOUT logic.
CMNTOUT_tests.txt  Text to test CMNTOUT.
MAKELIST Makes a skeleton HTML list.
PYTHON
PYTHON.kld Control file for providing a color-formatted display of .py and .pyw files.
PYFMTPRT In a Python file, helps format print(...) lines.

Odds and Ends   (now seldomly used; unreviewed recently; some now retired)

CHARKEY Defines S-F6 to output a placeholder character in hex mode.
CURSORBOOLEAN  Runs a series of KEDIT boolean tests involving cursor placement.
DOLINES Contains macro templates for processing all the lines in a file.
HEXCHARS Creates tables of characters from X'20' to X'FF'.
hexchars.txt Output from HEXCHARS.
MAKETEMP Does a "DRAFT MAKE_TEMP" for the current file being edited.
KF Records the fileid of the file being edited, or edits the last-recorded file.
NOTABS Expands tabs to a set of spaces.
SEPC Adds a subroutine separator line.
SORTCOLS Individually sorts eight columns of words.
UNUNI Sort of "de-Unicodes" a file by changing X'00's to nulls and deleting blank lines.
MAKECURL Scrolls the file and/or moves the cursor, depending on cursor location.
UPDOWNHF Scrolls up or down half a screen.
COLSJGK Sets up reserved lines to display helpful information for Gary Vair's COLS macro.
ENDPERIOD Adds a period to the end of the focus line.  (Replaced by APPENDTEXT.)
FINDWORD Isolates the word pointed to by the cursor and then sets up for LKJGK to find it.
      (SHALL SWORD now does this and much more.)
FLOWHELP Flows a macro's Help section text.  (Replaced by FLOWCMNT.)
FLOWRXCM Flows a macro's REX comments.  (Replaced by FLOWCMNT.)
LKSYMLAB Sets up LKJGK to find a symbol.  (Replaced by SHALL.)

Games   (haven't used or reviewed in a long time)

CRYPTO Does 1-1 letter substitution to help solve a crypto puzzle.
Crypto_Base.htm To start solving a crypto puzzle, copy this file and edit it with the unencrypted data.
SUDOKU Solves a Sudoku puzzle.
sudoku_calls.txt List of SUDOKU internal calls.
sudoku_flow.txt SUDOKU flow diagram. 
sudoku_how_to_use.txt  Instructions for how to use the SUDOKU macro.

History of Recent Significant Changes
  •   4/15/26:  Added HELPTOPIC macro, which provides a toolbar popup to give direct access to selected KEDIT Help topics.
  •   4/22/26:  Added LANGHELP macro, which provides a toolbar popup to give links to selected web pages on computer topics.
  •   4/23/26:  Added EDITSHOW macro to easily invoke KEDIT for files specified by text selection, cursor placement, or clipboard contents.
  •   4/26/26:  Added EDITV_BACKUP macro to preserve EDITV data across KEDIT sessions.
  •   4/26/26:  Created ENHSRCH package version 3.10 in which many ENHSRCH macros now use EDITV_BACKUP.
  •   4/26/26:  Updated EDITSHOW, KK, and KF macros to use EDITV_BACKUP.
  •   4/28/26:  Made some fixes to EDITV_BACKUP.
  •   4/28/26:  Renamed LANGHELP to HELPMISC.
  •   4/29/26:  Renamed EDITV_BACKUP to EVBACKUP.
  •   4/29/26:  Renamed LKREVERS to LKREVERSE.
  •   5/01/26:  Added PASTECLIP, which can be assigned to an easier key combination to press than Ctrl-V.
HOME