Skip to content

Commit

Permalink
* Fixed issue #144: Create more live properties from date and time.
Browse files Browse the repository at this point in the history
  • Loading branch information
end2endzone committed Jan 26, 2024
1 parent 81cb438 commit 95595c8
Show file tree
Hide file tree
Showing 5 changed files with 263 additions and 18 deletions.
1 change: 1 addition & 0 deletions CHANGES
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ Changes for 0.9.0
* Fixed issue #138: Restrict the context menu to appear only when the Shift key is held down.
* Fixed issue #139: Wait for an <exec> action to complete before executing the next action.
* Fixed issue #141: Separator visibility options.
* Fixed issue #144: Create more live properties from date and time.
* Fixed issue #147: Allow property action attributes to not fail (continue to next action) if unresolved.


Expand Down
30 changes: 22 additions & 8 deletions UserManual.md
Original file line number Diff line number Diff line change
Expand Up @@ -1412,15 +1412,29 @@ The application provides _live_ properties which are defined automatically by th

The following table defines the list of live properties and their utility:

| Property | Description |
|----------------|---------------------------------------------------------------------------------------------------------------------|
| clipboard | Matches the content of [Windows Clipboard](https://lifehacker.com/how-to-copy-cut-and-paste-for-beginners-5801525). |
| keyboard.ctrl | Matches the down state of keyboard CTRL modififer. The value is set to `system.true` or `system.false` properties. |
| keyboard.alt | Matches the down state of keyboard ALT modififer. The value is set to `system.true` or `system.false` properties. |
| keyboard.shift | Matches the down state of keyboard SHIFT modififer. The value is set to `system.true` or `system.false` properties. |

These properties are encoded in utf-8.
| Property | Description |
|-----------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| clipboard | Matches the content of [Windows Clipboard](https://lifehacker.com/how-to-copy-cut-and-paste-for-beginners-5801525). |
| keyboard.ctrl | Matches the down state of keyboard CTRL modififer. The value is set to `system.true` or `system.false` properties. |
| keyboard.alt | Matches the down state of keyboard ALT modififer. The value is set to `system.true` or `system.false` properties. |
| keyboard.shift | Matches the down state of keyboard SHIFT modififer. The value is set to `system.true` or `system.false` properties. |
| date.year | Matches the current year. For example `2023`. (4 digits) |
| date.month | Matches the current month of the year, from `01` to `12`. (2 digits) |
| date.day | Matches the current day of the month, from `01` to `31`. (2 digits) |
| date.full | Matches the current date in `yyyy-mm-dd` format. For example `2023-12-31`. |
| date.short | Matches the current date in `yyyymmdd` format. For example `20231231`. |
| time.hours | Matches the current hour of the day, from `00` to `23`. (2 digits) |
| time.minutes | Matches the current minutes of the hour, from `00` to `59`. (2 digits) |
| time.seconds | Matches the current seconds of the minute, from `00` to `59`. (2 digits) |
| time.full | Matches the current time in `00-00-00` format. For example `23-59-59`. |
| time.short | Matches the current date in `hhmmss` format. For example `235959`. |
| datetime.full | Matches the current date and time in `yyyy-mm-dd--00-00-00` format. For example `2023-12-31--23-59-59`. |
| datetime.short | Matches the current date and time in `yyyymmddhhmmss` format. For example `20231231235959` |
| datetime.custom | Matches the current date and time in custom format defined by property `datetime.format`. Available tokens are `yyyy`, `mm`, `dd`, `HH`, `MM`, `SS` where the custom format for `datetime.full` property is `yyyy-mm-dd--HH-MM-SS`.<br><br>For example set property `datetime.format` to value `Today is ${months.names.${date.month}} ddth of yyyy. Current time is HH hours, MM minutes and SS seconds` and properties `months.names.01` to `months.names.12` to the name of each month. If you expand property `datetime.custom`, you get `Today is December 31th of 2023. Current time is 23 hours, 59 minutes and 59 seconds`. |

**Note:**
* These properties are encoded in utf-8.
* Date and time live properties are evaluated one by one. If you force multiple properties to expand in a string, they will not be timed synchronized.


## Selection-based properties ##
Expand Down
Loading

0 comments on commit 95595c8

Please sign in to comment.