clean yazi & nixvim
remove zk, add hops for yazi
This commit is contained in:
@@ -28,6 +28,5 @@
|
||||
./zathura.nix
|
||||
./zoom.nix
|
||||
./zsh.nix
|
||||
./zk.nix
|
||||
];
|
||||
}
|
||||
|
||||
@@ -1,7 +1,8 @@
|
||||
require("bunny"):setup({
|
||||
hops = {
|
||||
{ key = "/", path = "/", desc = "Root" },
|
||||
{ key = "n", path = "/nix/store", desc = "Nix store" },
|
||||
{ key = { "n", "c" }, path = "/etc/nixos", desc = "NixOS config" },
|
||||
{ key = { "n", "s" }, path = "/nix/store", desc = "Nix store" },
|
||||
{ key = "~", path = "~", desc = "Home" },
|
||||
{ key = "r", path = "~/Repos", desc = "Repos" },
|
||||
{ key = "d", path = "~/Downloads", desc = "Downloads" },
|
||||
@@ -10,6 +11,9 @@ require("bunny"):setup({
|
||||
{ key = { "N", "h" }, path = "~/Nextcloud", desc = "Nexctloud root" },
|
||||
{ key = { "N", "d" }, path = "~/Nextcloud/Data/Documents", desc = "Nextcloud documents" },
|
||||
{ key = { "N", "u" }, path = "~/Nextcloud/Uni", desc = "Nextcloud uni" },
|
||||
{ key = { "N", "u" }, path = "~/Nextcloud/Uni/26-SoSe/26-SoSe-Francais", desc = "Nextcloud uni current" },
|
||||
{ key = { "m", "b" }, path = "~/mnt", desc = "Mount base" },
|
||||
{ key = { "m", "r" }, path = "~/mnt/remote", desc = "Mount remote" },
|
||||
-- key and path attributes are required, desc is optional
|
||||
},
|
||||
desc_strategy = "path", -- If desc isn't present, use "path" or "filename", default is "path"
|
||||
|
||||
@@ -1,43 +0,0 @@
|
||||
{ ... }:
|
||||
|
||||
{
|
||||
programs.zk = {
|
||||
enable = true;
|
||||
settings = {
|
||||
note.template = "default.md";
|
||||
format.markdow = {
|
||||
hashtags = true;
|
||||
colon-tags = false;
|
||||
multiword-tags = false;
|
||||
};
|
||||
tool.fzf-preview = "bat -p --color always {-1}";
|
||||
notebook = {
|
||||
dir = "~/Nextcloud/zettelkasten";
|
||||
};
|
||||
alias = {
|
||||
n = "zk new inbox/$@";
|
||||
i = "zk edit -x inbox,journals -i";
|
||||
ls = "zk list -x inbox,journals $@";
|
||||
ed = "zk edit -x inbox,journals $@";
|
||||
rm = ''zk list --interactive --quiet --format "{{abs-path}}" --delimiter0 $@ | xargs -0 rm -vf --'';
|
||||
recent = "zk edit --sort created- --created-after 'last two weeks' --interactive";
|
||||
inbox = "zk edit -t inbox --interactive";
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
home.file = {
|
||||
"/Nextcloud/zettelkasten/.zk/templates/default.md" = {
|
||||
text = ''
|
||||
---
|
||||
title: {{ title }}
|
||||
date: {{format-date now "long"}}
|
||||
tags: [inbox]
|
||||
---
|
||||
# {{ title }}
|
||||
|
||||
{{ content }}
|
||||
'';
|
||||
};
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user