GithubHelp home page GithubHelp logo

unkwn1-repo / obsidian-tw Goto Github PK

View Code? Open in Web Editor NEW

This project forked from echo-bravo-yahoo/ego-rock

0.0 0.0 0.0 123 KB

An obsidian plugin that implements a basic taskwarrior UI for listing and modifying tasks.

License: GNU General Public License v3.0

JavaScript 19.05% TypeScript 79.00% CSS 1.95%

obsidian-tw's Introduction

Ego Rock

This is an Obsidian plugin that allows viewing taskwarrior tasks in Obsidian's reading view. This plugin requires a functional, externally installed taskwarrior installation.

Task tables

To include a table of tasks, use a task-table code block. The text inside the code block is parsed as YAML; include a key called command with the taskwarrior command that should be executed to generate the table. The syntax for this is exactly the same as the taskwarrior CLI syntax except that:

  • The report name must be the last token, and will not be defaulted if not provided. For example, task +nonsense list is legal, but task list +nonsense and task +nonsense are not.
  • Some overrides are provided so the resulting ascii table can be parsed to an HTML table; rc.detection is set to off, and rc.defaultWidth is set to 1000.

A basic use-case might look like:

```task-table
command: task list
```

You can use custom reports as well as all of taskwarrior's filter expressions:

```task-table
command: task custom-report /.*ing$/ or +work
```

You can also provide command line overrides; these are often useful for setting a context for a report or modifying a report's presentation when used in Obsidian (but not via the command line):

```task-table
command: task list rc.context:home rc.report.list.filter:"status:pending"
```

Developer Guide

Releasing new releases

  • Commit your changes with a useful commit message that does not mention versioning.
  • Run npm version <patch|minor|major>.
  • Run git push && git push $VERSION_TAG.

Improve code quality with eslint (optional)

  • ESLint is a tool that analyzes your code to quickly find problems. You can run ESLint against your plugin to find common bugs and ways to improve your code.
  • To use eslint with this project, make sure to install eslint from terminal:
    • npm install -g eslint
  • To use eslint to analyze this project use this command:
    • eslint main.ts
    • eslint will then create a report with suggestions for code improvement by file and line number.
  • If your source code is in a folder, such as src, you can use eslint with this command to analyze all files in that folder:
    • eslint .\src\

obsidian-tw's People

Contributors

lishid avatar ericaxu avatar edo78 avatar fyears avatar unkwn1-repo avatar chrisgrieser avatar echo-bravo-yahoo avatar aidenlx avatar reorx avatar tokuhirom avatar timrogers avatar tfthacker avatar phibr0 avatar taurelas avatar kostapc avatar joethei avatar inouetakuya avatar henrebotha avatar gitmurf avatar clemens-e avatar pozdneev avatar aleksey-rowan 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.