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

@@ -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
# $|$