mirror of
https://github.com/kogakure/dotfiles.git
synced 2026-02-03 20:25:30 +00:00
feat(espanso): add more snippets
This commit is contained in:
@@ -33,3 +33,10 @@ matches:
|
|||||||
[^{{id}}]
|
[^{{id}}]
|
||||||
|
|
||||||
[^{{id}}]: {{form.author}} ({{year}}): {{form.title}}, <{{clipboard}}>.
|
[^{{id}}]: {{form.author}} ({{year}}): {{form.title}}, <{{clipboard}}>.
|
||||||
|
|
||||||
|
- trigger: ":y"
|
||||||
|
label: Youtube-Shortlink
|
||||||
|
vars:
|
||||||
|
- name: "clipboard"
|
||||||
|
type: "clipboard"
|
||||||
|
replace: "https://youtu.be/{{clipboard}}"
|
||||||
|
|||||||
@@ -1,4 +1,12 @@
|
|||||||
matches:
|
matches:
|
||||||
|
- trigger: ":std"
|
||||||
|
label: Stunden
|
||||||
|
replace: "Stunden"
|
||||||
|
|
||||||
|
- trigger: ":min"
|
||||||
|
label: Minuten
|
||||||
|
replace: "Minuten"
|
||||||
|
|
||||||
- trigger: ":dat"
|
- trigger: ":dat"
|
||||||
label: Datum (DD.MM.YYYY)
|
label: Datum (DD.MM.YYYY)
|
||||||
replace: "{{current_date}}"
|
replace: "{{current_date}}"
|
||||||
|
|||||||
46
espanso/match/development.yml
Normal file
46
espanso/match/development.yml
Normal 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
|
||||||
|
|
||||||
|
# $|$
|
||||||
25
espanso/match/note-taking.yml
Normal file
25
espanso/match/note-taking.yml
Normal 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
|
||||||
@@ -65,3 +65,9 @@ matches:
|
|||||||
- trigger: ":x:"
|
- trigger: ":x:"
|
||||||
label: Multiplikationszeichen
|
label: Multiplikationszeichen
|
||||||
replace: "×"
|
replace: "×"
|
||||||
|
|
||||||
|
- label: Ascii Border Box
|
||||||
|
replace: |
|
||||||
|
╭─────╮
|
||||||
|
│ $|$ │
|
||||||
|
╰─────╯
|
||||||
|
|||||||
Submodule private/espanso updated: a732148575...75db179d47
Reference in New Issue
Block a user