All Projects → andreyorst → kaktree

andreyorst / kaktree

Licence: MIT License
File explorer side panel for Kakoune

Programming Languages

KakouneScript
24 projects
perl
6916 projects

Projects that are alternatives of or similar to kaktree

snippet.kak
Snippets integration for Kakoune
Stars: ✭ 23 (-41.03%)
Mutual labels:  kakoune
tagbar.kak
Tag viewer for Kakoune
Stars: ✭ 19 (-51.28%)
Mutual labels:  kakoune
luar
Script Kakoune using Lua
Stars: ✭ 33 (-15.38%)
Mutual labels:  kakoune
kakoune-extra-filetypes
Extra highlighters for the Kakoune editor
Stars: ✭ 20 (-48.72%)
Mutual labels:  kakoune
kakoune-ghci-bridge
Get intellisense for Haskell in Kakoune via ghci
Stars: ✭ 13 (-66.67%)
Mutual labels:  kakoune
kakoune-themes
Color schemes for kakoune , extra syntax highlighting and my config
Stars: ✭ 25 (-35.9%)
Mutual labels:  kakoune
one.kak
Atom "One" color schemes for Kakoune.
Stars: ✭ 19 (-51.28%)
Mutual labels:  kakoune
kakoune.cr
A command-line tool for Kakoune
Stars: ✭ 42 (+7.69%)
Mutual labels:  kakoune
file-tree-alternative
This Obsidian Plugin allows users to have a different file explorer experience.
Stars: ✭ 167 (+328.21%)
Mutual labels:  file-explorer
kakoune-snippets
Snippet support for kakoune
Stars: ✭ 35 (-10.26%)
Mutual labels:  kakoune
kakboard
Clipboard integration for Kakoune
Stars: ✭ 49 (+25.64%)
Mutual labels:  kakoune
kakoune-gdb
gdb integration plugin
Stars: ✭ 44 (+12.82%)
Mutual labels:  kakoune
kakoune-edit-or-dir
File browser for Kakoune
Stars: ✭ 18 (-53.85%)
Mutual labels:  kakoune
emmet-cli
Emmet command line interface
Stars: ✭ 27 (-30.77%)
Mutual labels:  kakoune
smarttab.kak
Automatic handling different styles of indentation and alignment.
Stars: ✭ 52 (+33.33%)
Mutual labels:  kakoune
auto-pairs.kak
Auto-pairing of characters for Kakoune
Stars: ✭ 62 (+58.97%)
Mutual labels:  kakoune
vue-fs
A Vue file management client, complete with a node/express/FS backend.
Stars: ✭ 40 (+2.56%)
Mutual labels:  file-explorer
kakoune-find
Find and replace on open buffers
Stars: ✭ 30 (-23.08%)
Mutual labels:  kakoune
drex.nvim
Another directory/file explorer for Neovim written in Lua
Stars: ✭ 15 (-61.54%)
Mutual labels:  file-explorer
File-Explorer
A C# WPF application, representing a conventional Windows file system explorer. Allows the traversal of inaccessible file systems.
Stars: ✭ 30 (-23.08%)
Mutual labels:  file-explorer

kaktree

kaktree

This plugin displays the interactive file tree. It requires Perl, as well as ls command that supports at least -1, -F, -b, -L, and -A flags. Works best with Tmux.

Installation

You need latest Kakoune build from master in order to use this plugin.

With plug.kak

Add this to your kakrc:

plug "andreyorst/kaktree" config %{
    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 repository to your autoload directory, or source kaktree.kak file from your kakrc.

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

Configuration

There are set of options that affect how kaktree works:

  • kaktreeclient - the name of the client that will be used to display kaktree buffer.
  • kaktree_split - how to split TMUX (horizontally or vertically).
  • kaktree_side - the side where kaktree buffer will be displayed in TMUX.
  • kaktree_size - size of the split.
  • kaktree_dir_icon_close - icon for closed directory.
  • kaktree_dir_icon_open - icon for opened directory.
  • kaktree_file_icon - icon for files.
  • kaktree_show_hidden - whether to show hidden files
  • kaktree_hlline - configures highlighting of current line in the tree.
  • kaktree_sort - whether to sort items in the tree.
  • kaktree_double_click_duration - amount of time Kakoune waits to register double clicks in the Kaktree.
  • kaktree_show_help - whether to display help box on first launch of Kaktree.
  • kaktree_tab_open_file - whether Kaktree should open file if Tab key was pressed over it.

For example, to have nice folder and file icons as on the screenshot add this to your configuration (assuming that your font has these characters and your terminal can handle wide Unicode symbols):

plug "andreyorst/kaktree" defer kaktree %{
    set-option global kaktree_double_click_duration '0.5'
    set-option global kaktree_indentation 1
    set-option global kaktree_dir_icon_open  '▾ 🗁 '
    set-option global kaktree_dir_icon_close '▸ 🗀 '
    set-option global kaktree_file_icon      '⠀⠀🖺'
} config %{...}

If you're not using plug.kak, replace defer with hook global ModuleLoaded. Beware that '⠀⠀🖺' the first two characters here are not ordinary spaces, but invisible Unicode symbols. Currently Kaktree handles tree structure based on indentation, so in order to do alignment of icons you should use something that doesn't match \s regexp atom.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].