1
Fork 0

start at end of file when editing

This commit is contained in:
Jan-Erik Rediger 2011-09-28 21:53:50 +02:00
parent 566ce3522d
commit 9fc37b730b

View file

@ -28,4 +28,4 @@ date = Time.now.strftime("%d.%m.%Y %H:%M")
puts "new post: #{title}"
puts "file: #{filename}"
File.open(file, "w"){|f| f.write(HEADER % [title, date]) }
exec EDITOR, file
exec EDITOR, '+', file