# Frangipanni - tool for converting text into trees

**URL:** <https://discuss.kakoune.com/t/frangipanni-tool-for-converting-text-into-trees/1661>\
**Category:** Terminal Tools\
**Created:** [April 2, 2021, 8:01pm UTC](https://discuss.kakoune.com/t/frangipanni-tool-for-converting-text-into-trees/1661 "2021-04-02T20:01:51Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![TeddyDD](https://discuss.kakoune.com/user_avatar/discuss.kakoune.com/teddydd/32/21_2.png) [@TeddyDD](https://discuss.kakoune.com/u/TeddyDD)\
**Post date:** [April 2, 2021, 8:01pm UTC](https://discuss.kakoune.com/t/frangipanni-tool-for-converting-text-into-trees/1661/1 "2021-04-02T20:01:51Z")

</div>

> **[birchb1024/frangipanni](https://github.com/birchb1024/frangipanni)**
>
> Program to convert lines of text into a tree structure.

For example it can convert output of find into a nicely formatted tree (or JSON).

```bash
$ cd fzf.kak/
 k/p/fzf.kak $ fd . | frangipanni -breaks /
CODE_OF_CONDUCT.md
CONTRIBUTING.md
LICENSE
README.md
rc
    fzf.kak
    modules
        VCS
            fzf-bzr.kak
            fzf-git.kak
            fzf-hg.kak
            fzf-svn.kak
        fzf-buffer.kak
        fzf-cd.kak
        fzf-ctags.kak
        fzf-file.kak
        fzf-grep.kak
        fzf-project.kak
        fzf-search.kak
        fzf-vcs.kak
        sk-grep.kak

```

More examples in the readme.

---

<div class="post-metadata">

**Author:** ![andreyorst](https://discuss.kakoune.com/user_avatar/discuss.kakoune.com/andreyorst/32/29_2.png) [@andreyorst](https://discuss.kakoune.com/u/andreyorst)\
**Post date:** [April 3, 2021, 10:38am UTC](https://discuss.kakoune.com/t/frangipanni-tool-for-converting-text-into-trees/1661/2 "2021-04-03T10:38:03Z")

</div>

it took me a good minute to understand why the structure is wrong, as there is no `VCS/fzf` entry in `fzf.kak`. But then I’ve understood that this is a way to format files with a common `fzf-` prefix. I wonder if this can be disabled. Will go read their readme now that’s I’ve figured it out 😃

---

<div class="post-metadata">

**Author:** ![TeddyDD](https://discuss.kakoune.com/user_avatar/discuss.kakoune.com/teddydd/32/21_2.png) [@TeddyDD](https://discuss.kakoune.com/u/TeddyDD)\
**Post date:** [April 3, 2021, 8:48pm UTC](https://discuss.kakoune.com/t/frangipanni-tool-for-converting-text-into-trees/1661/3 "2021-04-03T20:48:30Z")

</div>

Fixed 😉
