summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLars Wirzenius <liw@liw.fi>2014-11-22 20:02:59 +0200
committerLars Wirzenius <liw@liw.fi>2014-11-22 20:02:59 +0200
commit39055e208b1fcb6fc3e5c975f4b529fe6c051c67 (patch)
treee167f623cf768181c3251106a9cab08554242b9d
parent282e41cc67741a1bf0ed04a3549d1608e9c10d68 (diff)
downloadjt-39055e208b1fcb6fc3e5c975f4b529fe6c051c67.tar.gz
Invoke editor on new topic page
-rwxr-xr-xjt1
1 files changed, 1 insertions, 0 deletions
diff --git a/jt b/jt
index 72fcedb..6ce9ffc 100755
--- a/jt
+++ b/jt
@@ -244,6 +244,7 @@ class NewTopicCommand(Command):
pathname = self._topic_pathname(args[0])
self._create_topic_page(pathname, args[1])
+ self._app.edit_file(pathname)
def _topic_pathname(self, page_path):
return os.path.join(self._app.settings['source'], page_path + '.mdwn')