summaryrefslogtreecommitdiff
path: root/home/home-minimal.nix
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--home/home-minimal.nix8
1 files changed, 8 insertions, 0 deletions
diff --git a/home/home-minimal.nix b/home/home-minimal.nix
index f28240a..dc39d9d 100644
--- a/home/home-minimal.nix
+++ b/home/home-minimal.nix
@@ -57,6 +57,14 @@
fish_greeting = {
body = "";
};
+ mds.body = ''
+ if [ "$argv[1]" = "" ]
+ set pattern ".md"
+ else
+ set pattern $argv[1]
+ end
+ fd $pattern | fzf --preview="glow {} --style=dark" --bind ctrl-j:preview-down,ctrl-k:preview-up,ctrl-alt-j:preview-page-down,ctrl-alt-k:preview-page-up
+ '';
};
};