mirror of
https://github.com/nmasur/dotfiles
synced 2026-11-30 05:39:14 +00:00
glow markdown previews
This commit is contained in:
1 parent
7a9e9b75c0
commit
06a455fcf4
3 files changed
+6
-2
No files matched your search
@@ -20,7 +20,7 @@ selected=$(gh repo list "$organization" \
|
||||
--header-lines=1 \
|
||||
--layout=reverse \
|
||||
--bind "ctrl-o:execute:gh repo view -w ${organization}/{1}" \
|
||||
--preview "gh repo view ${organization}/{1} | bat -f -l=md --style=grid" \
|
||||
--preview "GH_FORCE_TTY=49% gh repo view ${organization}/{1} | glow -" \
|
||||
--preview-window up
|
||||
)
|
||||
[ -n "${selected}" ] && gh repo clone "${organization}/$(echo "${selected}" | awk '{print $1}')"
|
||||
Reference in new issue
Block a user