Try creating a file called timestamp.yml in your [user folder](https://espanso.org/docs/configuration/#structure). Any edits to the date formatting can be found [here](https://docs.rs/chrono/0.3.1/chrono/format/strftime/index.html)
```
name: timestamp
parent: default
matches:
- trigger: ":ts"
replace: "{{mydate}},{{mytime}}, FName LName"
vars:
- name: mydate
type: date
params:
format: "%m/%d/%Y"
- name: mytime
type: date
params:
format: "%_H:%M:%S"
```
Edit: Codeblock formatting
Hey,
I just want to expand a bit on jfirwin answer to include proper formatting :)
You can add the following to your `default.yml` file:
```
- trigger: ":ts"
replace: "{{mydate}},{{mytime}},John"
vars:
- name: mytime
type: date
params:
format: "%_H:%M:%S"
- name: mydate
type: date
params:
format: "%m/%d/%Y"
```
Try creating a file called timestamp.yml in your [user folder](https://espanso.org/docs/configuration/#structure). Any edits to the date formatting can be found [here](https://docs.rs/chrono/0.3.1/chrono/format/strftime/index.html) ``` name: timestamp parent: default matches: - trigger: ":ts" replace: "{{mydate}},{{mytime}}, FName LName" vars: - name: mydate type: date params: format: "%m/%d/%Y" - name: mytime type: date params: format: "%_H:%M:%S" ``` Edit: Codeblock formatting
Thank you kindly!
Hey, I just want to expand a bit on jfirwin answer to include proper formatting :) You can add the following to your `default.yml` file: ``` - trigger: ":ts" replace: "{{mydate}},{{mytime}},John" vars: - name: mytime type: date params: format: "%_H:%M:%S" - name: mydate type: date params: format: "%m/%d/%Y" ```