Git Product home page Git Product logo

taskover-cli's Introduction

๐Ÿ“• Taskover

taskover command line interface

Taskover is a simple and fast todo list with Vim-like keybindings made in Python.

  • Add tasks swiftly, mark them as done and delete them when you're finished.
  • If you use Vim, this program's commands will be familiar.

This program is minimal and only requires Python 3. If you know some Python, it's easy to hack and change this program to suit your needs.

Python SQLite

Dependencies

python3

How to run

Unix-based (Linux)

git clone https://github.com/angelofallars/taskover

cd taskover

chmod +x ./taskover

./taskover

Windows

git clone https://github.com/angelofallars/taskover

cd taskover

python3 .\main.py

Usage

taskover - Run the program

usage: taskover [options]

Options:
  help        Display this help message.
  list        Print the tasks ordered numerically and exit.

Program keywords:
  j - move downwards
  k - move upwards
  i - Insert a new task
  u - Update the description of a task
  m - Mark a task as done (or unmark a completed task)
  d - Delete a task
  q - Quit the program

Contributing

This project is still in progress. Feel free to make a fork and contribute changes you think will be good!

taskover-cli's People

Contributors

angelofallars avatar melan96 avatar

Stargazers

Timothy K. Ofori avatar Kara avatar Snooze avatar  avatar John Luc Cubos avatar ัฯƒโˆ‚ัฮน avatar

Watchers

 avatar  avatar

Forkers

melan96

taskover-cli's Issues

Add WIndows support

The getch() function from kb.py (file) instantly reads input from the user without having to press enter. The problem is that this function is Unix-only (Linux/macOS) and would not work in Windows-based systems. It should detect the type of OS the user is running and then run differently as a result.

Right now, the getch() function looks like this:

def getch():
    fd = sys.stdin.fileno()
    old_settings = termios.tcgetattr(fd)
    try:
        tty.setraw(sys.stdin.fileno())
        ch = sys.stdin.read(1)
 
    finally:
        termios.tcsetattr(fd, termios.TCSADRAIN, old_settings)
    return ch

To add Windows support:

def getch():
    # Unix (Linux / macOS)
    if os.name != "nt":
        fd = sys.stdin.fileno()
        old_settings = termios.tcgetattr(fd)
        try:
            tty.setraw(sys.stdin.fileno())
            ch = sys.stdin.read(1)

        finally:
            termios.tcsetattr(fd, termios.TCSADRAIN, old_settings)
        return ch
    # Windows
    else:
        # TODO: !!! Add the Windows-specific code here !!!
        pass

This could be as simple as just looking up how to get instant input from the keyboard in Python in Windows and copy-pasting the code.

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.