# A TUI File tree panel ![image](https://user-images.githubusercontent.com/3133596/128500582-5682d56c-7f26-4aa1-a3a5-33a0158fcddb.png) Built for integration with [kakoune](https://github.com/mawww/kakoune), but with a little bit of configuration, it can be used with most TUIs, or even as a minimal terminal file manager in its own right. Currently in early alpha stage, PRs are welcome! ## Installation Since sidetree is published on [crates.io](https://crates.io/crates/sidetree), any system with `cargo` installed can simply get sidetree by running ```sh cargo install sidetree ``` ## Example integration Very simple integration with [kakoune](https://github.com/mawww/kakoune) in tmux: ```kak map -docstring 'file explorer' global normal ':connect panel sidetree --select %val{buffile}' ``` This also requires [kcr](https://github.com/alexherbo2/kakoune.cr) ## Configuration Commands can be placed in `~/.config/sidetree/sidetreerc`: ``` set show_hidden false set quit_on_open false set open_cmd 'kcr open "${sidetree_entry}"' set file_icons true set icon_style darkgray set dir_name_style lightblue+b set file_name_style reset set highlight_style +r set link_style cyan+b ``` For more examples, see the provided `sidetreerc` file. ## Commands Commands can be executed by pressing `:` to get the command prompt, or placed in the config file as described above. ### `quit` Quit sidetree ### `open [path]` Open the given path or the currently selected one. See the `open_cmd` option below for configuration. ### `set