Code Monkey home page Code Monkey logo

alfred-org-mode-workflow's Introduction

An org-mode-capture workflow for Alfred

Append a todo or a note to an org-mode file with a short and convenient command in Alfred. The workflow requires Alfred's "Powerpack."

Features

The command appends a second level heading to a user defined .org file and puts all what follows :: into the body of the heading (see figures below).

Type todo to add a todo:

Capture a todo

Capture a todo

Type note to add a note:

Capture a note

Capture a note

The added notes and todos are divided into title and content:

Capture a note

Relative dates (Monday, tuesday, tomorrow, morgen, freitag) in the content part of the entry are converted into orgmode specific date formats <2015-09-11 Fri>.

Relative dates in Alfred

become orgmode dates

You can also use relative dates to add a SCHEDULE or DEADLINE by using the following syntax, where S: converts the following date to a SCHEDULE date, and DL: to a DEADLINE:

todo Title of the workflow:: S: tomorrow DL: monday

By default, the date of creation is added to a property car (you can disable it inside Alfred; see Installation below):

Date of creation

Installation

Double klick on org-mode-capture.alfredworkflow to add it to Alfred's set of workflows. Then you need to set the path to your existing org-mode inbox file in both python script nodes (absolute notation of the path is necessary). You can also change the delimiter pattern to distinguish between head and body elements and disable the relative date replacement by setting it to False:

org.inbox_file = '/Users/Alex/Documents/Planung/Planning/Inbox.org'
org.delimiter = ':: '
org.add_creation_date = True
org.replace_relative_dates = True

Edit the python script nodes within Alfred

Supported modes of notification

If you don't use growl, you can change the notification nodes in the alfred workflows to apple's notification centre:

Notification system

Customisation

Following variables can be customised directly in the Alfred Workflow by editing the Workflow Environment Variables:

  • inbox filepath for todos, notes, and inspirations
  • heading_level of entry for each destination (default: 1)
  • delimiter (default: ::)

alfred-org-mode-workflow's People

Contributors

alexandergogl avatar

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.