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 current path 1
Dup pathDuplicate current file to a new path
Delete PathsDelete selected paths 2
Move PathsMove (or rename) selected paths 3
RefreshRefresh file explorer 4
Toggle/Open PathsToggle/Open selected paths 5

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. You can delete multiple paths at once by using selection extension or multi-cursors

  3. Works like mkdir -p, it will create new directories when required, similat to Delete Paths, you may rename multiple files at once via selection extension or multi-cursor.

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

  5. Similar to Delete Paths, you may open multiple files at once via selection extension or multi-cursor.