feat(espanso): add more snippets

This commit is contained in:
Stefan Imhoff
2023-02-03 15:50:36 +01:00
parent 32e567fece
commit 14d4179a49
6 changed files with 93 additions and 1 deletions

View File

@@ -33,3 +33,10 @@ matches:
[^{{id}}]
[^{{id}}]: {{form.author}} ({{year}}): {{form.title}}, <{{clipboard}}>.
- trigger: ":y"
label: Youtube-Shortlink
vars:
- name: "clipboard"
type: "clipboard"
replace: "https://youtu.be/{{clipboard}}"

View File

@@ -1,4 +1,12 @@
matches:
- trigger: ":std"
label: Stunden
replace: "Stunden"
- trigger: ":min"
label: Minuten
replace: "Minuten"
- trigger: ":dat"
label: Datum (DD.MM.YYYY)
replace: "{{current_date}}"

View File

@@ -0,0 +1,46 @@
matches:
- label: HTML nofollow noopener noreferrer blank
replace: 'rel="nofollow noopener noreferrer external" target="_blank"'
- label: Dummy Image
replace: "https://dummyimage.com/800x600/333333/7d7d7d"
- label: ESLint (global install)
replace: "npm install -g eslint babel-eslint eslint-plugin-babel eslint-plugin-chai eslint-plugin-chai-expect eslint-plugin-flowtype eslint-plugin-html eslint-plugin-jsdoc eslint-plugin-json eslint-plugin-jsx eslint-plugin-jsx-extras eslint-plugin-lodash eslint-plugin-node eslint-plugin-react eslint-plugin-prettier eslint-config-prettier eslint-plugin-import eslint-config-semistandard eslint-config-standard eslint-plugin-promise eslint-plugin-standard"
- label: Yarn Deduplicate
replace: "npx yarn-deduplicate --list yarn.lock && yarn"
- label: "BrowserSync: Monitor server and files"
replace: 'browser-sync start --proxy localhost:3000 --files "app/**" --directory'
- label: "BrowserSync: Server (current directory)"
replace: "browser-sync start --server --directory"
- label: "BrowserSync: Monitor proxy and files"
replace: 'browser-sync start --proxy localhost:3000 --files "app/**"'
- label: .gitconfig (Backup)
replace: "cp ~/.gitconfig.local ~/Dropbox/Software/Dotfiles/gitconfig.local"
- label: .gitconfig (Restore)
replace: "cp ~/Dropbox/Software/Dotfiles/gitconfig.local ~/.gitconfig.local"
- label: .localrc Home (Backup)
replace: "cp ~/.localrc ~/Dropbox/Software/Dotfiles/localrc-home"
- label: .localrc Home (Restore)
replace: "cp ~/Dropbox/Software/Dotfiles/localrc-home ~/.localrc"
- label: .localrc Work (Backup)
replace: "cp ~/.localrc ~/Dropbox/Software/Dotfiles/localrc-work"
- label: .localrc Work (Restore)
replace: "cp ~/Dropbox/Software/Dotfiles/localrc-work ~/.localrc"
- trigger: ":proposal:"
label: "Shell: Leeres Script"
replace: |
#!/bin/bash
# $|$

View File

@@ -0,0 +1,25 @@
matches:
- trigger: ":oa"
label: Obsidian Aliases
replace: |
---
aliases: [$|$]
---
- trigger: ":id"
label: Zettel ID (Timestamp)
vars:
- name: current_time
type: date
params:
format: "%Y%m%d%H%M"
replace: "{{current_time}}"
- trigger: ":z"
label: Zettelkasten-Template
replace: |
$|$
## Verwandte Links
Tags: #BOAT

View File

@@ -65,3 +65,9 @@ matches:
- trigger: ":x:"
label: Multiplikationszeichen
replace: "×"
- label: Ascii Border Box
replace: |
╭─────╮
│ $|$ │
╰─────╯