Repository navigation
Feat/configurable columns refactor - #3
Merged
Merged
Conversation
added 13 commits
August 7, 2026 14:14
…/transform/stretch
…eadings - ui.py: column loop now zips column_headers + column_widths + column_stretches - main_window.py: _sort_treeview heading update uses column_headers - Update test fixtures to set column_headers/column_stretches alongside column_names/column_widths
- tests/test_config_exports.py: verify ColumnConfiguration/AppConfig field exports - docs/superpowers/columns-refactoring-guide.md: migration guide for expression/group -> match/transform/stretch/name
…rmat
- template.py: columns section uses match/transform/stretch/name;
escape {group:N} as {{group:N}} for str.format() compatibility
- column-library.md: all 30+ column definitions migrated from
expression/group to match/transform with name/stretch
- columns-guide.en.md + .fr.md: field reference table and examples
updated to new schema
- README.md: column example updated to new format
re.Pattern.expand() uses \\g<N> or \\1 syntax, not {group:N}.
Add a regex substitution to translate {group:N} -> \\g<N> before
calling expand(), so the template/docs syntax works correctly.
Backward compatible with \\g<N> and \\1 syntax.
Add 5 tests covering {group:0}, {group:1}, multi-group, and
backward compat with \\g<N> and \\1.
The _reset_treeview method was using column_names (section names) for heading text instead of column_headers (friendly names from the name: field). This caused the GUI to display section names instead of the user-friendly names configured via the name: field.
Add Transform Backreference Syntax section to both EN and FR
columns guides, documenting {group:N}, \\g<N>, and \\N syntaxes.
Document all 6 built-in keywords (version, date, git_commit, type, filename, extension) with regex patterns and usage examples in both EN and FR columns guides, plus column-library.md.
5 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Merge branch 'feat/configurable-columns-refactor'
Enhance configurable columns with built-in macros, friendly headers, and stretch control
What's New for Users
Built-in column macros — Instead of writing regex patterns, simply use
keywords like
match: version,match: date,match: git_commit,match: type,match: filename, ormatch: extensionto auto-extractcommon metadata from filenames.
Friendly column headers — Give your columns custom display names with
the
name:field. The internal column key stays the same, but the GUIshows your friendly label in the column header.
Column stretch control — Control how columns resize with the
stretch: true/falsefield. Make the File column expand to fill space,or keep version/date columns at a fixed width.
Simplified transform syntax — Use
{group:1}instead of\g<1>forbackreferences in the
transformfield. Both syntaxes are supported.Example
Migration
Existing configs using
expression/groupare automatically migrated.See
docs/superpowers/columns-refactoring-guide.mdfor details.Verification