Giter Club home page Giter Club logo

final_magic_note's Introduction

fmagic_note

Description:

This is a magic tool, with which you can not only write down and manage
your notes easily but also search/edit/run them easily.

You can also use another wrap tool -> magicnote_git to manage your notes, which
hold in git repository, that may help you sync your notes easier if you prefer to
use git

DEPENDENCE

Require Lua 5.1+
Require Linux or MacOS Operation System

NOTE:

1. Better to separate using magicnote and magicnote_git, or your data repository may
need extra efforts to repair
2. If you want to use command auto complete, just include magicnote_complete.bash or
magicnote_complete_git.bash in your bashrc

Install:

./install.sh
or
./install.sh prefix=/usr/local/

Command:

bash-$ magicnote
usage:
  \_ magicnote addsource
  \_ magicnote ls [-p] [tag1 [ tag2 ...]]
  \_ magicnote add [-t tagname1 [tagname2 ...]] [file | tag@index]
  \_ magicnote rm tag@index [tag2@index2 ...]
  \_ magicnote edit tag@index [tag2@index2 ...]
  \_ magicnote find [-p] tag1 tag2 ...
  \_ magicnote run tag@index [tag2@index2 ...]
  \_ magicnote revert
  \_ magicnote show [-v]
  \_ magicnote gc

bash-$ magicnote_git
usage:
  \_ magicnote_git addsource source
  \_ magicnote_git ls [-p] [tag1 [ tag2 ...]]
  \_ magicnote_git add [-t tagname1 [tagname2 ...]] [file | tag@index]
  \_ magicnote_git rm tag@index [tag2@index2 ...]
  \_ magicnote_git edit tag@index [tag2@index2 ...]
  \_ magicnote_git find [-p] tag1 tag2 ...
  \_ magicnote_git run tag@index [tag2@index2 ...]
  \_ magicnote_git status
  \_ magicnote_git push
  \_ magicnote_git pull
  \_ magicnote_git revert
  \_ magicnote_git show [-v]
  \_ magicnote_git gc

Samples

addsource

  bash-$ magicnote addsource

list

  bash-$ magicnote ls
  ssh
    |- @1 #1: ssh 127.0.0.1
    |- @2 #1: ssh -P 1234 127.0.0.1

run

  bash-$ magicnote run ssh@1
  Last login: Mon Dec 17 14:23:10 2012 from localhost
  Property of Final, Inc.
  Unauthorized use prohibited.
  bash:~$ exit
  logout
  Connection to 127.0.0.1 closed.
  bash-$

find

  bash-$ magicnote find 1234
  ssh
    |- @2 #1: ssh -P 1234 127.0.0.1
  bash-$ magicnote find 123
  ssh
    |- @2 #1: ssh -P 1234 127.0.0.1

final_magic_note's People

Contributors

finaldie avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

final_magic_note's Issues

Easy to control the max display string length

now, I hard code the max display string length is 120 bytes for one line, future need to improve that , such as serval solutions:

  1. add a global config, using that control the max length
  2. enhancement "list" command, add a new arg for show the whole line
  3. add new command, e.g. "show"

Now, I prefer the option 2, need to try that

Support switching data repository

Now, I just left a basic config "CURRENT" for changing data repository. But it's not user friendly, for future we may need to support switching repository by a easy way.

Remove a group of notes

Currently, rm command only remove one note, instead can enhance it to remove a groups of notes for a tag name.

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.