feat(shell): add poke, _fish_mkdir_p utility, and update fish-deps for ov/yay #28
Reference in New Issue
Block a user
Delete Branch "feat/poke-and-fish-deps-ov-yay"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
poke: newtouchwrapper that auto-creates missing parent directories; shows a tree of newly-created dirs (dimmed existing anchor + cyan new entries,~substituted for$HOME); supports multiple file arguments_fish_mkdir_p: new reusable utility (mkdir -pwith configurable output); three modes:--path(one-linerCreated directory: ~/path/),--tree(dimmed anchor + cyan tree of new dirs),--silent(no output); used bypoke,mkdir, andmkcdmkdir: interactive mode now reports created directories via_fish_mkdir_p --path; falls back silently tocommand mkdir -pwhen flags like-m 755are presentmkcd: now shows a tree of newly-created dirs via_fish_mkdir_p --treeby default; new-s/--silentflag suppresses the tree (mkcd's own status line still prints)config.fish: consolidate CachyOS override block —copyfolded into the existingerase+sourceloop alongsidels/lt/cleanupfish-deps: replacemostwithov(cargo crate + AUR package); addyayas arecmanaged dependency withyay-buildinstall/update support (paru -S yayor AURmakepkgfallback)README: documentpoke, updatemkdirandmkcdentries to reflect new output behaviourManual Verification
ls,lt,cleanup, andcopyall work correctly (CachyOS override block)poke ~/poke-test/a/b/c/file.txt— confirm tree output with dimmed/or~/anchor and cyan new dirs; file exists afterpoke ~/poke-test/a/b/c/file.txtagain — confirm silent (no tree, file touched)poke ~/poke-test/x/f1 ~/poke-test/y/f2— confirm two separate trees, both files createdpoke(no args) — confirm red error to stderrmkdir ~/mkdir-test/a/b/c(interactive) — confirmCreated directory: ~/mkdir-test/a/b/c/one-linermkdir -m 755 ~/mkdir-test/flagged— confirm no verbose output, dir created normallymkcd ~/mkcd-test/a/b— confirm tree output then✔ Created and enteredmkcd -s ~/mkcd-test/c/d— confirm no tree, only✔ Created and enteredmkcd ~/mkcd-test/a/b(existing) — confirm→ already exists — entered, no treefish-deps status— confirmovappears,mostdoes not,yayappearsrm -rf ~/poke-test ~/mkdir-test ~/mkcd-testfeat(shell): add poke function and update fish-deps for ov and yayto feat(shell): add poke, _fish_mkdir_p utility, and update fish-deps for ov/yay290eab8802to13b9ba5828