A new tool — magicnote, let’s rock your notes

Table of Contents

I dont know whether you encounter these issue:

  1. Many snippets in anywhere, sometimes you can’t find it when you want to use that
  2. A large size of text hold all kinds of snippets, you can’t find what you want quickly
  3. When you want to run a command in your note, you need to copy first, then switch window, then paste it into terminal. if you using mac, maybe you also need to switch desktop to find which window you need to paste.
  4. Sometimes, you want to sync your notes to other place or share your note to others or want to take a look at others’ notes/snippets, you reach that hardly.
  Ok, stop to list, if you encounter them and want to make a change, just follow me. –> I share you a new tool which almost can resolve these issues –> magicnote
  If you want to try that, follow the README, install and try it. The command is easy:
bash~$ magicnote
usage:
  \_ magicnote addsource source
  \_ magicnote list [tag1 [ tag2 ...]]
  \_ magicnote add [-tag tagname]
  \_ magicnote rm tag@index [tag2@index2 ...]
  \_ magicnote edit tag@index [tag2@index2 ...]
  \_ magicnote find tag1 tag2 ...
  \_ magicnote run tag@index [tag2@index2 ...]
  \_ magicnote gc
bash~$ magicnote list
ipv6
  |- @1      : # ipv6
  |-       #1: ping6 -I eth0 fe80::250:56ff:fe1d:66c0
  |-       #2: ping6 -I eth0 ff02::1
  |-       #3: telnet fe80::250:56ff:fe1d:66c0%eth0 8080
  The powerful run command:
bash~$ magicnote run ping@1
ready to run:
ping 127.0.0.1
PING 127.0.0.1 (127.0.0.1): 56 data bytes
64 bytes from 127.0.0.1: icmp_seq=0 ttl=64 time=0.043 ms
64 bytes from 127.0.0.1: icmp_seq=1 ttl=64 time=0.093 ms
64 bytes from 127.0.0.1: icmp_seq=2 ttl=64 time=0.044 ms
64 bytes from 127.0.0.1: icmp_seq=3 ttl=64 time=0.126 ms
^C
--- 127.0.0.1 ping statistics ---
4 packets transmitted, 4 packets received, 0.0% packet loss
round-trip min/avg/max/stddev = 0.043/0.076/0.126/0.035 ms
  This tool is a newbie, so it may contain some bugs, or issues, just free to open a issue on github, I’ll try my best to fix/improve that, or you can send a pull request for me, that will be better.
  So, in the end, have a fun :D