This repository has been archived by the owner on Mar 24, 2023. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
29 changed files
with
759 additions
and
99 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
The first time you use `pynbox`, it will create the default configuration in | ||
`~/.local/share/pynbox` or the path of the `-c` command line argument. | ||
|
||
# database_url | ||
|
||
`pynbox` uses [`repository_orm`](https://lyz-code.github.io/repository-orm/) to | ||
persist the elements. By default, it uses the | ||
[TinyDB](https://tinydb.readthedocs.io/en/latest/usage.html) backend, if you | ||
encounter performance issues, move to | ||
[SQLite](https://lyz-code.github.io/repository-orm/pypika_repository/), and then | ||
to MySQL. Refer to the docs of | ||
[`repository_orm`](https://lyz-code.github.io/repository-orm/) to do so. | ||
|
||
# max_time | ||
|
||
You should not spend too much time processing your inbox, the idea is that if it | ||
will take you more than 2 minutes to process an element, it's better to create | ||
a task to address it. `max_time` defines the maximum number of seconds to | ||
process an element. A warning will be shown if it takes you longer. | ||
|
||
# types | ||
|
||
It's where you define the element categories, their regular expressions and | ||
their priority. For example: | ||
|
||
```yaml | ||
types: | ||
task: | ||
regexp: t\. | ||
priority: 4 | ||
idea: | ||
regexp: i\. | ||
``` | ||
|
||
If the priority is not defined, it's assumed to be `3`. | ||
|
||
!!! note "The regular expression needs to be a non capturing one" | ||
If you use parenthesis use `(?:<regular expression>)` instead of `(<regular | ||
expression>)`. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
|
||
To add new elements into pynbox, you need to use the defined [markup | ||
language](#pynbox-markup-language) either through the [command | ||
line](#command-line) or through a [file](#parse-file). | ||
|
||
# Pynbox markup language | ||
|
||
It's designed to use the minimum number of friendly keystrokes both for a mobile | ||
and a laptop. The format of each element is: | ||
|
||
``` | ||
{{ type_identifier }} {{ description }} | ||
{{ body }} | ||
``` | ||
|
||
Where: | ||
|
||
* `type_identifier`: Is a case insensitive string of the fewest letters as | ||
possible, that identifies the type of the element. It can be for example | ||
`t.` for a task, or `i.` for an idea. The identifiers are defined in the | ||
[configuration file](configuration.md). | ||
* `description`: A short sentence that defines the element. | ||
* `body`: An optional group of paragraphs with more information of the element. | ||
|
||
For example: | ||
|
||
``` | ||
T. buy groceries | ||
* milk | ||
* tofu | ||
i. to have an inbox management tool would be awesome! | ||
``` | ||
|
||
# Command line | ||
|
||
You can use the `add` subcommand to put new items into the inbox. | ||
|
||
```bash | ||
pynbox add t. buy milk | ||
``` | ||
|
||
# Parse a file | ||
|
||
If you need to add elements with a body, more than one element, or want to | ||
import them from other device, using a file might be easier. | ||
|
||
Write the elements one after the other in the file and then use the `parse` | ||
command. | ||
|
||
```bash | ||
pynbox parse file.txt | ||
``` |
This file was deleted.
Oops, something went wrong.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,6 +7,7 @@ pytest-cov | |
pytest-pythonpath | ||
pytest-xdist | ||
pytest-freezegun | ||
pexpect | ||
|
||
# Linting | ||
yamllint | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.