Jump to content

Recommended Posts

Thx but i want to use it as a snippets at alfred 3

 

 

I don't think you can do calculations within a snippet, but you could use that workflow to calculate the date you want, and then create a snippet where the date is filled in using the {clipboard} placeholder. So your workflow could be...

 

Use workflow above to trigger Alfred and calculate your date. Press enter to copy to clipboard. Then just type your shortcut and have it fill in the snippet with the date from the clipboard. This would be a better solution if you wanted the date embedded within a larger string.

 

If you want to just paste in a date, you could use the date calculation workflow, set the format to the format you want to use, and then modify the workflow so that when the date is copied to the clipboard it's automatically pasted into the focused application. This would allow you to quickly insert the value into your documents.

 

EDIT: If you're interested, I've made a modification to the Date Calculation workflow that will paste the result to the front-most application when you press enter on the result while holding the command key down. I can put it up for you to download if you'd like.

Edited by buffaloseven

Share this post


Link to post

I don't think you can do calculations within a snippet, but you could use that workflow to calculate the date you want, and then create a snippet where the date is filled in using the {clipboard} placeholder. So your workflow could be...

 

Use workflow above to trigger Alfred and calculate your date. Press enter to copy to clipboard. Then just type your shortcut and have it fill in the snippet with the date from the clipboard. This would be a better solution if you wanted the date embedded within a larger string.

 

If you want to just paste in a date, you could use the date calculation workflow, set the format to the format you want to use, and then modify the workflow so that when the date is copied to the clipboard it's automatically pasted into the focused application. This would allow you to quickly insert the value into your documents.

 

EDIT: If you're interested, I've made a modification to the Date Calculation workflow that will paste the result to the front-most application when you press enter on the result while holding the command key down. I can put it up for you to download if you'd like.

 

hello buffaloseven, 

 

i'am very interested about your modification workflow :) 

Share this post


Link to post

I've uploaded a release to a forked GitHub repository that can be found here: https://github.com/buffaloseven/Alfred-Workflows-DateCalculator/releases/tag/v2.4.1

 

I've made a pull request to the author's repository to hopefully get this minor tweak integrated into his official version. If you're familiar with modifying workflows, you'll be able to see the simple change I made to make it work.

 

Enjoy :-)

Share this post


Link to post

I'm interested in this as well. I currently use textexpander but figure one app to rule them would be better - however, simple calculations and placeholders are required for me to replace TE. I certainly appreciate your efforts banditmr73, I'd just like to see this functionality build into the snippets.

 

Edit: Just seen this, http://www.alfredforum.com/topic/8883-import-textexpander-snippets-into-alfred-v3/. I guess it's a while off replacing TE for me.

Edited by deadlyhifi

Share this post


Link to post

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...