this post was submitted on 12 Sep 2024
3 points (80.0% liked)

Kakoune

23 readers
7 users here now

Unofficial community for talking about the kakoune text-editor.

Official website: http://kakoune.org/

Official Forum: https://discuss.kakoune.com/

Github: https://github.com/mawww/kakoune

The Kakoune logo is designed by p0nce

founded 1 year ago
MODERATORS
 

I think this might be relevant for this community :)

I learned of a nice way to notate trees in raw text. It is as follows:

-a
 |
 +-aa
 | |
 | +-aaa
 | |
 | +-aab
 |
 +-ab
   |
   +-aba
   |
   +-abb

I hope this example demonstrates it fine :)

I was wondering though - Are there any good ways to notate matrices in raw text ?

Please share, if you have any notation for matrices or other nice ways to notate stuff in raw text :)

top 3 comments
sorted by: hot top controversial new old
[–] [email protected] 2 points 4 months ago (1 children)

Here’s the Matrix in plaintext:

[–] [email protected] 2 points 4 months ago
[–] [email protected] 2 points 4 months ago

for matrices, the best I've come up with is either a nested list approach like A = [[a, b], [c, d]] or a maybe this

    +-    -+
    | a  b |
A = |      |
    | c  d |
    +-    -+