Giter VIP home page Giter VIP logo

ants's Introduction

ants

ants - A Note Taking System

ants is a lightweight, command-line note-taking system written in Haskell.

Highlights

  • Implemented in Haskell
  • Lightweight and efficient
  • Text editor integration
  • Language server features:
    • Auto-completion
    • Hover information
    • Go to Definition
    • Find References
  • Creating notes from templates
  • Advanced filters
  • Mind mapping
  • Extensive Markdown grammar support - See config.md

Installation

Ensure you have stack installed.

stack install

Usage

Initializing

ants init

Initializes an empty Note Taking System in the current directory.

Creating Notes from Templates

ants new -t "My Note" DIR

This command creates a new note titled "My Note" in the directory specified by DIR, using predefined templates.

Available options:

-t, --title TITLE               Title of the note
-n, --name NAME                 Name of the author
-e, --email [email protected]   Email of the author
DIR                             Directory to create the note
VARNAME=VALUE                   Variables to override default config settings
-h, --help                      Show help information

Filter

To filter and sort notes:

ants list [-s|--sort FIELD] [-f|--filter FILTER]

For detailed query language options, see query.md.

Mind Map

To generate a mind map of all notes in the current directory in Graphviz's dot language:

ants graph

To export the mind map as an SVG file:

ants graph --svg

Make sure you have Graphviz installed and in your PATH.

Shell completions

Bash

Add the following to your ~/.bashrc:

source <(ants --bash-completion-script `which ants`)

And restart the shell.

Zsh

Oh-my-zsh
ants --zsh-completion-script `which ants` > ~/.oh-my-zsh/completions/_ants
Generic
mkdir -p ~/.ants-completions
ants --zsh-completion-script `which ants` > ~/.ants-completions/_ants

Then add the following to the start of your ~/.zshrc:

fpath=(~/.ants-completions $fpath)

If this still does not work after restarting the shell, you might need to add the following to the end of your ~/.zshrc:

autoload -Uz compinit
compinit

And restart the shell again.

Fish

mkdir -p ~/.config/fish/functions
ants --fish-completion-script $(which ants) > ~/.config/fish/functions/ants.fish

And restart the shell.

Configuration

Configuration files are located at .ants/config.json.

For more information, see config.md.

ants's People

Contributors

isrothy avatar q234rty avatar

Stargazers

Yang Ming-Tian avatar  avatar

Watchers

 avatar  avatar

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.