Giter Site home page Giter Site logo

battlelogs's Introduction

battlelogs


A minimal personal journaling system, for the command-line, I wrote for myself.

Installation

To install, clone this repository to your machine and run:

cabal install

Usage

$ blg
Usage:
      blg init
      blg commit [-m=<message>]
      blg show
      blg [-hp]

Options:
      -h --help  Show this help message
      -p --path  Print the current `.battlelogs.md` in use

      -m --message Enter an entry without spawning an editor

To add entries to the battle log do:

$ blg commit -m "Hello World"

This will create a .battlelogs.md file in your $HOME directory and add an entry to it. Typing blg commit without the -m flag will cause blg to open your default text editor ($EDITOR) and capture its output, adding it to the logs file.

The blg init command is meant to create "local" battle logs. Running it will create an empty .battlelogs.md file in the current directory, which will automatically become blg's output file.

blg show (as of right now) will simply open the .battlelogs.md file in use in the system's $PAGER. Pretty colors and a better logging display (and format) are a todo.

License

This code is licensed under the GPLv2 License. See LICENSE for more information.

battlelogs's People

Contributors

yamadapc avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar  avatar

battlelogs's Issues

blg edit

We should be able to edit previous entries, without manually editing the log file. This is much more because of principle and concept, than because of implementation. The basic implementation could very well just use regexes to split the log file.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.