You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.rst
+43-33Lines changed: 43 additions & 33 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,12 +1,22 @@
1
-
gtd.py
1
+
Mello
2
2
=======
3
3
4
4
A Fast Command-line Interface for Trello
5
5
---------------------------------------
6
6
7
7
This is a command-line tool that enables you to add, sort, and review cards on Trello rapidly. It is designed to reduce the amount of friction between your thoughts and your TODO list, especially if you never leave the terminal.
8
8
9
-
The project is named "gtd.py" because it was initially built as a tool for me to maintain a Trello board using the GTD_ task tracking method. I've been actively using this tool for GTD since the first commit; if you're trying to use GTD with Trello this is the tool for you.
9
+
Installation
10
+
------------
11
+
12
+
When installing, make sure to use pip3 if you your machine defaults to python2.7
13
+
1. Install via pip
14
+
`pip3 install mello`
15
+
16
+
1.1 (Optional) Add python3 bin to PATH if you haven't already done so
17
+
18
+
2. Setup OAuth credentials
19
+
`mello reconfigure`
10
20
11
21
12
22
Usage
@@ -25,24 +35,24 @@ The ``show`` command will return all the cards which match your supplied argumen
25
35
::
26
36
27
37
# Show cards from the list "Inbox" matching a regular expression on their titles
28
-
$ gtd show cards -l Inbox -m 'https?'
38
+
$ mello show cards -l Inbox -m 'https?'
29
39
30
40
# Show cards which have no tags but have due dates, in pretty-printed JSON format
31
-
$ gtd show cards --no-tags --has-due -j
41
+
$ mello show cards --no-tags --has-due -j
32
42
33
43
34
-
``grep`` faithfully implements some flags from the venerable utility, including -c, -i, and -e! An invocation of this command is similar to a longer invocation of ``show``: ``gtd grep 'some_pattern'`` is equivalent to ``gtd show cards -m 'some_pattern'``.
44
+
``grep`` faithfully implements some flags from the venerable utility, including -c, -i, and -e! An invocation of this command is similar to a longer invocation of ``show``: ``mello grep 'some_pattern'`` is equivalent to ``mello show cards -m 'some_pattern'``.
@@ -93,52 +103,52 @@ Frequently it's useful to move a whole bunch of cards at once, tag cards that ma
93
103
::
94
104
95
105
# Tag all cards that have no tags
96
-
$ gtd batch tag --no-tags
106
+
$ mello batch tag --no-tags
97
107
98
108
# Find all cards with a URL in their title and move those URLs into their attachments
99
-
$ gtd batch attach
109
+
$ mello batch attach
100
110
101
111
# Move all cards in your "Inbox" list
102
-
$ gtd batch move -l Inbox
112
+
$ mello batch move -l Inbox
103
113
104
114
# Set the due dates for all cards in a list containing the substring "Week"
105
-
$ gtd batch due -l Week
115
+
$ mello batch due -l Week
106
116
107
117
# Change the due date for all cards that have one already
108
-
$ gtd batch due --has-due
118
+
$ mello batch due --has-due
109
119
110
120
111
121
Bringing It all Together
112
122
^^^^^^^^^^^^^^^^^^^^^^^^
113
123
114
-
What if you don't know what kind of action you want to take on a card before you invoke ``gtd``? Well, we provide a nice menu for you to work on each card in turn. The menu is kinda REPL-like so if you're a terminal power user (truly, why would you use this tool unless you're already a terminal power-user) it'll feel familiar. The menu is built using ``python-prompt-toolkit`` so it has nice tab-completion on every command available within it. You can type ``help`` at any time to view all the commands available within the REPL.
124
+
What if you don't know what kind of action you want to take on a card before you invoke ``mello``? Well, we provide a nice menu for you to work on each card in turn. The menu is kinda REPL-like so if you're a terminal power user (truly, why would you use this tool unless you're already a terminal power-user) it'll feel familiar. The menu is built using ``python-prompt-toolkit`` so it has nice tab-completion on every command available within it. You can type ``help`` at any time to view all the commands available within the REPL.
115
125
116
126
Seeing is believing, so until I record a terminal session of me using it I'd highly encourage you to play around with this menu. It does some detection on the title of your card and will prompt you to move links out into attachments if appropriate. If the card doesn't have any tags yet, it'll prompt you to add some.
117
127
118
128
::
119
129
120
130
# Work through cards in the "Inbox" list one at a time
121
-
$ gtd review -l Inbox
131
+
$ mello review -l Inbox
122
132
123
133
# Review only cards from the "Today" list that have due dates
124
-
$ gtd review -l Today --has-due
134
+
$ mello review -l Today --has-due
125
135
126
136
127
137
Setup
128
138
------
129
139
130
140
::
131
141
132
-
$ pip install gtd.py
133
-
$ gtd onboard
142
+
$ pip install mello.py
143
+
$ mello onboard
134
144
135
145
The ``onboard`` command will assist you through the process of getting a Trello API key for use with this program and putting it in the correct file. This will happen automatically if you run a command that requires authentication without having your API keys set.
136
146
137
-
If you'd like to enable automatic bash completion for gtd.py, add the following line to your ~/.bashrc:
147
+
If you'd like to enable automatic bash completion for mello.py, add the following line to your ~/.bashrc:
138
148
139
149
::
140
150
141
-
eval "$(_GTD_COMPLETE=source gtd)"
151
+
eval "$(_GTD_COMPLETE=source mello)"
142
152
143
153
This relies on ``click``'s internal bash completion engine, so it does not work on other shells like ``sh``, ``csh``, or ``zsh``.
144
154
@@ -161,18 +171,18 @@ There are other optional settings you can define inside your yaml configuration
161
171
162
172
board: "Name of the Trello board you want to work with (case sensitive)"
163
173
color: True # Do you want to show ANSI colors in the terminal?
164
-
banner: True # Do you want to see the "gtd.py" banner on each program run?
174
+
banner: True # Do you want to see the "mello.py" banner on each program run?
165
175
166
176
167
177
All of these can be overridden on the command-line with the ``-b``, ``--no-color``, and ``--no-banner`` flags.
168
178
169
-
This configuration file can be put in a variety of locations within your home folder. The ``onboard`` command will help you with platform detection, putting the configuration file where appropriate given your operating system. When running, ``gtd``` will check all possible locations out of this list:
179
+
This configuration file can be put in a variety of locations within your home folder. The ``onboard`` command will help you with platform detection, putting the configuration file where appropriate given your operating system. When running, ``mello``` will check all possible locations out of this list:
0 commit comments