GithubHelp home page GithubHelp logo

liqiduan / vimwiki-tasks Goto Github PK

View Code? Open in Web Editor NEW

This project forked from teranex/vimwiki-tasks

0.0 2.0 0.0 183 KB

A Vim plugin to integrate Vimwiki tasks with taskwarrior. Sync tasks between vimwiki and taskwarrior in both directions

License: MIT License

Vim Script 100.00%

vimwiki-tasks's Introduction

vimwiki-tasks Vim plugin

NOTE

This is a very early and very alpha version of the plugin. Use with caution and make a backup of your .task and vimwiki folder. You have been warned!

Features

This plugin adds some additional syntax rules to vimwiki to define a task format with due dates. It also adds highlighting for tags (+tag) and UUID's. The format for a task which has a due date on 2013-11-21:

* [ ] This is a task with a due date (2013-11-21)

It's also possible to specify a time for the due:

* [ ] This is a task due at 10am (2013-11-21 10:00)

Please note that it is officially not possible to set a due-time in taskwarrior, however by specifying the correct dateformat it however is possible since internally dates are stored as unix timestamps. So far I have not really found any side-effects of doing this.

When the vimwiki file is saved all the new tasks with a due date will be added to taskwarrior. To keep the link between the task in taskwarrior and vimwiki the UUID of the task is appended to the task in vimwiki. If you have enabled Vim's conceal feature the UUID's will be hidden.

It is also possible to add tasks without a due date into taskwarrior by ending the task in Vimwiki in #TW. When the vimwiki file is saved any task which ends in #TW will also be added to taskwarrior and the #TW will be replaced by the UUID.

When the file is reopened in Vimwiki all the tasks which have a UUID will be synced and updated from taskwarrior info the vimwiki-file and it will be marked as modified if any updates took place.

Installation

  1. Install the vimwiki plugin for Vim
  2. Install taskwarrior
  3. Install this plugin

Default values

The first 10 lines of a vimwiki file will be checked for some default values which will be used for all the tasks in that vimwiki-file:

  • %% Project: <projectname>: set the project for the tasks to ''
  • %% Tags: +tag1 +tag2: add these tags to every task.

Config

The following configuration options are currently available

  • let g:vimwiki_tasks_annotate_origin = 0: When 1 a reference to the vimwiki-page where the task was found will be added as an annotation
  • let g:vimwiki_tasks_tags_nodue = '': These tags, e.g. +vimwiki +nodue, will be added to a task without a due date/time.
  • let g:vimwiki_tasks_tags_duetime = '': These tags will be added to a task which has both a due date and time.
  • let g:vimwiki_tasks_tags_duedate = '': These tags will be added to a task which has a due date but no due time.

Known issues & Future plans

See the issue list on Github for currently known issues and future plans. Feel free to report issues and add ideas there as well.

vimwiki-tasks's People

Contributors

teranex avatar

Watchers

James Cloos avatar  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.