Commit 24c4406

xxwhirlpool  ·  2026-03-24 19:20:22 -0400 EDT
parent fa4c2c6
mdquote
1 files changed,  +21, -0
+21, -0
......@@ -0,0 +1,21 @@
1+#!/usr/bin/env bash
2+
3+filepick=$(gum file)
4+
5+logic() {
6+ if [[ -f "$filepick" ]]; then
7+ while read -r "ln"; do
8+ if [[ ! "$ln" == "" ]]; then
9+ echo "> $ln"
10+ else
11+ echo ""
12+ fi
13+
14+ done < "$filepick"
15+ else
16+ echo "Usage: mdquote [SELECT FILE]"
17+ exit 1
18+ fi
19+}
20+
21+logic | perl -pe "chomp if eof" | tee >(xclip -selection clipboard)