config(fish): add fish completions for cli tools

This commit is contained in:
Prad Nukala committed 2026-07-16 16:58:06 -04:00
1 parent b1fb6ee6fb
commit 7db95c2076
48 files changed
+2241

No files matched your search

+10
View File
@@ -0,0 +1,10 @@
# ~/.config/fish/functions/mdv.fish
function mdp -d "Interactive Markdown selector and previewer"
# Find markdown files up to 3 directories deep
set -l file (fd --type f --extension md --max-depth 3 | fzf --preview 'mdfried {}' --preview-window=right:60%:wrap)
# Execute mdfried on the selected file if one was chosen
if test -n "$file"
mdfried "$file"
end
end