Skip to content
[WIP] [POC] File explorer side panel for Kakoune editor
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.github Initial commit Jun 14, 2019
perl add ability to change ls to another command Jun 17, 2019
rc rename hook accordingly to mawww/kakoune@eae92c9 Jun 30, 2019
CODE_OF_CONDUCT.md Initial commit Jun 14, 2019
CONTRIBUTING.md
LICENSE Initial commit Jun 14, 2019
README.md Update README.md Jun 18, 2019

README.md

kaktree

kaktree

This plugin displays the interactive filetree. It requires Tmux and Perl, as well as ls command.

Installation

You need latest Kakoune build from master in order to use this plugin. still waiting for new stable release with module system...

With plug.kak

Add this to your kakrc:

plug "andreyorst/kaktree" defer kaktree %{
    # settings for fancy icons as on the screenshot above.
    set-option global kaktree_dir_icon_open  '▾ 🗁 ' # 📂 📁
    set-option global kaktree_dir_icon_close '▸ 🗀 '
    set-option global kaktree_file_icon      '⠀⠀🖹 ' # 🖺 🖻
                                            # ^^ these are not spaces. It is invisible characters.
                                            # This needed to make folding work correctly if you do
                                            # space alignment of icons.
} config %{
    map global user 'f' ": kaktree-toggle<ret>" -docstring "toggle filetree panel"
    hook global WinSetOption filetype=kaktree %{
        remove-highlighter buffer/numbers
        remove-highlighter buffer/matching
        remove-highlighter buffer/wrap
        remove-highlighter buffer/show-whitespaces
    }
    kaktree-enable
}

Restart Kakoune or re-source your kakrc and call plug-install command.

Without plugin manager

Clone this repo to your autoload directory, or source kaktree.kak file from your kakrc.

It's better to disable line numbers and wrap highlighters as shown in the plug.kak example above.

You can’t perform that action at this time.