Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
T
topydo
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
topydo
Commits
647cf77a
Commit
647cf77a
authored
Jun 13, 2015
by
Bram Schoenmakers
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Improve help text of the sort subcommand.
parent
4147d780
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
3 deletions
+12
-3
topydo/commands/SortCommand.py
topydo/commands/SortCommand.py
+12
-3
No files found.
topydo/commands/SortCommand.py
View file @
647cf77a
...
@@ -49,8 +49,13 @@ class SortCommand(Command):
...
@@ -49,8 +49,13 @@ class SortCommand(Command):
Sorts the file according to the expression. If no expression is given, the
Sorts the file according to the expression. If no expression is given, the
expression in the configuration is used.
expression in the configuration is used.
The following sort properties are supported:
The expression is a comma separated list of attributes to sort on. The list is
evaluated in order, which means that the first attribute takes higher
precedence, then the second, etc.
The following sort attributes are supported:
* priority - Sort by priority
* creation - Sort by creation date
* creation - Sort by creation date
* completed - Sort by completion state
* completed - Sort by completion state
* importance - Sort by importance
* importance - Sort by importance
...
@@ -58,6 +63,10 @@ The following sort properties are supported:
...
@@ -58,6 +63,10 @@ The following sort properties are supported:
* text - Sort by text
* text - Sort by text
* <tag> - Sort by values of the given tag
* <tag> - Sort by values of the given tag
Any property can be prefixed with 'asc:' and 'desc:' to specify the sort order.
Each item can optionally be prefixed with asc: and desc: to specify ascending
The default is ascending sort.
or descending sort respectively. If not specified, ascending sort is assumed.
Example:
desc:importance,due,desc:priority
"""
"""
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment