File tree (yaml-file-tree)

I started making a yaml file tree program: GitHub - losnappas/yaml-file-tree: Create a yaml representation of the current directory

I took inspiration from the ki editor, which has a thing like it.

Using yaml has the benefit that it can work with LSP/tree sitter, and then work with multiple editors out of the box. That’s speculative, though (certainly my experiment doesn’t integrate those yet, and kak-lsp doesn’t support scratch buffers). E.g. code folding could be used to hide folders (tho that also not in kakoune atm).

Haven’t thought it out too far, but I’m thinking of adding flags to the tree and then sending the yaml to the program so it can do actions on the files, e.g. mark file for deletion with d and then I shovel the entire yaml tree back to the program and it’ll delete the file that has the mark on it. Just based on text!

1 Like