Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

Is there some way to set up a hot key that will type today's date into the current window as if I had typed it?

share|improve this question

1 Answer 1

up vote 4 down vote accepted

Yes, using a text-expander program such as AutoKey.

  • Install autokey-gtk from the software center, or from the terminal via sudo apt-get install autokey-gtk.
  • Open AutoKey from the dash, expand the "Sample Scripts" on the left, select "Insert Date", set a hotkey for it and save. That's it!

    enter image description here

share|improve this answer
    
Thank you! I changed "date" to "date '+%A %B %d %Y'" which results in Wednesday September 26 2012. But there is one strange thing - when I use it with TreePad (a Windows program running in Wine) I get wednesday september 26 2012 (note lower case). Any idea why that is happening? –  Dominic Sep 27 '12 at 1:51
    
Yes, it happens with notepad.exe, which makes me suspect wine. I also used it as input directly into wine (as the name of my "organization") and got lower-case letters there too. –  Dominic Sep 27 '12 at 3:43
    
Let me install Wine and look into it... –  izx Sep 27 '12 at 4:08
    
I didn't solve the date problem that I get when using AutoKey with Wine, but I worked around it by switching to TreePad beta for Linux. –  Dominic Oct 1 '12 at 5:03

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.