From 306c3a9d280b82c7aa3d8b8c668365cbd258a20f Mon Sep 17 00:00:00 2001 From: Zhineng Li Date: Thu, 28 May 2026 21:08:18 +0800 Subject: insert current date with Ctrl-; --- karabiner/karabiner.json | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/karabiner/karabiner.json b/karabiner/karabiner.json index 10eaf6c..694ec7c 100644 --- a/karabiner/karabiner.json +++ b/karabiner/karabiner.json @@ -7,6 +7,19 @@ { "complex_modifications": { "rules": [ + { + "description": "insert current date (control+;)", + "manipulators": [ + { + "from": { + "key_code": "semicolon", + "modifiers": { "mandatory": ["control"] } + }, + "to": [{ "shell_command": "printf \"$(date +%F)\" | pbcopy && osascript -e 'tell application \"System Events\" to keystroke \"v\" using command down'" }], + "type": "basic" + } + ] + }, { "description": "Find my Kitty (left_option+space)", "manipulators": [ -- cgit v1.2.3