zk
This commit is contained in:
@@ -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
|
||||||
];
|
];
|
||||||
|
|||||||
@@ -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";
|
||||||
|
}
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -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;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -11,10 +11,11 @@
|
|||||||
fish
|
fish
|
||||||
heex
|
heex
|
||||||
json
|
json
|
||||||
|
markdown
|
||||||
nix
|
nix
|
||||||
toml
|
toml
|
||||||
|
tsx
|
||||||
typescript
|
typescript
|
||||||
vue
|
|
||||||
yaml
|
yaml
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
|||||||
7
modules/home/neovim/plugins/zk.nix
Normal file
7
modules/home/neovim/plugins/zk.nix
Normal file
@@ -0,0 +1,7 @@
|
|||||||
|
{
|
||||||
|
programs.nixvim.plugins.zk = {
|
||||||
|
enable = true;
|
||||||
|
settings = {
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
||||||
16
modules/home/zk.nix
Normal file
16
modules/home/zk.nix
Normal file
@@ -0,0 +1,16 @@
|
|||||||
|
{
|
||||||
|
programs.zk = {
|
||||||
|
enable = true;
|
||||||
|
settings = {
|
||||||
|
notebook = {
|
||||||
|
path = "~/Projects/Personal/Zettelkasten";
|
||||||
|
};
|
||||||
|
note = {
|
||||||
|
language = "en";
|
||||||
|
};
|
||||||
|
extra = {
|
||||||
|
author = "Christoph Schmatzler";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user