Giter VIP home page Giter VIP logo

alfred_noteplan_actions's Introduction

Alfred Noteplan Actions

Alfred workflow for handy Noteplan actions.

Downloads

Bullet Journalling is described as "a mindfulness practice disguised as a productivity system", and while pen and paper may suit many, for me NotePlan is the perfect intersection of digital convenience and Bullet Journal mindfulness.

By providing an extensive x-callback-url scheme, NotePlan has allowed this Alfred workflow to extend its functionality to get even more done with less effort.

Settings

To customise the workflow settings to your own preferences, select the workflow in Alfred and click the weird icon in the top right that looks kinda like [X]:

icons

You can then change the values of workflow environment variables:

workflow environment variables

Changing the notes location from iCloud to Dropbox etc.

If you're not using iCloud for syncing your notes, you can change the base_directory environment variable to the relative path of wherever your notes are stored.

For example, if your notes are under /Users/foo/Dropbox, change base_directory to /Dropbox, or wherever they happen to be under your home holder.

Open note

Keyword: t

Fuzzy search of text notes by heading, and calendar notes by date.

Opening calendar notes

NOTE: can currently only quick-open existing calendar notes. It can't open a date that you've never taken notes on.

Can either use ISO YYYY-MM-DD format:

iso

Or various fuzzy searches in human-friendly formats: (Alfred's script filter is very powerful)

fuzzy1

fuzzy2

Quick add

Keyword: q

Create a task in today's calendar note from the entered text.

Settings

todo_string: You can change the todo string from - [ ] to any other character that NotePlan recognises like * or -.

quick_add_mode: You can also change the insertion mode from the default of prepend which inserts the todo at the top of the calendar, to append which adds it to the bottom.

Insert wiki link (deprecated)

NOTE: Noteplan implements this natively now, just start typing [[ and it will provide an auto-complete search of your notes to generate wiki links directly.

Keyword: wl

Insert a wiki link to any text note with fuzzy search of the page headings, which is how NotePlan interlinks pages internally.

Create link note from URL

Keyword: link

Past in a URL, like https://noteplan.co, and this workdlow action will create a new note like:

# Link - NotePlan - Organize Everything Bullet Journal Style

[NotePlan - Organize Everything Bullet Journal Style](https://noteplan.co)

#links

I usually add a short note beneath the link, and add some relevant tags to make the note easier to retrieve later.

Insert hashtag (deprecated)

NOTE: Noteplan implements this natively now, just start typing # and it will provide an auto-complete search of your hashtags to generate them directly.

Keyword: hashtag

Autocomplete of hashtags would be super useful, but seeing as it's missing, you can quickly insert any of your existing hashtags using fuzzy search of all hashtags used in all text notes with this handy workflow.

Currently only allows one hashtag to be inserted at a time.

(Actually just inserts it into whatever program you happen to be using via the clipboard)

Journal summary

One of the most powerful aspects of Bullet Journalling is the reflection process. While there have been some hints at NotePlan providing some kind of separation of daily notes, I've taken to the following convention:

  • End each day with a quiet reflection
    • (Use one of NotePlan's beautiful dark-themes for kindness to your circadian rythm)
  • Add a sub-heading to the bottom of the day's calendar note like ## Journal
  • Follow that with a short journal entry

The tactile feel of flipping back through calendar notes to review your recent journal entries is quite similar to paging through a paper notebook. Could it trigger similar neural pathways?

This is fine for week to week reflection, but for a birds-eye view from month to month, or even an entire year (I've been doing this since Jan 2019), open Alfred and enter the keyword js to have it extract all of your journal entries, sort them chronologically, and create a summary in a new text note.

Keyword: js

Settings

journal_heading - defaults to ## Journal, but you may wish to use a different heading level or title.

This will be used for the title of the summary text note. For example, the default calendar note heading of ## Journal will produce a text note with a title of # Journal Summary

alfred_noteplan_actions's People

Contributors

beet avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

alfred_noteplan_actions's Issues

Extend 't' quick open action to open calendar files as well

I won't use this as often as opening a text note by its title, but why not allow it to search over calendar files by YYYYMMDD as well?
I've had a look at the code, but again it's structured in a way I don't yet understand, so can't try this myself.

't' action not working under recent NP betas

Over the last 2 days I've been testing NP beta 527 and 528. Both include a fix for x-callback-url call opening wrong note, which is good. However, your 't' action now doesn't seem to be able to match or find any notes or calendar dates, so does nothing.
(Betas are normally available from https://noteplan.co/beta but it's not showing the latest. I think if you download what there is and then "Check for Updates ..." you'll get them.)

text search not working

I am a relatively new at workflow actions in Alfred. Can't seem to get the text search working. The "q" command working fine. I did change the file location in the settings. everything else is the same.

Feature Request: Add ability to open note in a sub window

The x-callback spec allows for &subWindow=yes to be added on an openNote call.
Your code is so well structured it only took me a minute to add the line in the x-callback-url\open_note.rb file to always force this for my local install. It would be a little more work to work out how best to present this in Alfred as an option. Perhaps add a modifier key to trigger this?

issues with local storage?

I updated base.rb with the correct base path for local only storage /⁨Library⁩/⁨Containers⁩/⁨co.noteplan.NotePlan⁩/⁨Data⁩/⁨Library⁩/⁨Application Support⁩/⁨co.noteplan.NotePlan⁩ but the only thing that seems to work is quick add of tasks. Are there other files that need to be touched for hashtags, note search and journal summary?

0.9.0 working great with NotePlan 3.0.16 Beta

Hey Mark, just wanted to let you know the update today is working well with both the file extension change and sub folders (non @archive and @trash folders). Thanks for the update!!!

Brad

Allow different styles of task marker

One quick suggestion: not everyone uses the - [ ] syntax for the start of a task. I use just * for example. Could you make this a variable that needs setting when someone imports the workflow?

Changing the file extension

Would it be possible to add a configurable variable to the alter the file extension from txt to say md? With the latest NP3 Beta, a feature was introduced to change the file extension used so that the markdown files could be used with other editors more easily that are expecting a .md file extension (such as Obsidian).

Thanks!!

Add support for NP folders

I'm not quite sure when Eduard introduced folders into NP, or if I have them because of beta testing, but at least from v2.4.2 NP honours sub-folders in the NotePlan/Notes directory.

However, I'm pretty sure from my testing that these Alfred actions don't pick them up -- not unreasonably. In my scripts it's just been a one line change to look over sub-folders as well.

NB: From the beta testing at least, I see that there will be at least two special sub-folders: @Archive and @Trash. They appear without the @ symbol in special places in the sidebar. So I have (in advance of any documentation) used a file glob that ignores items in sub-folders with an @ prefix.

wl deprecation

Not an issue, but for what it's worth - I sometimes edit my NotePlan notes with other apps (most notably Typora and nvUltra) so having quick access to add a NotePlan style wiki link via Alfred is something I still use. Typora doesn't support them, and nvUltra links the filename not the header: [[my_great_note]] resolves to my_great_note.txt (which isn't ideal). It would be great if you still leave this feature in (at least, for my workflow).

Will this work for Dropbox storage option?

I'm not very proficient in ruby, so can't tell whether this would work if someone uses the new Dropbox option for storing notes, over the iCloud option. Something to think about, anyway.

Error in 't' action

This was working fine some while ago, but in the last few weeks the 't' action has stopped working properly. After typing the first search character after 't ', Alfred then drops to default searches.

Looking in the debug window I see this always pops up:
[14:06:23.657] ERROR: NotePlan Actions[Script Filter] Code 1: /Users/masked/Dropbox/Alfred/Alfred.alfredpreferences/workflows/user.workflow.79E3480A-F746-4160-8F1A-8C56AB104AA3/lib/note_plan/note_components/heading.rb:14:in 'contents': undefined method 'gsub' for nil:NilClass (NoMethodError)

I'm not sure why it can't find gsub all of a sudden. I use it find in other ruby scripts.
I'm running latest version of NP, but have stuck to macOS 10.14.6.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.