mirror of
https://github.com/SpaceVim/SpaceVim.git
synced 2025-01-23 11:20:06 +08:00
Compare commits
2 Commits
5f34976cd4
...
7afbd83a89
Author | SHA1 | Date | |
---|---|---|---|
|
7afbd83a89 | ||
|
ecbb4766da |
@ -73,6 +73,14 @@ if vim.fn.mapcheck('[I', 'n') == '' then
|
|||||||
require('zettelkasten.browser').open_tag_tree()
|
require('zettelkasten.browser').open_tag_tree()
|
||||||
end,
|
end,
|
||||||
})
|
})
|
||||||
|
vim.api.nvim_buf_set_keymap(0, 'n', '<Enter>', '', {
|
||||||
|
noremap = true,
|
||||||
|
silent = true,
|
||||||
|
nowait = true,
|
||||||
|
callback = function()
|
||||||
|
vim.cmd('normal 0gf')
|
||||||
|
end,
|
||||||
|
})
|
||||||
end
|
end
|
||||||
|
|
||||||
local config = require('zettelkasten.config')
|
local config = require('zettelkasten.config')
|
||||||
|
@ -11,6 +11,7 @@ vim.opt_local.bufhidden = 'wipe'
|
|||||||
vim.opt_local.syntax = 'zktagstree'
|
vim.opt_local.syntax = 'zktagstree'
|
||||||
vim.opt_local.buftype = 'nofile'
|
vim.opt_local.buftype = 'nofile'
|
||||||
vim.opt_local.swapfile = false
|
vim.opt_local.swapfile = false
|
||||||
|
vim.opt_local.winfixwidth = true
|
||||||
vim.api.nvim_buf_set_keymap(0, 'n', '<F2>', '', {
|
vim.api.nvim_buf_set_keymap(0, 'n', '<F2>', '', {
|
||||||
noremap = true,
|
noremap = true,
|
||||||
silent = true,
|
silent = true,
|
||||||
|
@ -39,14 +39,20 @@ update your custom configuration file with:
|
|||||||
|
|
||||||
## Key bindings
|
## Key bindings
|
||||||
|
|
||||||
| Key bindings | description |
|
| Key bindings | description |
|
||||||
| ------------ | ----------------------------- |
|
| ------------ | -------------------------------------- |
|
||||||
| `SPC m z n` | create new note |
|
| `SPC m z n` | create new note |
|
||||||
| `SPC m z t` | create new note with template |
|
| `SPC m z t` | create new note with template |
|
||||||
| `SPC m z b` | open zettelkasten browse |
|
| `SPC m z b` | open zettelkasten browse |
|
||||||
|
| `SPC m z g` | filter zettelkasten tags via telescope |
|
||||||
|
|
||||||
In the zettelkasten browse buffer:
|
In the zettelkasten browse buffer:
|
||||||
|
|
||||||
| key bindings | description |
|
| key bindings | description |
|
||||||
| ------------ | ---------------- |
|
| --------------- | ---------------------------------- |
|
||||||
| `K` | preview the note |
|
| `F2` | open zettelkasten tags sidebar |
|
||||||
|
| `<LeftRelease>` | filter notes based on cursor tag |
|
||||||
|
| `gf` | open the note |
|
||||||
|
| `Ctrl-l` | clear tags filter pattarn |
|
||||||
|
| `Ctrl-] / K` | preview note in vim preview-window |
|
||||||
|
| `[I` | list references in quickfix-window |
|
||||||
|
Loading…
Reference in New Issue
Block a user