An open API service indexing awesome lists of open source software.

https://github.com/attomos/bear_todo_counter

🐻 A simple Python script to put a TODO progress in Bear note's title.
https://github.com/attomos/bear_todo_counter

bear note-taking todo

Last synced: 8 months ago
JSON representation

🐻 A simple Python script to put a TODO progress in Bear note's title.

Awesome Lists containing this project

README

          

# bear_todo_counter

[![Build Status](https://travis-ci.com/attomos/bear_todo_counter.svg?branch=master)](https://travis-ci.com/attomos/bear_todo_counter)
Coverage Status
Code style: black

Visual progress bar provided by Bear is nice, but sometimes I need to know how many tasks need to
be done.
`bear_todo_counter` addresses this problem, allowing you to put a TODO progress in [Bear][bear]
note's title.

## Motivation
Inspired by [org-mode][org-mode]'s [subtasks progress][org-mode-tasks], this simple Python script
will:
1. read the text from clipboard
2. count number of completed items and total items
3. set the clipboard with the original text + TODO progress in the first line

### Org mode Subtasks Progress
![org-mode subtasks progress](./images/emacs.gif "org-mode subtasks progress")

### :bear: with bear_todo_counter
![bear_todo_counter](./images/bear.gif "bear_todo_counter")

## Usage

I trigger this script using [BetterTouchTool][btt] with a simple sequence of actions.
Screenshots below should explain everything.

![BTT Actions](./images/btt.png "BTT Actions")
![BTT Applescript](./images/btt2.png "BTT Applescript")

## Running tests
```bash
# in virutalenv or whatever env management of your choice
pip install -r requirements.txt

pytest
pytest --cov bear_todo_counter # with coverage
```

[bear]: https://bear.app/
[org-mode]: https://orgmode.org/
[org-mode-tasks]: https://orgmode.org/manual/Breaking-down-tasks.html
[btt]: https://folivora.ai/