DonationCoder.com forum
 
Read-only archive. This is a static copy of the DonationCoder.com forum. Reading and searching work as before; logging in, posting and private messages do not.
Archive of 2026-10-21 · About this archive · Main site

Author Topic: Beginner help please : Paste Date /Time format  (Read 5,096 times)

Flippertie

  • Participant
  • Joined in 2010
  • *
  • Posts: 18
Beginner help please : Paste Date /Time format
« on: August 09, 2010, 03:59 AM »
I've had plain vanilla FARR installed for a while - and I'm now trying to delve a little deeper in to the possibilities...

I know I can paste date and time (FARR > paste date <enter>) etc

I want to customize/extend that to have an alias:
1) to use 'p' instead of 'paste'

2) to paste a few pre-defined strings, 

ie Dates (%d/%m/%y,  %y%m%d%H%M etc) or my email address.

I'm sure it's simple enough but I can't find any forum threads discussing it.  If someone could give me an example or point me to some documentation I'd be grateful.

mouser

  • First Author
  • Administrator
  • Joined in 2005
  • *****
  • Posts: 40,931
    • Gathering Badge
    • Plugin Coding Medal
    • Participated in NANY Challenge Seventeen Times
    • Cody Award
    • Coding Snacks
    • Volunteers/Staff
Re: Beginner help please : Paste Date /Time format
« Reply #1 on: August 09, 2010, 04:20 AM »
you can easily make an alias called "p"
with result entries like:
paste myemail | paste mouser@donationcoder.com /ICON=icons\farr\core-misc_paste.ico
paste date | paste %date% /ICON=icons\farr\core-misc_paste.ico
paste time | paste %time% /ICON=icons\farr\core-misc_paste.ico
paste date and time | paste %datetime% /ICON=icons\farr\core-misc_paste.ico


however, believe it or not, FARR does not have a way for you to specify a custom date format to paste.  i could add that, but it's just not something anyone has asked for yet.

this would be a nice idea for a little plugin though!

Flippertie

  • Participant
  • Joined in 2010
  • *
  • Posts: 18
Re: Beginner help please : Paste Date /Time format
« Reply #2 on: August 09, 2010, 01:46 PM »
thanks for the reply.

I assumed that because I can configure the date in the Title bar the variables would be available to use...

The only other person i found looking for something similar was at the end of this thread: http://www.donationcoder.com/forum/index.php?topic=14501.msg191072#msg191072

I can use a clipboard manager (like ArsClip) to do this already - but I thought that if Farr could handle it then it would be a fun thing to set up...

Original address: https://www.donationcoder.com/forum/index.php?topic=23684.0