This commit is contained in:
2025-12-08 16:52:42 +00:00
parent b5a0ab8df5
commit 68a10416e1
6 changed files with 88 additions and 1 deletions

View File

@@ -23,6 +23,7 @@
./ssh.nix ./ssh.nix
./starship.nix ./starship.nix
./zellij.nix ./zellij.nix
./zk.nix
./zoxide.nix ./zoxide.nix
./zsh.nix ./zsh.nix
]; ];

View File

@@ -231,5 +231,66 @@
action = ":lua require('harpoon'):list():select(4)<CR>"; action = ":lua require('harpoon'):list():select(4)<CR>";
options.desc = "Go to harpoon 4"; options.desc = "Go to harpoon 4";
} }
# z - zk (notes)
{
mode = "n";
key = "<leader>zn";
action = ":ZkNew { title = vim.fn.input('Title: ') }<CR>";
options.desc = "New note";
}
{
mode = "n";
key = "<leader>zo";
action = ":ZkNotes { sort = { 'modified' } }<CR>";
options.desc = "Open notes";
}
{
mode = "n";
key = "<leader>zt";
action = ":ZkTags<CR>";
options.desc = "Browse tags";
}
{
mode = "n";
key = "<leader>zf";
action = ":ZkNotes { sort = { 'modified' }, match = { vim.fn.input('Search: ') } }<CR>";
options.desc = "Find notes";
}
{
mode = "v";
key = "<leader>zf";
action = ":'<,'>ZkMatch<CR>";
options.desc = "Find notes matching selection";
}
{
mode = "n";
key = "<leader>zb";
action = ":ZkBacklinks<CR>";
options.desc = "Backlinks";
}
{
mode = "n";
key = "<leader>zl";
action = ":ZkLinks<CR>";
options.desc = "Outbound links";
}
{
mode = "n";
key = "<leader>zi";
action = ":ZkInsertLink<CR>";
options.desc = "Insert link";
}
{
mode = "v";
key = "<leader>zi";
action = ":'<,'>ZkInsertLinkAtSelection<CR>";
options.desc = "Insert link at selection";
}
{
mode = "v";
key = "<leader>zc";
action = ":'<,'>ZkNewFromTitleSelection<CR>";
options.desc = "Create note from selection";
}
]; ];
} }

View File

@@ -9,6 +9,7 @@
dockerls.enable = true; dockerls.enable = true;
yamlls.enable = true; yamlls.enable = true;
vtsls.enable = true; vtsls.enable = true;
zk.enable = true;
}; };
}; };
}; };

View File

@@ -11,10 +11,11 @@
fish fish
heex heex
json json
markdown
nix nix
toml toml
tsx
typescript typescript
vue
yaml yaml
]; ];
}; };

View File

@@ -0,0 +1,7 @@
{
programs.nixvim.plugins.zk = {
enable = true;
settings = {
};
};
}

16
modules/home/zk.nix Normal file
View File

@@ -0,0 +1,16 @@
{
programs.zk = {
enable = true;
settings = {
notebook = {
path = "~/Projects/Personal/Zettelkasten";
};
note = {
language = "en";
};
extra = {
author = "Christoph Schmatzler";
};
};
};
}