-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update keymaps and docs on the panel addition
- Loading branch information
1 parent
24a0cc5
commit c002d2b
Showing
5 changed files
with
79 additions
and
27 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,45 +1,56 @@ | ||
[ | ||
// Insert datetime using default format text | ||
{ "keys": ["f5"], | ||
{ "keys": ["super+f5", "super+f5"], | ||
"command": "insert_date" }, | ||
|
||
// Insert datetime using the specified format | ||
// Locale date | ||
{ "keys": ["super+f5", "super+d"], | ||
"command": "insert_date", | ||
"args": {"format": "%x"} }, | ||
|
||
// iso date (YYYY-MM-DD) | ||
{ "keys": ["super+shift+f5", "super+shift+d"], | ||
"command": "insert_date", | ||
"args": {"format": "%Y-%m-%d"} }, | ||
|
||
// Locale time | ||
{ "keys": ["super+f5", "super+t"], | ||
"command": "insert_date", | ||
"args": {"format": "%X"} }, | ||
|
||
// iso time (HH:MM:SS) | ||
{ "keys": ["super+shift+f5", "super+shift+t"], | ||
"command": "insert_date", | ||
"args": {"format": "%H:%M:%S"} }, | ||
|
||
// Locale date and time with timezone name (not for 'local' timezone) | ||
{ "keys": ["super+f5", "super+z"], | ||
"command": "insert_date", | ||
"args": {"format": "%c %Z"} }, | ||
|
||
// Full iso date and time | ||
{ "keys": ["super+f5", "super+i"], | ||
"command": "insert_date", | ||
"args": {"format": "iso"} }, | ||
|
||
// Locale date and time converted to UTC (with timezone name) | ||
{ "keys": ["super+f5", "super+u"], | ||
"command": "insert_date", | ||
"args": {"format": "%c %Z", "tz_out": "UTC"} }, | ||
|
||
// Unix time (seconds since the epoch, in UTC) | ||
{ "keys": ["super+f5", "super+x"], | ||
"command": "insert_date", | ||
"args": {"format": "unix"} }, | ||
|
||
// Prompt for user input, "format" would behave as default text, | ||
// Prompt for user input ("format" arg would behave as default text) | ||
// and insert the datetime using that format string | ||
{ "keys": ["alt+f5"], | ||
"command": "insert_date", | ||
"args": {"prompt": true} } | ||
"args": {"prompt": true} }, | ||
|
||
// Show the panel with pre-defined options from settings | ||
{ "keys": ["f5"], | ||
"command": "insert_date_panel" } | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,45 +1,56 @@ | ||
[ | ||
// Insert datetime using default format text | ||
{ "keys": ["f5"], | ||
{ "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" would behave as default text, | ||
// Prompt for user input ("format" arg would behave as default text) | ||
// and insert the datetime using that format string | ||
{ "keys": ["alt+f5"], | ||
"command": "insert_date", | ||
"args": {"prompt": true} } | ||
"args": {"prompt": true} }, | ||
|
||
// Show the panel with pre-defined options from settings | ||
{ "keys": ["f5"], | ||
"command": "insert_date_panel" } | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters