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
4075db7f
Commit
4075db7f
authored
Jan 04, 2016
by
Bram Schoenmakers
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Default to the configured sort string when not given by the user
parent
84382659
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
3 deletions
+5
-3
topydo/ui/ColumnLayout.py
topydo/ui/ColumnLayout.py
+2
-2
topydo/ui/ViewWidget.py
topydo/ui/ViewWidget.py
+3
-1
No files found.
topydo/ui/ColumnLayout.py
View file @
4075db7f
...
...
@@ -16,7 +16,7 @@
import
configparser
from
topydo.lib.Config
import
home_config_path
from
topydo.lib.Config
import
home_config_path
,
config
def
columns
():
"""
...
...
@@ -35,7 +35,7 @@ def columns():
defaults
=
{
'title'
:
'Yet another column'
,
'filterexpr'
:
''
,
'sortexpr'
:
'desc:prio'
,
'sortexpr'
:
config
().
sort_string
()
,
'show_all'
:
'0'
,
}
...
...
topydo/ui/ViewWidget.py
View file @
4075db7f
...
...
@@ -16,6 +16,8 @@
import
urwid
from
topydo.lib.Config
import
config
class
ViewWidget
(
urwid
.
LineBox
):
def
__init__
(
self
,
p_todolist
):
self
.
_todolist
=
p_todolist
...
...
@@ -48,7 +50,7 @@ class ViewWidget(urwid.LineBox):
def
data
(
self
):
return
{
'title'
:
self
.
titleedit
.
edit_text
,
'sortexpr'
:
self
.
sortedit
.
edit_text
,
'sortexpr'
:
self
.
sortedit
.
edit_text
or
config
().
sort_string
()
,
'filterexpr'
:
self
.
filteredit
.
edit_text
,
'show_all'
:
self
.
allradio
.
state
,
}
...
...
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