-
Notifications
You must be signed in to change notification settings - Fork 18
/
Default (Linux).sublime-keymap
56 lines (46 loc) · 1.6 KB
/
Default (Linux).sublime-keymap
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
[
// Insert datetime using default format text
{ "keys": ["ctrl+f5", "ctrl+f5"],
"command": "insert_date" },
// Insert datetime using the specified format
// Locale date
{ "keys": ["ctrl+f5", "ctrl+d"],
"command": "insert_date",
"args": {"format": "%x"} },
// iso date (YYYY-MM-DD)
{ "keys": ["ctrl+shift+f5", "ctrl+shift+d"],
"command": "insert_date",
"args": {"format": "%Y-%m-%d"} },
// Locale time
{ "keys": ["ctrl+f5", "ctrl+t"],
"command": "insert_date",
"args": {"format": "%X"} },
// iso time (HH:MM:SS)
{ "keys": ["ctrl+shift+f5", "ctrl+shift+t"],
"command": "insert_date",
"args": {"format": "%H:%M:%S"} },
// Locale date and time with timezone name (not for 'local' timezone)
{ "keys": ["ctrl+f5", "ctrl+z"],
"command": "insert_date",
"args": {"format": "%c %Z"} },
// Full iso date and time
{ "keys": ["ctrl+f5", "ctrl+i"],
"command": "insert_date",
"args": {"format": "iso"} },
// Locale date and time converted to UTC (with timezone name)
{ "keys": ["ctrl+f5", "ctrl+u"],
"command": "insert_date",
"args": {"format": "%c %Z", "tz_out": "UTC"} },
// Unix time (seconds since the epoch, in UTC)
{ "keys": ["ctrl+f5", "ctrl+x"],
"command": "insert_date",
"args": {"format": "unix"} },
// Prompt for user input ("format" behaves as default text)
// and output timezone, if none provided,
// and then insert the datetime with these parameters
{ "keys": ["alt+f5"],
"command": "insert_date_prompt" },
// Show the panel with pre-defined options from settings
{ "keys": ["f5"],
"command": "insert_date_panel" }
]