gemini-capsule

My gemini capsule
git clone git://jb55.com/gemini-capsule
Log | Files | Refs

gemini-notes.gmi (1296B)


      1 
      2 
      3 # Gemini Notetaking
      4 
      5 This is an experiment to use gemini documents (.gmi) as a way to take notes. One thing that is different about gemini documents from plaintext documents is that plaintext is typically formatted into 80 columns. Gemini documents are designed to flow so there is no explicit linebreaking.
      6 
      7 Gemini also supports basic document formatting such as:
      8 
      9 ## Unordered Lists
     10 
     11 * Item 1
     12 * Item 2
     13 * Item 3
     14 
     15 ## Quoted lines
     16 
     17 > But the motion to keep the planet going in a straight line has no known reason. The reason why things coast for ever has never been found out.  The law of inertia has no known origin.
     18 
     19 ## Formatted blocks
     20 
     21 ```c
     22 /* number of leading zero bits in a byte */
     23 static inline int
     24 msb(unsigned char b)
     25 {
     26 	int n = 0;
     27 
     28 	if (b == 0)
     29 		return 8;
     30 
     31 	while (b >>= 1)
     32 		n++;
     33 
     34 	return 7-n;
     35 }
     36 ```
     37 
     38 ## Links
     39 
     40 Probably my favourite feature of gemini documents is non-inline links. You can do non-inline links with markdown using [1] references, but I find gemini links are a bit cleaner:
     41 
     42  => index.gmi	Index
     43 
     44 Which appears as
     45 
     46 => index.gmi	Index
     47 
     48 This doesn't break the reading flow like inline links do when viewing a raw markdown document. This is a big deal since I still want to be able to traverse links from within vim (gf) without having the visual nausea of inline links.