Append to nvALT journal – Alfred.app extension for nvALT

I whipped up a quick little extension for Alfred that lets me very quickly jot down time-stamped text. The hope is that if I make it ridiculously easy to log what I’m doing and when, then maybe I can have better records of what I’m doing and it will be easier for me to switch back to task after interruptions. I can also look at where I’m spending my time.

I have this extension mapped to the keyword “nj” (for “nvALT Journal”). I activate Alfred and type “nj <text>” and the extension automatically opens up nvALT and makes sure that there’s a note with the current date in the form “YYYY-mm-dd” and then appends my text to the end of the note with a 24 hour timestamp in front of it. It then switches back to the application that I was previously in so I can go immediately back to whatever I was doing.

Prerequisites

Download

GitHub

9 thoughts on “Append to nvALT journal – Alfred.app extension for nvALT

  1. Great extension, thank you Marc! Additionally, what parts do I need to delete from your script to post without time stamp continuously into one file? I know, this is probably very easy, but as I am new to applescript I did not mange on my own. Thanks.

  2. Hey sample,

    If you want to take out the timestamp, then look inside the .alfredextension bundle for a file called info.plist and then remove all the stuff that references theDate, etc.

  3. Thank you for making this extension. It has simplified my life a lot.
    It is perfect for writing journal.

    I also want a slightly different version of it too for academic /professional note taking. That is, I want to input Title and Tag in place of time stamp. Can you help me in modifying it?
    The idea is: I want to have a format nn :::
    inserting a phrase followed by a colon followed by a phrase magically converting the two phrases between the colons into Title and Tag.

    is this achievable?

    thanks

  4. Hi Mark,
    thank you for the workflow. I tweaked the script a bit, to move the cursor at the end of the journal entry before appending the new text.

    What I’ve changed:

    tell application “nvALT”
    activate
    tell application “System Events”
    keystroke “l” using command down
    keystroke theDate & return
    keystroke key code 125 using command down
    keystroke return & return
    keystroke theTime & ” — ” & q
    keystroke tab using {command down}
    end tell
    end tell

  5. Any chance of getting the .alfredworkflow version of it for Alfred 2?

    Cheers

Leave a Reply

Your email address will not be published.