Sublime Forum

InsertDate plugin

#1

FYI re InsertDate key bindings. Tried to alter crtl+shift+f5 to insert a simple iso date (yyyy-mm-dd), but couldn’t get it to work. This is the key binding default, which I copied to user:

// iso date (YYYY-MM-DD)

{ “keys”: “ctrl+shift+f5”, “ctrl+shift+d”],
“command”: “insert_date”,
“args”: {“format”: “%Y-%m-%d”} },
]

Deleted the “ctrl+shift+d” in “keys”, changing that line to:

{ “keys”: “ctrl+shift+f5”],

The presence of “ctrl+shift+d” apparently caused both bindings to fail. Now ctrl+shift+f5 works.

0 Likes

#2

This means you have to press “ctrl+shift+f5” and then press “ctrl+shift+d” to trigger the binding.

0 Likes

#3

[quote=“jfcherng”]

This means you have to press “ctrl+shift+f5” and then press “ctrl+shift+d” to trigger the binding.[/quote]

Okay, I see. It’s a sequence, not either/or. Not obvious, at least to me. Thanks.

0 Likes