zeza 1.7.0__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,340 @@
1
+ .TH ZEZA 1 "November 2026" "zeza 1.7.0" "User Commands"
2
+ .SH NAME
3
+ zeza \- modern eza-inspired file listing utility for IBM z/OS USS
4
+ .SH SYNOPSIS
5
+ .B zeza.py
6
+ [\fIOPTIONS\fR]
7
+ [\fIPATH\fR ...]
8
+ .SH DESCRIPTION
9
+ .B zeza
10
+ is a feature-rich Python implementation inspired by the
11
+ .B eza
12
+ directory listing utility and tailored specifically for IBM z/OS UNIX
13
+ System Services (USS).
14
+ .PP
15
+ It combines modern file listing capabilities with z/OS-specific features
16
+ including colorized terminal output, EBCDIC and ASCII file tag awareness
17
+ (\fBchtag\fR), extended attribute inspection (\fBextattr\fR), POSIX ACL
18
+ indicator detection (\fB+\fR), zFS dataset resolution (\fBdf\fR), and Git
19
+ repository integration.
20
+ .PP
21
+ In addition to a traditional command-line interface,
22
+ .B zeza
23
+ provides an interactive full-screen Text User Interface (TUI) for
24
+ browsing, sorting, filtering, dynamically adding or removing display
25
+ columns, inspecting, viewing files in ASCII/EBCDIC/Hex, modifying z/OS
26
+ attributes (\fBchtag\fR, \fBextattr\fR, \fBchmod\fR), editing, and managing
27
+ files directly on the mainframe.
28
+ .SH POSITIONAL ARGUMENTS
29
+ .TP
30
+ .I paths
31
+ One or more files or directories to display (default: current directory).
32
+ .SH OPTIONS
33
+ .TP
34
+ .BR \-h ", " \-\-help
35
+ Display help information and exit.
36
+ .TP
37
+ .BR \-a ", " \-\-all
38
+ Show hidden files (entries starting with \fB.\fR). The parent directory
39
+ (\fB..\fR) is pinned to the top of directory listings.
40
+ .TP
41
+ .BR \-l ", " \-\-long
42
+ Display extended metadata (permissions, ACL indicator, hard links, owner,
43
+ group, size, and timestamp).
44
+ .TP
45
+ .BR \-g ", " \-\-git
46
+ Display Git status badges for entries and show the active Git branch in
47
+ directory headers.
48
+ .TP
49
+ .BR \-t ", " \-\-time
50
+ Sort entries by modification time (newest first). Combine with \fB\-u\fR
51
+ or \fB\-c\fR to sort by access or status change time.
52
+ .TP
53
+ .BR \-u ", " \-\-access
54
+ Display last access time (\fBatime\fR) in long view, and sort by access
55
+ time when combined with \fB\-t\fR.
56
+ .TP
57
+ .BR \-c ", " \-\-ctime
58
+ Display status change time (\fBctime\fR) in long view, and sort by status
59
+ change time when combined with \fB\-t\fR.
60
+ .TP
61
+ .BR \-i ", " \-\-icons
62
+ Display Nerd Font file-type icons next to filenames.
63
+ .TP
64
+ .B \-\-inode
65
+ Display the file serial number (inode).
66
+ .TP
67
+ .BR \-O ", " \-\-octal
68
+ Display file permissions in 4-digit octal format alongside symbolic
69
+ permissions in long view.
70
+ .TP
71
+ .BR \-n ", " \-\-numeric
72
+ Display numeric user IDs (UID) and group IDs (GID) instead of resolved
73
+ names.
74
+ .TP
75
+ .BR \-b ", " \-\-blocks
76
+ Calculate and display file sizes using 512-byte block allocations
77
+ instead of exact byte counts.
78
+ .TP
79
+ .BI "\-J, \-\-json " FILE
80
+ Export the directory listing and metadata as structured JSON to \fIFILE\fR.
81
+ .TP
82
+ .BI "\-e, \-\-ext " EXT
83
+ Filter files by a comma-separated list of file extensions (for example,
84
+ \fBtxt,rex,py\fR). Directories are still shown during traversal.
85
+ .TP
86
+ .BI "\-R, \-\-regex " PATTERN
87
+ Filter files matching the specified regular expression \fIPATTERN\fR.
88
+ .TP
89
+ .BR \-T ", " \-\-tags
90
+ Display z/OS USS file tag state (\fBt\fR, \fBb\fR, \fBm\fR, \fB\-\fR)
91
+ and character codeset (such as \fBIBM-1047\fR or \fBISO8859-1\fR).
92
+ .TP
93
+ .BR \-x ", " \-\-extattr
94
+ Display z/OS extended attributes in \fB[apsl]\fR badge format (APF
95
+ authorized, program controlled, shared address space, shared library).
96
+ .TP
97
+ .B \-\-tree
98
+ Display directories and their contents in a recursive tree hierarchy.
99
+ .TP
100
+ .BI "\-L, \-\-level " DEPTH
101
+ Limit the recursion depth when displaying a directory tree with \fB\-\-tree\fR.
102
+ .TP
103
+ .B \-\-group\-directories\-first
104
+ List directories before regular files across any active sort order.
105
+ .TP
106
+ .BR \-d ", " \-\-directory
107
+ List directories themselves rather than their contents.
108
+ .TP
109
+ .BR \-S ", " \-\-sort\-size
110
+ Sort entries by file size (largest first).
111
+ .TP
112
+ .BR \-r ", " \-\-reverse
113
+ Reverse the active sort order.
114
+ .TP
115
+ .BR \-1 ", " \-\-oneline
116
+ Display one entry per line.
117
+ .TP
118
+ .BR \-D ", " \-\-dsn
119
+ Show underlying zFS dataset names in brackets. To reduce visual clutter,
120
+ the dataset name is displayed on the first entry and whenever an entry
121
+ resides on a different zFS dataset than the preceding line.
122
+ .TP
123
+ .BI "\-\-color " WHEN
124
+ Specify when to use terminal colors: \fBauto\fR (default; colors enabled
125
+ only on TTY output), \fBalways\fR, or \fBnever\fR.
126
+ .TP
127
+ .B \-\-no\-color
128
+ Disable all terminal colors (alias for \fB\-\-color=never\fR).
129
+ .TP
130
+ .BR \-v ", " \-\-version
131
+ Display program version information and exit.
132
+ .TP
133
+ .B \-\-tui
134
+ Launch the interactive full-screen curses Text User Interface.
135
+ .SH TUI HOTKEYS
136
+ When running with \fB\-\-tui\fR, each hotkey is listed below in a
137
+ single-column reference:
138
+ .TP
139
+ .B UP / DOWN
140
+ Move the selection cursor up or down line by line.
141
+ .TP
142
+ .B PgUp / PgDn
143
+ Scroll the directory listing or built-in file viewer by a full page.
144
+ .TP
145
+ .B Home / End
146
+ Jump immediately to the first or last entry in the directory or file viewer.
147
+ .TP
148
+ .B ENTER
149
+ Enter the selected directory or open the selected file in the built-in
150
+ viewer (which supports live ASCII, EBCDIC \fBIBM-1047\fR, and Hex dump
151
+ toggles).
152
+ .TP
153
+ .B ESC
154
+ Navigate up to the parent directory, or close active sub-views and dialogs
155
+ (configured with a fast 25ms escape delay).
156
+ .TP
157
+ .B .
158
+ Toggle display of hidden dotfiles (\fB\-a\fR).
159
+ .TP
160
+ .B d
161
+ Toggle grouping directories before regular files (\fB[Dirs1st]\fR).
162
+ .TP
163
+ .B i
164
+ Open the full-screen File Info inspector showing complete POSIX metadata,
165
+ z/OS file tags, extended attributes, ACL entries, zFS dataset, mount
166
+ point, timestamps, and Git status.
167
+ .TP
168
+ .B e
169
+ Edit the selected file using the configured editor (\fB$EDITOR\fR or
170
+ \fBvi\fR).
171
+ .TP
172
+ .B m
173
+ Create a new directory (\fBmkdir\fR) via a centered popup input dialog.
174
+ .TP
175
+ .B A
176
+ Create a new empty file via a centered popup input dialog.
177
+ .TP
178
+ .B p
179
+ Change file permissions (\fBchmod\fR) using a centered popup dialog
180
+ pre-filled with the file's current 4-digit octal mode.
181
+ .TP
182
+ .B u
183
+ Change the z/OS USS file tag (\fBchtag\fR) using a centered popup menu
184
+ supporting \fBISO8859-1\fR, \fBIBM-1047\fR, \fBUTF-8\fR, custom codesets,
185
+ binary (\fB\-b\fR), mixed (\fB\-m\fR), or tag removal (\fB\-r\fR).
186
+ .TP
187
+ .B x
188
+ Modify z/OS extended attributes (\fBextattr\fR) using an interactive
189
+ checklist modal for \fB+a\fR/\fB\-a\fR, \fB+p\fR/\fB\-p\fR,
190
+ \fB+s\fR/\fB\-s\fR, and \fB+l\fR/\fB\-l\fR.
191
+ .TP
192
+ .B C
193
+ Copy the selected file or directory using a centered, bordered popup
194
+ dialog box pre-filled with the current name.
195
+ .TP
196
+ .B R
197
+ Rename the selected file or directory using a centered, bordered popup
198
+ dialog box pre-filled with the current name.
199
+ .TP
200
+ .B D
201
+ Delete the selected file or directory after confirming in a centered
202
+ popup dialog box.
203
+ .TP
204
+ .B s
205
+ Sort entries by file size (largest first).
206
+ .TP
207
+ .B t
208
+ Sort entries by modification time (\fBmtime\fR).
209
+ .TP
210
+ .B a
211
+ Sort entries by last access time (\fBatime\fR).
212
+ .TP
213
+ .B z
214
+ Sort entries by status change time (\fBctime\fR).
215
+ .TP
216
+ .B n
217
+ Sort entries alphabetically by filename.
218
+ .TP
219
+ .B r
220
+ Reverse the current sort order.
221
+ .TP
222
+ .B f \fRor\fB /
223
+ Filter the current directory listing by substring.
224
+ .TP
225
+ .B c
226
+ Clear the active substring filter in the directory browser, or cycle file
227
+ decoding (\fBAUTO\fR, \fBISO8859-1\fR, \fBIBM-1047\fR, \fBHEX\fR) inside
228
+ the built-in File Viewer.
229
+ .TP
230
+ .B h
231
+ Toggle the side-by-side Hex / ASCII / EBCDIC (\fBIBM-1047\fR) dump view
232
+ inside the built-in File Viewer.
233
+ .TP
234
+ .B v
235
+ Open the interactive TUI Columns Menu modal to dynamically add or remove
236
+ any column (Inode, Octal, Permissions, Links, Owner, Group, Numeric IDs,
237
+ Size, 512B Blocks, Timestamp, Git Status, z/OS File Tags, ExtAttr, Icons,
238
+ and zFS Dataset). If \fBSave Columns\fR is enabled in the \fBo\fR Settings
239
+ menu, pressing \fBs\fR inside the Columns Menu saves the active column
240
+ layout to \fI~/.pyeza.json\fR.
241
+ .TP
242
+ .B I
243
+ Toggle display of Inode numbers.
244
+ .TP
245
+ .B O
246
+ Toggle display of Octal permissions.
247
+ .TP
248
+ .B N
249
+ Toggle display of Numeric UIDs and GIDs.
250
+ .TP
251
+ .B G
252
+ Toggle display of Git status badges.
253
+ .TP
254
+ .B T
255
+ Toggle display of z/OS File Tags (\fBchtag\fR).
256
+ .TP
257
+ .B X
258
+ Toggle display of z/OS Extended Attributes (\fB[apsl]\fR).
259
+ .TP
260
+ .B M
261
+ Toggle display of underlying zFS Dataset names.
262
+ .TP
263
+ .B B
264
+ Toggle display of 512-byte Block sizes.
265
+ .TP
266
+ .B W
267
+ Toggle display of Nerd Font Icons.
268
+ .TP
269
+ .B o
270
+ Open the colorized interactive Settings menu with live color previews,
271
+ popup editor configuration, the \fBSave Columns\fR toggle (default: OFF),
272
+ and save confirmation dialog.
273
+ .TP
274
+ .B F1
275
+ Display the colorized built-in TUI help screen.
276
+ .TP
277
+ .B q
278
+ Quit the current view or exit the TUI.
279
+ .SH ENVIRONMENT
280
+ .TP
281
+ .B NO_COLOR
282
+ When set (to any value), disables all ANSI and curses color output unless
283
+ overridden.
284
+ .TP
285
+ .B LS_COLORS
286
+ Colon-separated list of ANSI color mappings (\fBdi\fR, \fBex\fR, \fBln\fR,
287
+ \fBfi\fR) used to customize CLI colors.
288
+ .TP
289
+ .B EDITOR
290
+ Default text editor command used by the TUI \fBe\fR hotkey if not
291
+ overridden in \fI~/.pyeza.json\fR.
292
+ .SH FILES
293
+ .TP
294
+ .I ~/.pyeza.json
295
+ User preferences and TUI configuration file storing custom color pairs,
296
+ default editor command, and optional saved column preferences (when
297
+ \fBsave_columns\fR is enabled).
298
+ .SH EXIT STATUS
299
+ .TP
300
+ .B 0
301
+ Successful execution.
302
+ .TP
303
+ .B 1
304
+ Command-line argument or regular expression compilation error.
305
+ .TP
306
+ .B 130
307
+ Execution interrupted by the user (\fBCtrl+C\fR / \fBSIGINT\fR).
308
+ .SH EXAMPLES
309
+ .TP
310
+ .B zeza.py
311
+ List files in the current directory in a multi-column grid.
312
+ .TP
313
+ .B zeza.py \-laTgD \-\-group\-directories\-first
314
+ Show all files in long format with directories grouped first, Git status,
315
+ z/OS file tags, and underlying zFS dataset names (shown when the dataset
316
+ changes).
317
+ .TP
318
+ .B zeza.py \-tx \-e rex,py
319
+ List REXX and Python files sorted by newest modification time alongside
320
+ z/OS extended attributes.
321
+ .TP
322
+ .B zeza.py \-\-tree \-L 2
323
+ Display a recursive directory tree limited to 2 levels deep.
324
+ .TP
325
+ .B zeza.py \-\-tui
326
+ Launch the interactive full-screen Text User Interface.
327
+ .SH SEE ALSO
328
+ .BR ls (1),
329
+ .BR chmod (1),
330
+ .BR chtag (1),
331
+ .BR extattr (1),
332
+ .BR df (1),
333
+ .BR getfacl (1)
334
+ .SH AUTHOR
335
+ Developed by Lionel B. Dyck for IBM z/OS UNIX System Services users
336
+ seeking a modern, feature-rich alternative to traditional file listing
337
+ tools.
338
+ .SH COPYRIGHT
339
+ Copyright (C) 2026 Lionel B. Dyck.
340
+ Licensed under the MIT License (SPDX-License-Identifier: MIT).
@@ -0,0 +1,285 @@
1
+ Metadata-Version: 2.4
2
+ Name: zeza
3
+ Version: 1.7.0
4
+ Summary: Modern eza-inspired file listing utility for IBM z/OS USS
5
+ Author-email: "Lionel B. Dyck" <lbdyck@gmail.com>
6
+ License-Expression: MIT
7
+ Project-URL: Homepage, https://github.com/lbdyck/zeza
8
+ Project-URL: Repository, https://github.com/lbdyck/zeza
9
+ Project-URL: Issues, https://github.com/lbdyck/zeza/issues
10
+ Keywords: eza,files,mainframe,terminal,tui,uss,zos
11
+ Classifier: Development Status :: 4 - Beta
12
+ Classifier: Environment :: Console
13
+ Classifier: Operating System :: POSIX
14
+ Classifier: Programming Language :: Python :: 3
15
+ Classifier: Programming Language :: Python :: 3 :: Only
16
+ Classifier: Programming Language :: Python :: 3.8
17
+ Classifier: Programming Language :: Python :: 3.9
18
+ Classifier: Programming Language :: Python :: 3.10
19
+ Classifier: Programming Language :: Python :: 3.11
20
+ Classifier: Programming Language :: Python :: 3.12
21
+ Classifier: Programming Language :: Python :: 3.13
22
+ Classifier: Topic :: System :: Filesystems
23
+ Classifier: Topic :: System :: Shells
24
+ Classifier: Topic :: Utilities
25
+ Requires-Python: >=3.8
26
+ Description-Content-Type: text/markdown
27
+ License-File: LICENSE
28
+ Dynamic: license-file
29
+
30
+ # zeza
31
+
32
+ **A feature-rich Python clone of the `eza` (modern ls) utility specifically tailored for IBM z/OS UNIX System Services (USS).**
33
+
34
+ The command, repository, and default script are named `zeza`.
35
+
36
+ ## Description
37
+
38
+ `zeza` provides robust colorized terminal output, native EBCDIC/ASCII tag support (`chtag`), extended attribute inspection (`extattr`), zFS dataset resolution, and Git status integration.
39
+
40
+ It features both a standard CLI format and an interactive full-screen Text User Interface (TUI) for navigating, sorting, filtering, customizing columns, inspecting, editing, modifying z/OS attributes (`chtag`, `extattr`, `chmod`), and managing files directly on the mainframe.
41
+
42
+ ## Sample Output
43
+
44
+ Running `zeza.py -laTgD` inside a z/OS USS Git repository (note how `-D` only prints the dataset on the first entry or when a file/directory crosses into a different zFS dataset):
45
+
46
+ ```text
47
+ . [ZOWE.ZFS.USERS] on  main:
48
+ Permissions Ln User Group Size Modified Git Tag Info Name [Dataset]
49
+ drwxr-xr-x 39 LBDYCK ZOWEDEV 8.0K Nov 16 16:00 -- .. [ZOWE.ZFS.USERS]
50
+ drwxr-xr-x 7 LBDYCK ZOWEDEV 8.0K Nov 17 08:15 -- .git
51
+ -rw-r--r-- 1 LBDYCK ZOWEDEV 1.0K Nov 16 16:00 -- t UTF-8 LICENSE
52
+ -rw-r--r-- 1 LBDYCK ZOWEDEV 7.4K Nov 18 13:15 M t ISO8859-1 README.md
53
+ -rw-r--r-- 1 LBDYCK ZOWEDEV 6.1K Nov 18 13:15 -- t ISO8859-1 zeza.1
54
+ -rwxr-xr-x 1 LBDYCK ZOWEDEV 64.8K Nov 18 13:15 -- t ISO8859-1 zeza.py
55
+ ```
56
+
57
+ ## Prerequisites
58
+
59
+ * **Base z/OS USS Utilities:** Uses standard built-in z/OS commands (`ls`, `df`, `extattr`, `chtag`, `getfacl`) for metadata, file tagging, ACLs, and zFS mount resolution.
60
+ * **Python 3:** Requires `python3` (such as IBM Open Enterprise SDK for Python or the [zopen community](https://zopen.community/) Python port).
61
+ * **Optional Dependencies:**
62
+ * `git` (via zopen community or Rocket) for `-g` / `--git` repository status and branch display.
63
+ * `zotman` / `man-db` (via zopen community) for viewing and indexing the `ISO8859-1` `zeza.1` manpage natively.
64
+ * A [Nerd Font](https://www.nerdfonts.com/) installed on your local terminal emulator (e.g., Windows Terminal, iTerm2, WezTerm) if using `-i` / `--icons`.
65
+
66
+ ## Installation
67
+
68
+ Install the published package from PyPI:
69
+
70
+ ```bash
71
+ python3 -m pip install zeza
72
+ ```
73
+
74
+ The `zeza` command is provided by the package:
75
+
76
+ ```bash
77
+ zeza --help
78
+ zeza --version
79
+ zeza --tui
80
+ ```
81
+
82
+ To install from a source checkout:
83
+
84
+ ```bash
85
+ python3 -m pip install .
86
+ ```
87
+
88
+ To install directly without pip:
89
+
90
+ ```bash
91
+ python3 install.py --prefix /usr/local
92
+ ```
93
+
94
+ The installer copies the executable to `bin/zeza` and the manpage to
95
+ `share/man/man1/zeza.1` under the prefix. The prefix must be absolute; it
96
+ defaults to `$PREFIX` or `/usr/local`. Installed files are tagged as
97
+ ISO8859-1 when `chtag` is available.
98
+
99
+ ## Usage & Recommended Aliases
100
+
101
+ You can run the installed command or the utility directly from a source checkout:
102
+
103
+ ```bash
104
+ zeza [OPTIONS] [PATHS...]
105
+ python3 zeza.py [OPTIONS] [PATHS...]
106
+ ```
107
+
108
+ For daily use, add `zeza.py` to your `PATH` (or symlink it) and add these convenient shortcuts to your `~/.bashrc` or `~/.zshrc`:
109
+
110
+ ```bash
111
+ # Base command aliases
112
+ alias zeza='/path/to/zeza/zeza.py'
113
+
114
+ # Common workflow shortcuts
115
+ alias ll='zeza -l --group-directories-first' # Long listing with dirs first
116
+ alias la='zeza -la' # Long listing including hidden files
117
+ alias lt='zeza -laT' # Long listing with z/OS file tags
118
+ alias lg='zeza -laTg' # Long listing with file tags and Git status
119
+ alias lzd='zeza -lD' # Show underlying zFS datasets when they change
120
+ alias lx='zeza -lx' # Show z/OS extended attributes (APF, ProgCtl)
121
+ alias ltree='zeza --tree -L 2' # Recursive tree view (2 levels deep)
122
+ alias ztui='zeza --tui' # Launch interactive full-screen TUI
123
+ ```
124
+
125
+ ## Manpage Installation (`zotman` / `man-db`)
126
+
127
+ The included `zeza.1` manpage is maintained in ASCII (`ISO8859-1`) and is designed to work seamlessly with `zotman` (`man-db`) from the [zopen community](https://zopen.community/) project. The direct installer places it in the prefix's `share/man/man1` directory and tags it as ISO8859-1 when `chtag` is available.
128
+
129
+ To preview the manpage directly from the repository directory:
130
+
131
+ ```bash
132
+ zotman ./zeza.1
133
+ ```
134
+
135
+ After installation, run `mandb` from your environment to index the page so
136
+ `man` and `apropos` can locate it:
137
+
138
+ ```bash
139
+ man zeza
140
+ ```
141
+
142
+ Or use `zotman zeza` from the zopen environment.
143
+
144
+ ## CLI Options
145
+
146
+ | Flag | Description |
147
+ | :--- | :--- |
148
+ | `paths` | Files or directories to list (default: current directory). |
149
+ | `-a`, `--all` | Show hidden files (starting with `.`). |
150
+ | `-l`, `--long` | Display extended metadata (perms, links, owner, group, size, time). |
151
+ | `-g`, `--git` | Show Git status badges and the current branch. |
152
+ | `-t`, `--time` | Sort by modification time (newest first). |
153
+ | `-u`, `--access` | Sort/display by last access time (atime). |
154
+ | `-c`, `--ctime` | Sort/display by status change time (ctime). |
155
+ | `-i`, `--icons` | Display Nerd Font icons next to filenames. |
156
+ | `--inode` | Display the file serial number (inode). |
157
+ | `-O`, `--octal` | Display file permissions in octal format. |
158
+ | `-n`, `--numeric` | List numeric UIDs and GIDs instead of names. |
159
+ | `-b`, `--blocks` | Display file sizes in 512-byte blocks instead of bytes. |
160
+ | `-J`, `--json FILE` | Export directory listing data to a specified JSON file. |
161
+ | `-e`, `--ext EXT` | Filter by comma-separated file extensions (e.g., txt,rex,c). |
162
+ | `-R`, `--regex PATTERN` | Filter files matching a regular expression. |
163
+ | `-T`, `--tags` | Display z/OS file tags (state, codeset). |
164
+ | `-x`, `--extattr` | Display z/OS extended attributes (APF, program control, etc.). |
165
+ | `--tree` | Display output in a recursive tree topology. |
166
+ | `-L`, `--level DEPTH` | Limit the recursion depth of the `--tree` display. |
167
+ | `--group-directories-first` | List directories before regular files across any sort order. |
168
+ | `-d`, `--directory` | List directories themselves, not their contents. |
169
+ | `-S`, `--sort-size` | Sort files by size (largest first). |
170
+ | `-r`, `--reverse` | Reverse the current sort order. |
171
+ | `-1`, `--oneline` | Display one entry per line. |
172
+ | `-D`, `--dsn` | Show underlying zFS dataset names (displayed on the first entry and whenever the dataset changes). |
173
+ | `--color WHEN` | When to use terminal colors: `auto`, `always`, `never` (default: `auto`). |
174
+ | `--no-color` | Disable all terminal colors (alias for `--color=never`). Also respects the `NO_COLOR` environment variable. |
175
+ | `--tui` | Launch the interactive fullscreen Text User Interface. |
176
+ | `-v`, `--version` | Show program's version number and exit. |
177
+ | `-h`, `--help` | Show the CLI help message and exit. |
178
+
179
+ ## TUI Hotkeys (Single-Column Reference)
180
+
181
+ * **`UP / DOWN`** : Navigate cursor up or down line by line
182
+ * **`PgUp / PgDn`** : Scroll the directory listing or file viewer by page
183
+ * **`Home / End`** : Jump to the first or last entry in the directory or file viewer
184
+ * **`ENTER`** : Open directory or view file in the built-in pager (supports live ASCII, EBCDIC `IBM-1047`, and Hex dump modes)
185
+ * **`ESC`** : Go up one directory or close active modal/view (25ms fast response)
186
+ * **`.`** : Toggle display of hidden dotfiles (`-a`)
187
+ * **`d`** : Toggle grouping directories before regular files (`[Dirs1st]`)
188
+ * **`i`** : Inspect full file metadata (permissions, ACLs, `chtag`, `extattr`, zFS dataset/mount, timestamps, and Git status)
189
+ * **`e`** : Edit selected file in configured editor (`$EDITOR` or `vi`)
190
+ * **`m`** : Create a new directory (`mkdir` popup dialog)
191
+ * **`A`** : Create a new empty file (popup dialog)
192
+ * **`p`** : Change file permissions (`chmod` octal popup dialog)
193
+ * **`u`** : Change z/OS file tag (`chtag` popup menu for `ISO8859-1`, `IBM-1047`, `UTF-8`, custom codeset, binary, mixed, or untagged)
194
+ * **`x`** : Modify z/OS extended attributes (`extattr` checklist popup for `+a`/`-a`, `+p`/`-p`, `+s`/`-s`, `+l`/`-l`)
195
+ * **`C`** : Copy selected file or directory (opens centered popup input modal)
196
+ * **`R`** : Rename selected file or directory (opens centered popup input modal)
197
+ * **`D`** : Delete selected file or directory (opens centered confirmation popup modal)
198
+ * **`s`** : Sort by file size (largest first)
199
+ * **`t`** : Sort by modification time (`mtime`)
200
+ * **`a`** : Sort by last access time (`atime`)
201
+ * **`z`** : Sort by status change time (`ctime`)
202
+ * **`n`** : Sort by filename
203
+ * **`r`** : Reverse current sort order
204
+ * **`f`** or **`/`** : Filter files in the current directory by substring
205
+ * **`c`** : Clear active filter (or cycle `AUTO` -> `ISO8859-1` -> `IBM-1047` -> `HEX` inside the File Viewer)
206
+ * **`h`** : Toggle side-by-side Hex / ASCII / EBCDIC (`IBM-1047`) dump inside the File Viewer
207
+ * **`v`** : Open interactive **TUI Columns Menu** to add or remove any column (`SPACE`/`ENTER` or shortcut key to toggle, `a` for all, `d` for default, and `s` to save when `Save Columns` is enabled in `o` Settings)
208
+ * **`I`** : Toggle Inode column visibility
209
+ * **`O`** : Toggle Octal permissions column
210
+ * **`N`** : Toggle Numeric UID and GID display
211
+ * **`G`** : Toggle Git status column
212
+ * **`T`** : Toggle z/OS File Tags (`chtag`) column
213
+ * **`X`** : Toggle z/OS Extended Attributes (`[apsl]`) column
214
+ * **`M`** : Toggle zFS Dataset column
215
+ * **`B`** : Toggle 512-byte Blocks size display
216
+ * **`W`** : Toggle Nerd Font Icons display
217
+ * **`o`** : Open colorized Settings menu (configure default editor, toggle `Save Columns` ON/OFF, and preview/save colors)
218
+ * **`F1`** : Show colorized Help tutorial
219
+ * **`q`** : Quit current view or exit TUI
220
+
221
+ ## Configuration & Environment Variables
222
+
223
+ When you save settings inside the TUI (by pressing `o` then `s`), preferences are stored in `~/.pyeza.json` and confirmed via a popup message. By default, `"save_columns"` is set to `false` (`< OFF >`), meaning column changes in the `v` Columns Menu apply only to the current TUI session. If you toggle `Save Columns` to `< ON >` in the `o` Settings menu, pressing `s` inside the `v` Columns Menu will persist your active column layout to `~/.pyeza.json`:
224
+
225
+ ```json
226
+ {
227
+ "editor": "vim",
228
+ "save_columns": false,
229
+ "color_dir": 4,
230
+ "color_exe": 2,
231
+ "color_sym": 6,
232
+ "color_def": 7
233
+ }
234
+ ```
235
+
236
+ *(Color codes follow standard curses/ANSI indices: `0`=Black, `1`=Red, `2`=Green, `3`=Yellow, `4`=Blue, `5`=Magenta, `6`=Cyan, `7`=White).*
237
+
238
+ **Environment Variables:**
239
+
240
+ * `EDITOR`: Default text editor for the TUI `e` hotkey if not overridden in `~/.pyeza.json` (defaults to `vi`).
241
+ * `LS_COLORS`: Standard UNIX color definitions (`di`, `ex`, `ln`, `fi`) are automatically respected in CLI output.
242
+ * `NO_COLOR`: If set in your environment, disables ANSI colors by default (per [no-color.org](https://no-color.org/)).
243
+
244
+ ## z/OS USS Encoding & Polyglot Header Note
245
+
246
+ On z/OS USS, ASCII tools like zopen `vim` and `git` expect source files to be encoded and tagged as `ISO8859-1` or `UTF-8`, whereas the z/OS kernel requires `IBM-1047` (EBCDIC) to parse `#!` shebang lines during direct execution.
247
+
248
+ To allow `zeza.py` to remain in `ISO8859-1` (so you can edit it cleanly in `vim`) while still executing directly from your shell (`./zeza.py`), line 2 of the script uses a POSIX shell/Python polyglot header:
249
+
250
+ ```python
251
+ #!/usr/bin/env python3
252
+ "exec" "python3" "$0" "$@"
253
+ ```
254
+
255
+ If you clone or transfer `zeza.py` to a new z/OS system, ensure its file tag and execute permissions are set properly:
256
+
257
+ ```bash
258
+ chtag -tc ISO8859-1 zeza.py zeza.1 README.md
259
+ chmod 755 zeza.py
260
+ ```
261
+
262
+ ## Change History
263
+
264
+ * **2026-11-18**: Added `Save Columns` option (`save_columns`, default: `OFF`) in the `o` Settings menu to optionally enable `s: Save` in the `v` Columns Menu; fixed line 2 background bleed in TUI popups using `curses.ACS_HLINE`; added interactive TUI modals for `chtag` (`u`), `chmod` (`p`), `extattr` (`x`), `mkdir` (`m`), and new file creation (`A`); added live `ISO8859-1`/`IBM-1047`/Hex dump switching (`c`, `h`) in the TUI file viewer; added `PgUp`/`PgDn`/`Home`/`End`, `.` dotfile toggle, and `d` group-directories-first in TUI; added CLI `--group-directories-first` and `-L`/`--level` tree depth options (v1.7.0).
265
+ * **2026-11-18**: Fixed `C` Copy hotkey collision in TUI (moved `ctime` sort to `z`), reduced `ESC` key delay to 25ms for instant response, added popup confirmation when saving TUI Settings and after Copy/Rename/Delete, updated `-D` to display the zFS dataset only when it changes, and formatted TUI hotkeys in a single-column layout across code, README, and manpage (v1.6.0).
266
+ * **2026-11-18**: Added interactive TUI Columns Menu (`v`) and direct hotkeys (`G`, `T`, `X`, `M`, `B`, `W`, `I`, `O`, `N`) to dynamically add or remove any display column, plus colorized the TUI Settings menu (`o`) with live color previews (v1.5.0).
267
+ * **2026-11-18**: Colorized TUI `F1` help tutorials and added centered, bordered popup modal dialogs for Copy (`C`), Rename (`R`), and Delete (`D`) operations (v1.4.0).
268
+ * **2026-11-17**: Added `zeza.1` manpage documentation with `zotman` (`man-db`) installation and `mandb` indexing instructions.
269
+ * **2026-11-17**: Added `i` hotkey in TUI to display a scrollable full-screen inspector with complete file metadata, ACLs, `chtag` info, `extattr` flags, zFS dataset/mount point, timestamps, and Git status (v1.3.0).
270
+ * **2026-11-17**: Added `-v` / `--version` flag and descriptive `--help` strings for all CLI options.
271
+ * **2026-11-17**: Added `--color` (`auto`, `always`, `never`), `--no-color`, and `NO_COLOR` environment variable support.
272
+ * **2026-11-16**: Added polyglot shell/Python `exec` header for direct execution while maintaining ASCII `vim` compatibility.
273
+ * **2026-11-16**: Streamlined documentation to focus on direct execution and shell aliases.
274
+ * **2026-11-16**: Restored missing `get_git_branch` function.
275
+ * **2026-11-16**: Added standard UNIX ls extensions: `--inode`, `-O` (octal), `-n` (numeric IDs).
276
+ * **2026-11-16**: Added alternate timestamp sorting: `-u` (access time) and `-c` (change time).
277
+ * **2026-11-16**: Implemented dynamic ACL (`+`) detection by parsing background `ls` output.
278
+ * **2026-11-16**: Added TUI runtime toggles for Inode (`I`), Octal (`O`), and Numeric (`N`) views.
279
+ * **2026-11-16**: Added clean KeyboardInterrupt exit to suppress Ctrl+C tracebacks.
280
+ * **2026-11-16**: Fixed `-D` (dataset) display for files and implemented zFS mount point caching.
281
+ * **2026-11-16**: Added dynamic column headers (CLI/TUI) and TUI horizontal separator.
282
+ * **2026-11-16**: Added TUI support for shell globbing (e.g., `zeza --tui z*`).
283
+ * **2026-11-16**: Removed `.` from lists; explicitly pinned `..` to the top of all sorts.
284
+ * **2026-11-15**: Initial TUI integration with colorized views and basic navigation.
285
+ * **2026-11-14**: Initial CLI layout, z/OS specific integrations, and sorting capabilities.
@@ -0,0 +1,8 @@
1
+ zeza.py,sha256=RAOQqBxYRgbpPRYReXTGkT4mmhcaCP890fcXZwzbTOI,95044
2
+ zeza-1.7.0.data/data/share/man/man1/zeza.1,sha256=efMlUc1yPczkNZzpX5kb6NHvLEirVpMtqYN95FQ6KCc,10469
3
+ zeza-1.7.0.dist-info/licenses/LICENSE,sha256=j5ZK7X2hslZAu7BV8T14FpmNs2w8NC7TB5Z83I8SK7Y,1092
4
+ zeza-1.7.0.dist-info/METADATA,sha256=p24TU9rJMOIEFdocSu_-S_CuPkWr8zIgudte30Kym5g,16311
5
+ zeza-1.7.0.dist-info/WHEEL,sha256=mOdXR9C3wMVov7cSY8PY-XCzo3SmmWCHvGQr5csJoao,91
6
+ zeza-1.7.0.dist-info/entry_points.txt,sha256=FZ7RjFQTq8OjaGBbijyCAbbSdzY5lZZWDo_nDSGX1tQ,35
7
+ zeza-1.7.0.dist-info/top_level.txt,sha256=2TRmAjN7EEu_y4OcWZhpl81axVU9UV_QtKvHE8r9Ciw,5
8
+ zeza-1.7.0.dist-info/RECORD,,
@@ -0,0 +1,5 @@
1
+ Wheel-Version: 1.0
2
+ Generator: setuptools (84.2.1)
3
+ Root-Is-Purelib: true
4
+ Tag: py3-none-any
5
+
@@ -0,0 +1,2 @@
1
+ [console_scripts]
2
+ zeza = zeza:main
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 Lionel B. Dyck
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
@@ -0,0 +1 @@
1
+ zeza