Built a small tool to add a per-file comment column to era #1845
crufi
started this conversation in
Development
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Built a small python thing on top of eza:
lsc, a lister tool supporting a short comment next to each file, in an aligned column to the right of the names. Non-lsc-specific flags are passed thru toeza, and comments are dropped ifezagenerates multiple columns of output.lsc runs eza once with
--onelineand annotates the result, so coloring, icons, and--classifyindicators are preserved. The layout adapts to terminal width and clips with an ellipsis so no line ever wraps, and when nothing in a listing has a comment the output is byte-identical to plain eza.Comments come from one of two places, an in-file
# comment:(or// comment:etc.) magic line near the top of a text file, or a per-directory JSON manifest for everything else (including binaries). Both are ordinary file content, so they survive iCloud sync and rsync, which is why I went this way instead of xattrs (iCloud strips non-Apple xattrs).It's a single Python script, no dependencies, MIT licensed. Would love any feedback or interest.
Repo: https://github.com/crufi/eza-comments
Install (macOS):
brew install crufi/tap/lscAll reactions