1
0
mirror of https://github.com/SpaceVim/SpaceVim.git synced 2025-01-23 22:30:04 +08:00
SpaceVim/docs/layers/zettelkasten.md

53 lines
1.3 KiB
Markdown
Raw Normal View History

---
title: "SpaceVim zettelkasten layer"
description: "This layers adds extensive support for zettelkasten"
---
# [Available Layers](../) >> zettelkasten
<!-- vim-markdown-toc GFM -->
- [Description](#description)
- [Install](#install)
- [Layer options](#layer-options)
- [Key bindings](#key-bindings)
<!-- vim-markdown-toc -->
## Description
This layer adds support for zettelkasten in neovim.
## Install
This layer also requires `telescope` layer, so to use this configuration layer,
update your custom configuration file with:
```toml
# load the zettelkasten layer
[[layers]]
name = "zettelkasten"
# load the fuzzy finder layer: telescope
[[layers]]
name = "telescope"
```
## Layer options
- `zettel_dir`: set the zettelkasten directory, default is `~/.zettelkasten/`
- `zettel_template_dir`: set the zettelkasten template directory, default is `~/.zettelkasten_template`
## Key bindings
| Key bindings | description |
| ------------ | ----------------------------- |
| `SPC m z n` | create new note |
| `SPC m z t` | create new note with template |
| `SPC m z b` | open zettelkasten browse |
In the zettelkasten browse buffer:
| key bindings | description |
| ------------ | ---------------- |
| `K` | preview the note |