Skip to content

Commit f1928e4

Browse files
committed
added installation section to README
1 parent 8bc1c29 commit f1928e4

File tree

4 files changed

+46
-36
lines changed

4 files changed

+46
-36
lines changed

README.rst

Lines changed: 43 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,22 @@
1-
gtd.py
1+
Mello
22
=======
33

44
A Fast Command-line Interface for Trello
55
---------------------------------------
66

77
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.
88

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`
1020

1121

1222
Usage
@@ -25,24 +35,24 @@ The ``show`` command will return all the cards which match your supplied argumen
2535
::
2636

2737
# 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?'
2939

3040
# 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
3242

3343

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'``.
3545

3646
::
3747

3848
# Filter all cards based on a regex
39-
$ gtd grep 'http.*amazon'
49+
$ mello grep 'http.*amazon'
4050

4151
# or multiple regexes!
42-
$ gtd grep -e '[Jj]ob' -e 'career' -e '[oO]pportunity?'
52+
$ mello grep -e '[Jj]ob' -e 'career' -e '[oO]pportunity?'
4353

4454
# Use other popular grep flags!
45-
$ gtd grep -ci 'meeting'
55+
$ mello grep -ci 'meeting'
4656

4757
Creating Things
4858
^^^^^^^^^^^^^^^^
@@ -58,13 +68,13 @@ The command you'll probably use most frequently is ``add card``. Here are some c
5868
::
5969

6070
# Add a new card with title "foo"
61-
$ gtd add card foo
71+
$ mello add card foo
6272

6373
# Specify a description with the card title
64-
$ gtd add card foo -m 'Description for my new card'
74+
$ mello add card foo -m 'Description for my new card'
6575

6676
# Open $EDITOR so you can write the card title
67-
$ gtd add card
77+
$ mello add card
6878

6979
The other subcommands for ``add`` (``add list`` and ``add tag``) are self-explanatory.
7080

@@ -76,13 +86,13 @@ The ``delete`` subcommand allows you to get rid of lists & cards. By default, ca
7686
::
7787

7888
# Archive all cards whose titles match this regular expression
79-
$ gtd delete cards -m 'on T(hurs|ues)day'
89+
$ mello delete cards -m 'on T(hurs|ues)day'
8090

8191
# Delete without intervention all cards containing the string "testblah"
82-
$ gtd delete cards --noninteractive --force -m 'testblah'
92+
$ mello delete cards --noninteractive --force -m 'testblah'
8393

8494
# Delete the list named "Temporary work"
85-
$ gtd delete list "Temporary work"
95+
$ mello delete list "Temporary work"
8696

8797

8898
Manipulating Cards in Bulk
@@ -93,52 +103,52 @@ Frequently it's useful to move a whole bunch of cards at once, tag cards that ma
93103
::
94104

95105
# Tag all cards that have no tags
96-
$ gtd batch tag --no-tags
106+
$ mello batch tag --no-tags
97107

98108
# Find all cards with a URL in their title and move those URLs into their attachments
99-
$ gtd batch attach
109+
$ mello batch attach
100110

101111
# Move all cards in your "Inbox" list
102-
$ gtd batch move -l Inbox
112+
$ mello batch move -l Inbox
103113

104114
# 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
106116

107117
# Change the due date for all cards that have one already
108-
$ gtd batch due --has-due
118+
$ mello batch due --has-due
109119

110120

111121
Bringing It all Together
112122
^^^^^^^^^^^^^^^^^^^^^^^^
113123

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.
115125

116126
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.
117127

118128
::
119129

120130
# Work through cards in the "Inbox" list one at a time
121-
$ gtd review -l Inbox
131+
$ mello review -l Inbox
122132

123133
# 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
125135

126136

127137
Setup
128138
------
129139

130140
::
131141

132-
$ pip install gtd.py
133-
$ gtd onboard
142+
$ pip install mello.py
143+
$ mello onboard
134144

135145
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.
136146

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:
138148

139149
::
140150

141-
eval "$(_GTD_COMPLETE=source gtd)"
151+
eval "$(_GTD_COMPLETE=source mello)"
142152

143153
This relies on ``click``'s internal bash completion engine, so it does not work on other shells like ``sh``, ``csh``, or ``zsh``.
144154

@@ -161,18 +171,18 @@ There are other optional settings you can define inside your yaml configuration
161171

162172
board: "Name of the Trello board you want to work with (case sensitive)"
163173
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?
165175

166176

167177
All of these can be overridden on the command-line with the ``-b``, ``--no-color``, and ``--no-banner`` flags.
168178

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:
170180

171-
* ``~/.gtd.yaml``
172-
* ``~/.config/gtd/gtd.yaml``
173-
* ``~/Library/Application Support/gtd/gtd.yaml``
174-
* ``~/.local/etc/gtd.yaml``
175-
* ``~/.local/etc/gtd/gtd.yaml``
181+
* ``~/.mello.yaml``
182+
* ``~/.config/mello/mello.yaml``
183+
* ``~/Library/Application Support/mello/mello.yaml``
184+
* ``~/.local/etc/mello.yaml``
185+
* ``~/.local/etc/mello/mello.yaml``
176186

177187
Notes
178188
------

gtd.py renamed to mello.py

File renamed without changes.

setup.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,10 @@
1717
version=__version__,
1818
install_requires=reqs,
1919
packages=['todo'],
20-
py_modules=['gtd'],
20+
py_modules=['mello'],
2121
entry_points={
2222
'console_scripts': [
23-
'mello = gtd:main'
23+
'mello = mello:main'
2424
]
2525
},
2626
python_requires='>=3',

todo/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
'''gtd.py'''
2-
__version__ = '0.7.13'
2+
__version__ = '0.7.15'
33
__author__ = 'whitef0x0'

0 commit comments

Comments
 (0)