✨ Setting up more espanso shortcuts for blog
This commit is contained in:
parent
327f33b61a
commit
5185fd223b
2 changed files with 26 additions and 4 deletions
|
|
@ -68,9 +68,6 @@ matches:
|
|||
params:
|
||||
cmd: "uname -r"
|
||||
|
||||
- trigger: ";lorem"
|
||||
replace: "Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum."
|
||||
|
||||
- trigger: ";cmm"
|
||||
replace: "/* *********************\n\n*********************/"
|
||||
|
||||
|
|
@ -162,7 +159,7 @@ matches:
|
|||
replace: '<span class=""> </span>'
|
||||
|
||||
- trigger: ";<p"
|
||||
replace: '<p> </p>'
|
||||
replace: "<p> </p>"
|
||||
|
||||
- trigger: ";<a"
|
||||
replace: '<a href=""> </a>'
|
||||
|
|
@ -244,6 +241,24 @@ matches:
|
|||
params:
|
||||
cmd: "~/scripts/pug5 ; echo ''"
|
||||
|
||||
# returns default figure and img tags for pug blog
|
||||
- trigger: ";fig"
|
||||
replace: "{{output}}"
|
||||
vars:
|
||||
- name: output
|
||||
type: shell
|
||||
params:
|
||||
cmd: "~/scripts/fig ; echo ''"
|
||||
|
||||
# returns single lorem ipsum text paragraph
|
||||
- trigger: ";lorem"
|
||||
replace: "{{output}}"
|
||||
vars:
|
||||
- name: output
|
||||
type: shell
|
||||
params:
|
||||
cmd: "~/scripts/lorem ; echo ''"
|
||||
|
||||
# returns current time in US format
|
||||
- trigger: ";btime"
|
||||
replace: "{{output}}"
|
||||
|
|
|
|||
7
scripts/fig
Executable file
7
scripts/fig
Executable file
|
|
@ -0,0 +1,7 @@
|
|||
#!/usr/bin/env bash
|
||||
# Utilize in conjunction with espanso, call ;fig
|
||||
cat <<EOM
|
||||
figure
|
||||
img.img-image(src="../assets/images/screenshots/default.webp" alt="" title="" cite="" loading="lazy")
|
||||
figcaption An Screenshot Image Caption
|
||||
EOM
|
||||
Loading…
Add table
Add a link
Reference in a new issue