hluk / copyq-commands

Useful commands for CopyQ clipboard manager.
339 stars 73 forks source link

Add special 'date_' placeholders #6

Closed alexjulien closed 5 years ago

alexjulien commented 6 years ago

If the placeholder name starts with 'date_', the default text is interpreted according to dateString(default text).

For example, a snippet defined as: ${date_y:yyyy}-${date_m:MM}-${date_d:dd}

Will render as (for example): 2018-07-02

The snippet can have both date_ and normal placeholders.

hluk commented 6 years ago

Cool. Can you also drop the additional description to Global/README.md? The features can be easy to forget if mentioned only in the command.

stefanoful commented 6 years ago

Hello, Is it possible to create a command that creates a new TAB every day with the date, setting the save tab, the TAB today?

PhiLhoSoft commented 6 years ago

@stefanoful Your comment is unrelated to this PR, you should open your own issue for that.