Re: [Zim-wiki] Inserting the time with a hotkey

2012-06-09 Thread Jaap Karssenberg
On Sat, Jun 9, 2012 at 11:53 AM, Adam Porter wrote: > Sorry for being unclear: I didn't make a plugin. Once you have it working I would advice to move the patch to a plugin. Otherwise it will break everytime you upgrade to a new version of zim. > I just edited > pageview.py, duplicated that Inse

Re: [Zim-wiki] Inserting the time with a hotkey

2012-06-09 Thread Adam Porter
On Sat, Jun 9, 2012 at 3:30 AM, Jaap Karssenberg wrote: > On Fri, Jun 8, 2012 at 9:17 PM, Adam Porter wrote: >> I am so close to having it work.  It took some trial and error, and a >> few "Looks like you discovered a bug" dialogs, but finally I cut >> everything out of the InsertTimeDialog (form

Re: [Zim-wiki] Inserting the time with a hotkey

2012-06-09 Thread Jaap Karssenberg
On Fri, Jun 8, 2012 at 9:17 PM, Adam Porter wrote: > I am so close to having it work.  It took some trial and error, and a > few "Looks like you discovered a bug" dialogs, but finally I cut > everything out of the InsertTimeDialog (formerly InsertDateDialog) > class except this in __init__: > > cl

[Zim-wiki] Inserting the time with a hotkey

2012-06-08 Thread Adam Porter
I use Zim to keep daily journals sometimes. I like to timestamp entries. I want to be able to press Ctrl+T to insert the current time, bolded. Seems simple enough, right? But I have been through quite a rigamarole trying to make this happen. I made a shell script that uses xdotool to send the