All Projects → megalithic → zk.nvim

megalithic / zk.nvim

Licence: GPL-3.0 license
Neovim plugin as a lightweight wrapper around https://github.com/mickael-menu/zk

Programming Languages

lua
6591 projects
Vim Script
2826 projects

Projects that are alternatives of or similar to zk.nvim

zettelstore
This is a mirror of https://zettelstore.de
Stars: ✭ 16 (-33.33%)
Mutual labels:  pkm, knowledge-management, zettelkasten
hyperdraft
Turn your notes into a website.
Stars: ✭ 59 (+145.83%)
Mutual labels:  wiki, zettelkasten
Foam
A personal knowledge management and sharing system for VSCode
Stars: ✭ 10,993 (+45704.17%)
Mutual labels:  pkm, zettelkasten
Org Roam
Rudimentary Roam replica with Org-mode
Stars: ✭ 4,067 (+16845.83%)
Mutual labels:  pkm, zettelkasten
org-roam-ui
A graphical frontend for exploring your org-roam Zettelkasten
Stars: ✭ 1,393 (+5704.17%)
Mutual labels:  pkm, zettelkasten
Dendron
The personal knowledge management (PKM) tool that grows as you do!
Stars: ✭ 2,538 (+10475%)
Mutual labels:  pkm, zettelkasten
Seafile
High performance file syncing and sharing, with also Markdown WYSIWYG editing, Wiki, file label and other knowledge management features.
Stars: ✭ 9,201 (+38237.5%)
Mutual labels:  wiki, knowledge-management
neuron.nvim
Make neovim the best note taking application
Stars: ✭ 340 (+1316.67%)
Mutual labels:  wiki, zettelkasten
osmosnote
The knowledge IDE
Stars: ✭ 69 (+187.5%)
Mutual labels:  knowledge-management, zettelkasten
almanacs
A recipe for everything 🗒️
Stars: ✭ 47 (+95.83%)
Mutual labels:  pkm, zettelkasten
world
The world of Red Eclipse, community discussions and other useful things.
Stars: ✭ 15 (-37.5%)
Mutual labels:  wiki
awesome-zettelkasten
A list of awesome Zettelkasten resources.
Stars: ✭ 57 (+137.5%)
Mutual labels:  zettelkasten
CodeforcesApiPy
Implementation of https://codeforces.com API
Stars: ✭ 17 (-29.17%)
Mutual labels:  wiki
beatoraja-english-guide
Detailed guide for how to get started with beatoraja or BMS in general. -- For example: What is BMS, How do I set it up, Where do I download songs, How does the community work, How does the difficulty system work
Stars: ✭ 62 (+158.33%)
Mutual labels:  wiki
TheRoadOfSO
学习安全运营的记录 | The knowledge base of security operation
Stars: ✭ 286 (+1091.67%)
Mutual labels:  wiki
bedrock-wiki
Rewrite of the Bedrock Wiki.
Stars: ✭ 93 (+287.5%)
Mutual labels:  wiki
zettelgeist
A less-is-more (distributed) notetaking application. Designed specifically for those who prefer working with the command line and want to do crazy indexing, analysis, and transformation of notes. Aimed at but not limited to scholarly research projects.
Stars: ✭ 25 (+4.17%)
Mutual labels:  wiki
wiki
distributed.systems.wiki/
Stars: ✭ 43 (+79.17%)
Mutual labels:  wiki
liberty-engine
Wiki engine made with node.js
Stars: ✭ 41 (+70.83%)
Mutual labels:  wiki
homebrewhub
A showcase/archive of homebrews, patches, hackroms for old consoles. Provides community submission, tagging and rating features.
Stars: ✭ 36 (+50%)
Mutual labels:  wiki

zk.nvim (archived/deprecated)

NOTE: This plugin is now archived/deprecated. Please see #41 for more information.

A lightweight neovim, lua-based wrapper around zk.

The primary goals of this plugin are to provide handy maps, commands, and user-interface elements around the fantastic golang zettelkasten project, zk.

For more information with how to fully use zk, please visit zk's docs

LSP support within zk is new and still under development. It works quite well as-is, though. 😄

Prerequisites

Install

paq-nvim

paq { "megalithic/zk.nvim" }

packer.nvim

use { "megalithic/zk.nvim" }

vim-plug

Plug "megalithic/zk.nvim"

Configuration

-- with default config options:

require("zk").setup({
  debug = false,
  log = true,
  default_keymaps = true,
  default_notebook_path = vim.env.ZK_NOTEBOOK_DIR or "",
  fuzzy_finder = "fzf", -- or "telescope"
  link_format = "markdown" -- or "wiki"
})

Usage

For all usages of this plugin, the parlance of notebook is common place, and refers to a sub-directory within your root ZK_NOTEBOOK_DIR; or more specifically, a notebook is any directory that contains a .zk directory (think of it like a .git-controlled directory). These notebooks also relate to your groups setup within your config.toml.

Install zk

Install the zk binary (as long as go is installed in your system's PATH).

:ZkInstall

Create a new note

:lua require('zk.command').new({ title = "my note title" })

Default arguments:

{
  title = "",
  notebook = "",
  content = "",
  action = "vnew",
  start_insert_mode = true
}

Search/filtering of notes

zk offers such a wealth of power with searching, filtering and more for your notes, notebooks, etc.

Presently only supports interacting with fzf, via a flexible and fast lua-based API plugin, nvim-fzf. Searching via vim command, :ZkSearch only supports query searches at the moment. Using the lua command, the option to pass tags, notebook, and query are supported.

Future support for telescope.nvim integration, coming soon.

:lua require('zk.command').search({ query = "hiring NOT onboarding" })
" or
:ZkSearch "hiring NOT onboarding"

Default arguments:

{
  query = "",
  notebook = "",
  tags = "",
}

Generate a new note and inline link

Quickly change the word under cursor (or visually selected) to markdown or wiki syntax:

:lua require('zk.command').create_note_link({ title = "my note title", notebook = "wiki", action = "e" })

Default arguments:

{
  title = "",
  notebook = "",
  action = "vnew",
  open_note_on_creation = true
}

Default keymaps:

vim.api.nvim_set_keymap(
  "x",
  "<CR>",
  "<cmd>lua require('zk.command').create_note_link({})<cr>",
  {noremap = true, silent = false}
)
vim.api.nvim_set_keymap(
  "n",
  "<CR>",
  "<cmd>lua require('zk.command').create_note_link({title = vim.fn.expand('<cword>')})<cr>",
  {noremap = true, silent = false}
)

Telescope support

Load the zk extension to enable zk support in telescope.

require('telescope').load_extension('zk')

Register a keymap to open the picker for the zk notes.

nnoremap <leader>n <cmd>lua require('telescope').extensions.zk.zk_notes()<cr>
nnoremap <leader>zg <cmd>lua require('telescope').extensions.zk.zk_grep()<cr>
nnoremap <leader>zb <cmd>lua require('telescope').extensions.zk.zk_backlinks()<cr>

Credit

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].