Skip to content

Commit

Permalink
better shortcuts
Browse files Browse the repository at this point in the history
  • Loading branch information
savente93 committed Apr 18, 2024
1 parent 5c36d8a commit f31cf52
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 35 deletions.
46 changes: 15 additions & 31 deletions espanso/match/base.yml
Original file line number Diff line number Diff line change
@@ -1,63 +1,47 @@
matches:
- trigger: ":eur"
- trigger: ";eur"
replace:
- trigger: ":shrug"
- trigger: ";shrug"
replace: ¯\_(ツ)_/¯
- trigger: ":flipt"
- trigger: ";flipt"
replace: (╯°□°)╯︵ ┻━┻
- trigger: ":date"
- trigger: ";date"
replace: "{{mydate}}"
vars:
- name: mydate
type: date
params:
format: "%d/%m/%Y"
- trigger: ":isodate"
- trigger: ";isodate"
replace: "{{isodate}}"
vars:
- name: isodate
type: date
params:
format: "%Y-%m-%d"
- trigger: ":eyes"
- trigger: ";eyes"
replace: 👀
- trigger: ":music"
- trigger: ";music"
replace: 🎵
- trigger: ":small"
- trigger: ";small"
replace: 🤏
- trigger: ":think"
- trigger: ";think"
replace: 🤔
- trigger: ":imp"
- trigger: ";imp"
replace: 😈
- trigger: ":sparkle"
- trigger: ";sparkle"
replace:
- trigger: ":skull"
- trigger: ";skull"
replace: 💀
- trigger: ":sweat"
- trigger: ";sweat"
replace: 😅
- trigger: ":scream"
- trigger: ";scream"
replace: 😱
- trigger: "deg C"
replace: "°C"
- trigger: ":ez"
replace: "hx ~/.zshrc && source ~/.zshrc"
- trigger: "git unwip"
replace: "git reset HEAD^"
- trigger: "helene"
replace: "Hélène"
- trigger: "Helene"
replace: "Hélène"
- trigger: :hmt
- trigger: ;hmt
replace: HydroMT
- trigger: "|pparam"
replace: |
@pytest.mark.parametrize(
"test_case",
[
{
"name": "aws_data",
"data": ,
},
],
ids=lambda x: x["name"],
)
11 changes: 7 additions & 4 deletions fish/config.fish
Original file line number Diff line number Diff line change
Expand Up @@ -25,16 +25,19 @@ if status is-interactive
abbr --add gmm git merge main
abbr --add gco git checkout
abbr --add glo git log --graph --decorate --pretty=oneline --abbrev-commit
abbr --add gu gitui


# fish keeps trying to steal my quotes >:(
abbr --add gbr -- git branch --format='\'%(HEAD) %(color:yellow)%(refname:short)%(color:reset) - %(contents:subject) %(color:blue)(%(committerdate:short)) [%(authorname)]\''

abbr --add gbd git branch -D
abbr --add gfp git fetch --all --prune

# work
abbr --add pt pixi run -e full-py39 test-lf
abbr --add ptt pixi run -e full-py39 test
abbr --add pe pixi run -e full-py39 hx .
abbr --add pi pixi run -e full-py39 ipython
abbr --add pt pixi run -e default test-lf
abbr --add ptt pixi run -e default test
abbr --add pe pixi run -e default helix .
abbr --add pi pixi run -e default ipython

end

0 comments on commit f31cf52

Please sign in to comment.