samg / timetrap

Simple command line timetracker
http://rubygems.org/gems/timetrap
Other
1.48k stars 115 forks source link

Ability to edit notes #133

Closed patrickdavey closed 8 years ago

patrickdavey commented 8 years ago

Hi Sam,

Here's a PR to add the ability to edit notes using the external editor.

I also slightly tweaked the text formatter so that long lines (and lines with linebreaks) now are displayed a little more nicely. Now that it's possible to insert linebreaks (even likely) in the notes, the text formatting was looking a bit bad. It's not very clever, it just finds the first whitespace after 50 chars and then goes onto the next line. Feel free to nuke it if you don't like it.

Let me know if there's anything you want changed etc. Best, Patrick

Relates to PR #131 and extends it to allow editing notes in external editor.

samg commented 8 years ago

Thanks! I'll plan to take a closer look in the next few days and get this merged and released.

samg commented 8 years ago

Released in version 1.11.0. Thanks!

https://rubygems.org/gems/timetrap/versions/1.11.0