Skip to content

nick-kanakis/tefter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

tefter

Build Status Go Report Card Coverage Status

Tefter is a simple note manager written in Go, inspired by Shiori. New notes can be created (with vim), updated and viewed without exiting the terminal. Notes can also be collected to notebooks and flagged with tags.

gui vim

Table of Content

Features

  • Use it without ever leaving your terminal
  • Organize notes per notebook and tags
  • Search notes based on notebooks, tags, or by a keyword
  • Import/Export from/to a json file.
  • All package into one executable file
  • Rest API thor 3rd party integration

Installation

You can download the latest version from the release page. To build from source, you should have go installed and then run:

go get github.com/nicolasmanic/tefter

Finally put the binary in your PATH.

Note: Vim should be available on your system!

Usage

Tefter is a simple memo book application

Usage:
  tefter [command]

Available Commands:
  account        Add/Delete/Print account
  add            Create a new note
  delete         Delete one or more notes based on ID(s)
  deleteNotebook Delete one or more notebooks based on title
  export         Exports notes to json format
  help           Help about any command
  import         Import notes from json file
  overview       Take a quick glance at the available notebooks and notes
  print          Print notes
  search         Search notes given a keyword
  serve          Initiate rest API interface
  update         Update existing note
  updateNotebook Set new title to an existing notebook

Flags:
  -h, --help   help for tefter

Use "tefter [command] --help" for more information about a command.

Examples

  1. Create a new account for rest API.
tefter account add
  1. Delete a account .
tefter account delete
  1. Print active usernames .
tefter account print
  1. Create a new note, with title: "Bali 2018", tags: "vacation" & "summer" and insert it into notebook with title: "lists".
tefter add -t "Bali 2018" --tags vacation,summer -n lists
  1. Delete notes, with id 42 & 23
tefter delete 42,23
  1. Delete notebooks with title: "lists" and "expenses".
tefter deleteNotebook lists,expenses
  1. Export notes all notes from "lists" and "expenses" notebooks to a json file
tefter export -n lists,expenses
  1. Import notes from a json file at path "documents/notes.json"
tefter import documents/notes.json
  1. Print available notebooks & notes (titles only)
tefter overview -d
  1. Initiate the graphic interface.
tefter print -a
  1. Search notes for "2018" keyword
tefter search 2018
  1. Initiate rest API endpoint on port 8081
tefter serve -p 8081
  1. Update note with id 42, remove tag "2018" and add tag "2019" also set the title to "Bali 2019"
tefter update 42 -t "Bali 2019" --tags -2018,2019
  1. Update notebook with title "lists", to title "2018 lists"
tefter updateNotebook "lists" "2018 lists"