Skip to main content

File Explorer

Ki's file explorer is rendered using YAML, for example:

- 📂  docs/:
- 🙈 .gitignore
- 📁 book/:
- 📄 book.toml
- 📂 src/:
- 📚 SUMMARY.md
- 📂 components/:
- 📚 file-explorer.md
- 📚 index.md
- 📚 configurations.md
- 📚 core-concepts.md
- 📚 features.md
- 📁 insert-mode/:
- 📚 installation.md
- 📚 modes.md
- 📁 normal-mode/:
- 📁 selection-modes/:
- 📚 themes.md
- 📚 universal-keybindings.md
- 📚 dummy-todo.md
- 📁 event/:
- 📁 grammar/:
- 📄 justfile

Keymap

Loading...

Meanings

LabelAction
Add PathAdd a new file/folder under the current path 1
Dup pathDuplicate current file to a new path
Delete PathDelete current file/folder
Move PathMove (or rename) the current file/folder 2
RefreshRefresh the file explorer 3

Other keybinding

enter is override to mean:

  • Expand/collapse folder OR
  • Open file

Tips

Because the File Explorer is just a YAML file, the following actions are free1:

ActionHow?
Go to parent folderUse [a j]4
Go to first/last file in current folderUse First/Last with Syntax Node
Go to next/previous file/folder at current level, skipping expanded childrenUse Left/Right with Syntax Node

Footnotes

  1. To add a folder, append / to the file name. Can be nested, and new directories will be created as required. 2

  2. Works like mkdir -p, it will create new directories when required.

  3. This is necessary sometimes because the file system is modified by external factors, and Ki does not watch for file changes.

  4. Free as in no extra implementations required