Live data from Hacker News

Espanso – Cross-Platform Text Expander Written in Rust

github.com

11–20 of 40 posts

Re: Espanso – Cross-Platform Text Expander Written in Rust

#11

Anyone know how to change the default :date output to YYYY-MM-DD instead of MM/DD/YYYY on macOS? I’ve tried the following in default.yml and reloading the config, but it’s not working and Claude, Gemini, and myself are stumped :) matches: - trigger: ":date" replace: "{{mydate}}" vars: - name: mydate type: date params: format: "%Y-%m-%d"

Solution: Edit the # Print the current date section in…

  /Users/$USER/Library/Application Support/espanso/match/base.yml
…to read:

  # Print the current date
  - trigger: ":date"
    replace: "{{mydate}}"
    vars:
      - name: mydate
        type: date
        params:
          format: "%Y-%m-%d"

Re: Espanso – Cross-Platform Text Expander Written in Rust

#12

Anyone know how to change the default :date output to YYYY-MM-DD instead of MM/DD/YYYY on macOS? I’ve tried the following in default.yml and reloading the config, but it’s not working and Claude, Gemini, and myself are stumped :) matches: - trigger: ":date" replace: "{{mydate}}" vars: - name: mydate type: date params: format: "%Y-%m-%d"

I shell out to POSIX `date` on Linux and I believe also on Windows:

    - trigger: ";tod"
      replace: "{{mydate}}"
      vars:
      - name: mydate
        type: shell
        params:
          cmd: date --iso-8601

Re: Espanso – Cross-Platform Text Expander Written in Rust

#13
post #7

I found Espanso very useful, but some bugs made me move on to Raycast, BetterTouchTool, etc. for similar functionality. For example, if Espanso config file is on a cloud drive, it doesn't automatically sync or read the file upon reboot. I'm planning to move back to Espanso though, as Raycast is moving in the wrong direction with all the AI non-features.

Can't you just write a startup script that waits 1 minutes after a reboot and then restarts the Espanso service to apply the freshly downloaded config?

Re: Espanso – Cross-Platform Text Expander Written in Rust

#16

Anyone know how to change the default :date output to YYYY-MM-DD instead of MM/DD/YYYY on macOS? I’ve tried the following in default.yml and reloading the config, but it’s not working and Claude, Gemini, and myself are stumped :) matches: - trigger: ":date" replace: "{{mydate}}" vars: - name: mydate type: date params: format: "%Y-%m-%d"

Put it in match/base.yml
Post reply on HN