Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # Espanso capitalise new sentence after period, question or exclamation mark
- - regex: (?P<before>\w[.?!])\s(?P<firstchar>[a-z])(?P<therest>\w*\W)
- replace: "{{before}} {{capital}}{{therest}}"
- vars:
- - name: capital
- type: shell
- params:
- cmd: "echo \"${ESPANSO_FIRSTCHAR^}\""
- shell: bash # or wsl for Windows (if installed)
- # or
- - regex: (?P<before>\w[.?!])\s(?P<firstchar>[a-z])(?P<therest>\w*\W)
- replace: "{{before}} {{capital}}{{therest}}"
- vars:
- - name: capital
- type: shell
- params:
- cmd: echo {{firstchar}} | tr '[:lower:]' '[:upper:]'
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement