GithubHelp home page GithubHelp logo

davenull / dirnote Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 0.0 10.98 MB

A little cli tool to keep notes about your directories, without putting the notes in the directory! Powered by sqlite, written in golang.

License: Apache License 2.0

Go 100.00%

dirnote's Introduction

dirnote - Notes for dirs

Why keep notes about directories in the directories? I can't think of a good reason...

So I created dirnotes, a simple CLI app written in go, powered by sqlite. Simply cd to your dir, and type dn get to see the notes you created previously. No need to remeber what dir you are in, dirnotes follows you around your computer.

Install

wget https://github.com/davenull/dirnote/releases/download/dev0.0.2/dn-osx-ARM64
mv dn-osx-ARM64 dn
chmod +x
mv dn ~/bin/

Add the following to your .bashrc or .zshrc

export PATH="$HOME/bin:$PATH"

Usage

To initialize a dir, add a note!!

dn add "Hello dirnote!"

On first run, dirnote will set itself up and create the database, then you just use it!

Backing Up dirnote DB

As the DB is only open when you run the command, backing up the db file to a cloud drive is simple. The only thing you need to save is ~/.dirnote/dirnotes.sqlite and you can rest assured your notes are safe!

CLI help output

  dn help
/Users/birdie/.dirnote
An app to keep notes for your dirs

Usage:

    dirnote <command> [arguments...]

The commands are:

    add               adds a new note in the current dir
    del               deletes a note by global ID
    get               gets notes for the dir
    help              shows help message
    version           shows version of the application

Version: the best v0.0.1

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.