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
e8061b08
Commit
e8061b08
authored
May 22, 2016
by
Bram Schoenmakers
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Make separate directory for each UI
For each UI, create a folder in the ui subdirectory.
parent
49bfbc25
Changes
18
Hide whitespace changes
Inline
Side-by-side
Showing
18 changed files
with
20 additions
and
20 deletions
+20
-20
.coveragerc
.coveragerc
+1
-1
setup.py
setup.py
+1
-1
topydo/ui/CLIApplicationBase.py
topydo/ui/CLIApplicationBase.py
+0
-0
topydo/ui/UILoader.py
topydo/ui/UILoader.py
+4
-4
topydo/ui/cli/CLI.py
topydo/ui/cli/CLI.py
+1
-1
topydo/ui/cli/__init__.py
topydo/ui/cli/__init__.py
+0
-0
topydo/ui/columns/ColumnLayout.py
topydo/ui/columns/ColumnLayout.py
+0
-0
topydo/ui/columns/CommandLineWidget.py
topydo/ui/columns/CommandLineWidget.py
+0
-0
topydo/ui/columns/ConsoleWidget.py
topydo/ui/columns/ConsoleWidget.py
+1
-1
topydo/ui/columns/KeystateWidget.py
topydo/ui/columns/KeystateWidget.py
+0
-0
topydo/ui/columns/Main.py
topydo/ui/columns/Main.py
+8
-8
topydo/ui/columns/TodoListWidget.py
topydo/ui/columns/TodoListWidget.py
+1
-1
topydo/ui/columns/TodoWidget.py
topydo/ui/columns/TodoWidget.py
+1
-1
topydo/ui/columns/Utils.py
topydo/ui/columns/Utils.py
+0
-0
topydo/ui/columns/ViewWidget.py
topydo/ui/columns/ViewWidget.py
+0
-0
topydo/ui/columns/__init__.py
topydo/ui/columns/__init__.py
+0
-0
topydo/ui/prompt/Prompt.py
topydo/ui/prompt/Prompt.py
+2
-2
topydo/ui/prompt/TopydoCompleter.py
topydo/ui/prompt/TopydoCompleter.py
+0
-0
No files found.
.coveragerc
View file @
e8061b08
...
...
@@ -12,6 +12,6 @@ exclude_lines =
if __name__ == .__main__.:
omit =
topydo/ui/*.py
topydo/commands/ExitCommand.py
topydo/lib/Version.py
topydo/ui/*
setup.py
View file @
e8061b08
...
...
@@ -41,7 +41,7 @@ setup(
'test:python_version=="3.2"'
:
[
'mock'
],
},
entry_points
=
{
'console_scripts'
:
[
'topydo = topydo.
cl
i.UILoader:main'
],
'console_scripts'
:
[
'topydo = topydo.
u
i.UILoader:main'
],
},
classifiers
=
[
"Development Status :: 5 - Production/Stable"
,
...
...
topydo/
cl
i/CLIApplicationBase.py
→
topydo/
u
i/CLIApplicationBase.py
View file @
e8061b08
File moved
topydo/
cl
i/UILoader.py
→
topydo/
u
i/UILoader.py
View file @
e8061b08
...
...
@@ -19,8 +19,8 @@
import
getopt
import
sys
from
topydo.cli.CLI
import
CLIApplication
from
topydo.
cl
i.CLIApplicationBase
import
MAIN_OPTS
,
error
from
topydo.
ui.
cli.CLI
import
CLIApplication
from
topydo.
u
i.CLIApplicationBase
import
MAIN_OPTS
,
error
# enable color on windows CMD
if
"win32"
in
sys
.
platform
:
...
...
@@ -41,13 +41,13 @@ def main():
if
args
[
0
]
==
'prompt'
:
try
:
from
topydo.
cli
.Prompt
import
PromptApplication
from
topydo.
ui.prompt
.Prompt
import
PromptApplication
PromptApplication
().
run
()
except
ImportError
:
error
(
"You have to install prompt-toolkit to run prompt mode."
)
elif
args
[
0
]
==
'columns'
:
try
:
from
topydo.ui.Main
import
UIApplication
from
topydo.ui.
columns.
Main
import
UIApplication
UIApplication
().
run
()
except
ImportError
:
error
(
"You have to install urwid to run column mode."
)
...
...
topydo/cli/CLI.py
→
topydo/
ui/
cli/CLI.py
View file @
e8061b08
...
...
@@ -18,7 +18,7 @@
import
sys
from
topydo.
cl
i.CLIApplicationBase
import
CLIApplicationBase
,
error
from
topydo.
u
i.CLIApplicationBase
import
CLIApplicationBase
,
error
from
topydo.lib
import
TodoFile
from
topydo.lib.Config
import
config
,
ConfigError
...
...
topydo/cli/__init__.py
→
topydo/
ui/
cli/__init__.py
View file @
e8061b08
File moved
topydo/ui/ColumnLayout.py
→
topydo/ui/
columns/
ColumnLayout.py
View file @
e8061b08
File moved
topydo/ui/CommandLineWidget.py
→
topydo/ui/
columns/
CommandLineWidget.py
View file @
e8061b08
File moved
topydo/ui/ConsoleWidget.py
→
topydo/ui/
columns/
ConsoleWidget.py
View file @
e8061b08
...
...
@@ -19,7 +19,7 @@ import urwid
from
topydo.lib.Color
import
AbstractColor
from
topydo.lib.Todo
import
Todo
from
topydo.lib.TopydoString
import
TopydoString
from
topydo.ui.Utils
import
PaletteItem
from
topydo.ui.
columns.
Utils
import
PaletteItem
PALETTE_LOOKUP
=
{
# omitting AbstractColor.NEUTRAL on purpose, so a text without any
...
...
topydo/ui/KeystateWidget.py
→
topydo/ui/
columns/
KeystateWidget.py
View file @
e8061b08
File moved
topydo/ui/Main.py
→
topydo/ui/
columns/
Main.py
View file @
e8061b08
...
...
@@ -22,15 +22,7 @@ import urwid
from
collections
import
namedtuple
from
string
import
ascii_uppercase
from
topydo.cli.CLIApplicationBase
import
CLIApplicationBase
from
topydo.Commands
import
get_subcommand
from
topydo.ui.CommandLineWidget
import
CommandLineWidget
from
topydo.ui.ConsoleWidget
import
ConsoleWidget
from
topydo.ui.KeystateWidget
import
KeystateWidget
from
topydo.ui.TodoListWidget
import
TodoListWidget
from
topydo.ui.Utils
import
PaletteItem
,
to_urwid_color
from
topydo.ui.ViewWidget
import
ViewWidget
from
topydo.ui.ColumnLayout
import
columns
from
topydo.lib.Config
import
config
,
ConfigError
from
topydo.lib.Sorter
import
Sorter
from
topydo.lib.Filter
import
get_filter_list
,
RelevanceFilter
,
DependencyFilter
...
...
@@ -38,6 +30,14 @@ from topydo.lib.Utils import get_terminal_size
from
topydo.lib.View
import
View
from
topydo.lib
import
TodoFile
from
topydo.lib
import
TodoList
from
topydo.ui.CLIApplicationBase
import
CLIApplicationBase
from
topydo.ui.columns.CommandLineWidget
import
CommandLineWidget
from
topydo.ui.columns.ConsoleWidget
import
ConsoleWidget
from
topydo.ui.columns.KeystateWidget
import
KeystateWidget
from
topydo.ui.columns.TodoListWidget
import
TodoListWidget
from
topydo.ui.columns.Utils
import
PaletteItem
,
to_urwid_color
from
topydo.ui.columns.ViewWidget
import
ViewWidget
from
topydo.ui.columns.ColumnLayout
import
columns
COLUMN_WIDTH
=
40
...
...
topydo/ui/TodoListWidget.py
→
topydo/ui/
columns/
TodoListWidget.py
View file @
e8061b08
...
...
@@ -16,8 +16,8 @@
import
urwid
from
topydo.ui.TodoWidget
import
TodoWidget
from
topydo.lib.Utils
import
translate_key_to_config
from
topydo.ui.columns.TodoWidget
import
TodoWidget
def
get_execute_signal
(
p_prefix
):
...
...
topydo/ui/TodoWidget.py
→
topydo/ui/
columns/
TodoWidget.py
View file @
e8061b08
...
...
@@ -20,7 +20,7 @@ import urwid
from
topydo.lib.Config
import
config
from
topydo.lib.ListFormat
import
ListFormatParser
from
topydo.lib.ProgressColor
import
progress_color
from
topydo.ui.Utils
import
PaletteItem
,
to_urwid_color
from
topydo.ui.
columns.
Utils
import
PaletteItem
,
to_urwid_color
# pass a None todo list, since we won't use %i or %I here
PRIO_FORMATTER
=
ListFormatParser
(
None
,
"%{(}p{)}"
)
...
...
topydo/ui/Utils.py
→
topydo/ui/
columns/
Utils.py
View file @
e8061b08
File moved
topydo/ui/ViewWidget.py
→
topydo/ui/
columns/
ViewWidget.py
View file @
e8061b08
File moved
topydo/ui/columns/__init__.py
0 → 100644
View file @
e8061b08
topydo/
cli
/Prompt.py
→
topydo/
ui/prompt
/Prompt.py
View file @
e8061b08
...
...
@@ -20,8 +20,8 @@ import os.path
import
shlex
import
sys
from
topydo.
cl
i.CLIApplicationBase
import
CLIApplicationBase
,
error
,
usage
from
topydo.
cli
.TopydoCompleter
import
TopydoCompleter
from
topydo.
u
i.CLIApplicationBase
import
CLIApplicationBase
,
error
,
usage
from
topydo.
ui.prompt
.TopydoCompleter
import
TopydoCompleter
from
prompt_toolkit.shortcuts
import
prompt
from
prompt_toolkit.history
import
InMemoryHistory
...
...
topydo/
cli
/TopydoCompleter.py
→
topydo/
ui/prompt
/TopydoCompleter.py
View file @
e8061b08
File moved
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