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
16f397f1
Commit
16f397f1
authored
Feb 09, 2017
by
Bram Schoenmakers
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix -E flag
parent
ebb3b4c2
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
topydo/commands/EditCommand.py
topydo/commands/EditCommand.py
+3
-2
No files found.
topydo/commands/EditCommand.py
View file @
16f397f1
...
...
@@ -17,6 +17,7 @@
import
os
import
codecs
import
tempfile
import
shlex
from
subprocess
import
CalledProcessError
,
check_call
from
topydo.lib.Config
import
config
...
...
@@ -48,7 +49,7 @@ class EditCommand(MultiCommand):
self
.
edit_archive
=
True
self
.
multi_mode
=
False
elif
p_opt
==
'-E'
:
self
.
editor
=
p_value
self
.
editor
=
shlex
.
split
(
p_value
)
def
_process_flags
(
self
):
"""
...
...
@@ -82,7 +83,7 @@ class EditCommand(MultiCommand):
def
_open_in_editor
(
self
,
p_file
):
try
:
return
check_call
(
config
().
editor
()
+
[
p_file
])
return
check_call
(
self
.
editor
+
[
p_file
])
except
CalledProcessError
:
self
.
error
(
'Something went wrong in the editor...'
)
return
1
...
...
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