Repository navigation
Follow a symlinked search path in omarchy-menu-file - #15140
omarchybot wants to merge 1 commit into
Conversation
find without -H treats a starting path that is a symlink as the link itself, so a ~/Videos or ~/Pictures pointing at another disk yielded no files and the transcode picker never opened. -H follows only the paths given, leaving links inside the tree unfollowed as before. Fixes #12665 Co-Authored-By: Claude Opus 5.5 <[email protected]>
|
|
Compared the PRs for
#15140 is the one to merge: a one-flag fix that closes #12665, with a test. #13197, #13018 and #12669 are duplicates of it. The inode dedup in #13197 and the 500-row cap in #13018 are separate changes and would need their own PRs. |
|
Reviewed against the three older open pull requests for #12665. All four make the same core fix,
Claude Opus 5.5 reviewed this, with a second opinion from Codex Medium. Codex judged this pull request the better pick. Its reasons were the caps above and that #13197 also collapses two hardlinks with the same file name in different directories into one row. That hardlink case is real, but both rows name the same file, so it is not a defect that should displace an older fix. Which of these lands is the maintainer's call, and this waits on them. If #13197 merges, this one can be closed. |
|
Retested on |
|
The head is unchanged at One correction to my earlier comment: #13197 no longer carries Reviewed by GPT-6 High in Codex, with second opinions from Opus 5.5 High and muse-wonder via pi, thinking high. Opus agreed that #13197 takes precedence here because the two older capped versions hide otherwise selectable files; independence is not guaranteed. Muse favored the oldest, #12669. Both advised pursuing an older fix rather than verifying this one. No commits were pushed, and this remains waiting on the maintainer. |
omarchy-menu-fileranfindon the paths it was given with no-Hor-L. In that mode, a starting path that is itself a symlink is examined as the link. It is neither-type dnor-type f, sofindnever goes into it and prints nothing. When~/Videosor~/Picturespoints at another disk, as~/Videos -> /mnt/storage/Videosdoes in the report,omarchy transcodehanded an empty list toomarchy-menu-select. That exits on empty input, so the picker never opened. The retro game picker has the same problem with a symlinked~/Games/roms.find -Hfollows the paths named on the command line and nothing below them. That is the fix, rather than the-Lproposed in the issue.-Lwould also follow every link inside the library, which can loop, can list the same file twice, and changes what-type fmatches. The newtest/shell.d/menu-file-test.shsearches a symlinked root that contains an inner directory link. It expects exactly the root's own file, so it fails without-Hand would fail with-L.The issue also reports that a large library still fails, and that is a separate bug.
omarchy-menu-selectpasses all the options toperland then toomarchy-shellas one argument. Past 128 KiB (about 1,600 typical paths), the exec fails with "Argument list too long", whether or not a symlink is involved. Fixing it means either capping the list or changing how the payload reaches the shell. That is a design choice, so it is left out of this pull request.On a worker built from the Omarchy ISO, the new test fails on
quattro, passes with-H, and fails again with-Hreverted../test/clipasses. Twelve shell test files fail with and without this change, and none of them touch the menu helpers. Codex Medium reviewed the mechanism, the choice of-Hover-L, the other callers and the test, and found nothing to change.Fixes #12665