start at end of file when editing
This commit is contained in:
parent
566ce3522d
commit
9fc37b730b
2
ext/post
2
ext/post
|
@ -28,4 +28,4 @@ date = Time.now.strftime("%d.%m.%Y %H:%M")
|
||||||
puts "new post: #{title}"
|
puts "new post: #{title}"
|
||||||
puts "file: #{filename}"
|
puts "file: #{filename}"
|
||||||
File.open(file, "w"){|f| f.write(HEADER % [title, date]) }
|
File.open(file, "w"){|f| f.write(HEADER % [title, date]) }
|
||||||
exec EDITOR, file
|
exec EDITOR, '+', file
|
||||||
|
|
Loading…
Reference in a new issue