Giter Site home page Giter Site logo

terminal-todo's Introduction

This repo is currently home to two related projects:

  • reterm - a reagent / react-like way of creating terminal interfaces
  • terminal-todo - a todo list app that runs in your terminal (built with reterm)

reterm

A clojure library for creating terminal applications in a react-like way. The API is similar to reagent.

Wraps clojure-lanterna, which wraps Lanterna.

Ex.

(ns retermdemo.core
  (:require
    [reterm.core :as r]))

(defn sub-view [ns]
  [:div {}
   (for [n ns]
     [:div {} (str n)])])

(defn app-view []
  [:div {:bg :red
         :on-keypress (fn [event]
                        (case (event :key)
                          :escape (r/stop!)
                          nil))}
   [:div {:bg :blue} "hello" " " "world"]
   [sub-view (range 5)]])

(r/start! :swing [app-view])

screenshot

terminal-todo

When working on a project, I typically keep a todo-list in a browser-based task manager (Asana, github issues, etc.). But, when coding, I live in tmux and I tend to keep a todo-list in vim in a tmux pane (it's "right there", faster, and more keyboard friendly than the browser-based alternative). But now I have two lists, and I have to manually sync them. Ugh!

Hence... a terminal todo-list app, with a pluggable backend (filesystem, Asana, github issues, etc.)

Built using clojure

To run in terminal: lein run

To run in swing: lein run :swing

To run repl: lein repl

terminal-todo's People

Contributors

10plusy avatar rafd avatar

Watchers

 avatar  avatar  avatar

Forkers

10plusy

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.