GrouchyGaijin
June 30th, 2013, 05:45 AM
Hi Guys,
I've started using Scribes quite a bit. I really like it, but can't seem to find an option to insert the current date into a document.
(OK I could just type the date, but where is the fun in that?)
Anyway, I've come up with a very ugly work around.
#!/bin/bash
now=$(date +"%d-%b-%Y")
echo $now > ~/scripts/xclip-scripts/current_date
xclip -in -selection c ~/scripts/xclip-scripts/current_date
xdotool key ctrl+v
I have the script mapped to ctrl+alt+D
This works, but I'm sure there are many better ways to do this.
Could someone clue me in to a more succinct way of doing this?
I've started using Scribes quite a bit. I really like it, but can't seem to find an option to insert the current date into a document.
(OK I could just type the date, but where is the fun in that?)
Anyway, I've come up with a very ugly work around.
#!/bin/bash
now=$(date +"%d-%b-%Y")
echo $now > ~/scripts/xclip-scripts/current_date
xclip -in -selection c ~/scripts/xclip-scripts/current_date
xdotool key ctrl+v
I have the script mapped to ctrl+alt+D
This works, but I'm sure there are many better ways to do this.
Could someone clue me in to a more succinct way of doing this?