Changes

Jump to: navigation, search

Labs/Ubiquity/Ubiquity 0.5 Author Tutorial

8 bytes removed, 00:10, 30 August 2009
h1 => h2
= The Date Command: The Second Command =
== Setting the Selection ==
I often forget what day it is. That may be because I need to go outside more often, but, like any programmer, I generally solve my problem's symptoms with technology rather then addressing the root cause. My solution is to create a command that inserts the date at the location of the cursor.
CmdUtils.CreateCommand({
names: ["insert date"],
execute: functiondate_execute() { var date = CmdUtils.setSelection(new Date(); CmdUtils.setSelection( date.toLocaleDateString() );
}
})
73
edits

Navigation menu