Project

daily-txt

0.0
No commit activity in last 3 years
No release in over 3 years
daily-txt is command line script for creating and listing text files wth a current date filename.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
 Dependencies

Development

~> 1.11
~> 10.0
~> 3.0
 Project Readme

Daily::Txt

daily-txt is command line script for creating and listing text files that has a filename with current date.

Usage

$ daily-txt

The 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 editing.

Initialize

At initial startup, daily-txt command asks ROOT directory and default editor. And it stores setting to ~/.daily-txt.rc.

$ daily-txt

Document Root? (/Document/daily-txt/): 
Default Editor? (/usr/bin/vim): 

Setting stored to ~/.daily-txt.rc

Open past file

-p 1 for yesterday, -p 2 for the day before yesterday.

$ daily-txt -p 1

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

Search files with text

$ daily-txt -s "search query"

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.