Jump to content
jarhead

Append to nvALT journal

Recommended Posts

Just an updated version of Marc Abramowitz's Append to nvALT journal extension to work for Alfred v2.

 

Marc's description...

 

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.

 

More on nvALT → http://brettterpstra.com/projects/nvalt/

 

Download extension here → http://jrhd.me/MDZN

Share this post


Link to post

I'm having the problem that this extension seems to cut away the blanks. When I enter "nj foo bar", it adds "foobar" to the entry in nvALT. Any ideas on how to fix that?

Share this post


Link to post

Very strange. I just deleted the extension completely and reinstalled and working fine on my end.

 

Although it should be checked by default, make sure the "with space" checkmark is checked per below...

 

double_click.png

 

 

space_check.png

Share this post


Link to post

I'm curious: how would you alter the script to prepend the addition to the journal rather than append?

You wouldn't try this workflow http://asmodified.net/alfredworkflows/ - not my work but the nt keyword will do what you want, or whichever adds to "scratchpad" all can be changed. I think this latest version goes overboard with the each keyword for a different file when there are great scripts that can do adding to a different file in the same directory by just going >>filename at the end of your note but anyways I digress. You should be good with that one. If not check out QuickMDEntry on github by Rob Trew, the most amazing script I have ever seen for all your nvalt + markdown goodness. Both of these solutions don't require gui scripting or replicating key hits etc... 

Share this post


Link to post

Very strange. I just deleted the extension completely and reinstalled and working fine on my end.

 

Although it should be checked by default, make sure the "with space" checkmark is checked per below...

 

double_click.png

 

 

space_check.png

I tried that and the item in the Preference Pane was checked. I also tried deleting and reinstalling the workflow but still, it seems to cut away the blanks. Any other ideas?

 

Are you also using nvALT v2.2b (104)? Could you post a screenshot of your nvALT preferences? Maybe it has to do with the preferences of the app.

Edited by phil

Share this post


Link to post

I tried that and the item in the Preference Pane was checked. I also tried deleting and reinstalling the workflow but still, it seems to cut away the blanks. Any other ideas?

 

Are you also using nvALT v2.2b (104)? Could you post a screenshot of your nvALT preferences? Maybe it has to do with the preferences of the app.

 

Very strange. The workflow is just running Applescript. I was using version 2.2b (104) but upgraded yesterday to 2.2b (105) and the workflow still works.

 

Nothing special in preferences other than storing notes as text files...

 

nvalt_1.png

 

nvalt_2.png

 

nvalt_3.png

Share this post


Link to post

I'm curious: how would you alter the script to prepend the addition to the journal rather than append?

 

I have a prepend to text file workflow, you can download it here.

Share this post


Link to post
On 4/19/2013 at 3:32 PM, ayn said:

 

I have a prepend to text file workflow, you can download it here.

At last, after lots of hunting, I have a script that does what I need. Not to see whether I can modify it do add a timestamp and a newline.

 

Thanks.

Share this post


Link to post
9 hours ago, jeremycherfas said:

At last, after lots of hunting, I have a script that does what I need. Not to see whether I can modify it do add a timestamp and a newline.

 

Thanks.

 

Hey Jeremy,

 

I replied to your PM, but I'll reply here to for others. Adding a timestamp is a great idea! And I just updated my workflow to do that.

 

Thanks!

Share this post


Link to post

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...