Daily::Txt
daily-txt is command line script for creating and listing text files that has a filename with current date.
Usage
$ daily-txt
A command above creates text file at /$ROOT/text/$YYYY/$MM/$YYYY$MM$DD.txt and open it with default editor. If it already exists, just open it for appending.
Initialize
daily-txt command asks ROOT directory and default editor at initial startup, and stores setting to ~/.daily-txt.rc.
$ daily-txt
Document Root? (/Document/daily-txt/):
Default Editor? (/usr/bin/vim):
Setting stored to ~/.daily-txt.rc
Listing
List text files
$ daily-txt -l
/your/root/text/2016/04/2016_04_23.txt
/your/root/text/2016/04/2016_04_24.txt
/your/root/text/2016/04/2016_05_04.txt
Installation
Add this line to your application's Gemfile:
gem 'daily-txt'
And then execute:
$ bundle
Or install it yourself as:
$ gem install daily-txt
Contributing
Bug reports and pull requests are welcome on GitHub at https://github.com/[USERNAME]/daily-txt. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the Contributor Covenant code of conduct.
License
The gem is available as open source under the terms of the MIT License.