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
37cf7e34
Commit
37cf7e34
authored
Jan 07, 2016
by
Bram Schoenmakers
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
'L' and 'R' swap the current column with the left/right neighbor
parent
a17a0ef5
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
0 deletions
+16
-0
topydo/ui/Main.py
topydo/ui/Main.py
+16
-0
No files found.
topydo/ui/Main.py
View file @
37cf7e34
...
@@ -215,6 +215,8 @@ class UIApplication(CLIApplicationBase):
...
@@ -215,6 +215,8 @@ class UIApplication(CLIApplicationBase):
'E'
:
self
.
_edit_column
,
'E'
:
self
.
_edit_column
,
'D'
:
self
.
_delete_column
,
'D'
:
self
.
_delete_column
,
'Y'
:
self
.
_copy_column
,
'Y'
:
self
.
_copy_column
,
'L'
:
self
.
_swap_column_left
,
'R'
:
self
.
_swap_column_right
,
}
}
try
:
try
:
...
@@ -273,6 +275,20 @@ class UIApplication(CLIApplicationBase):
...
@@ -273,6 +275,20 @@ class UIApplication(CLIApplicationBase):
self
.
columns
.
focus_position
=
len
(
self
.
columns
.
contents
)
-
1
self
.
columns
.
focus_position
=
len
(
self
.
columns
.
contents
)
-
1
self
.
_blur_commandline
()
self
.
_blur_commandline
()
def
_swap_column_left
(
self
):
pos
=
self
.
columns
.
focus_position
if
pos
>
0
:
_columns
=
self
.
columns
.
contents
_columns
[
pos
],
_columns
[
pos
-
1
]
=
_columns
[
pos
-
1
],
_columns
[
pos
]
self
.
columns
.
focus_position
-=
1
def
_swap_column_right
(
self
):
pos
=
self
.
columns
.
focus_position
_columns
=
self
.
columns
.
contents
if
pos
<
len
(
_columns
)
-
1
:
_columns
[
pos
],
_columns
[
pos
+
1
]
=
_columns
[
pos
+
1
],
_columns
[
pos
]
self
.
columns
.
focus_position
+=
1
@
property
@
property
def
_console_visible
(
self
):
def
_console_visible
(
self
):
contents
=
self
.
mainwindow
.
contents
contents
=
self
.
mainwindow
.
contents
...
...
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