From 686501d464ee695d2c6993c66381421716293bc9 Mon Sep 17 00:00:00 2001 From: servius Date: Wed, 4 Mar 2026 20:07:00 +0530 Subject: [PATCH] feat: Added more zen search options and khal views --- home/apps/zen.nix | 31 +++++++++++++++++-------------- home/programs/calendar.nix | 12 +++++++++++- 2 files changed, 28 insertions(+), 15 deletions(-) diff --git a/home/apps/zen.nix b/home/apps/zen.nix index c60f3072..31eb5792 100644 --- a/home/apps/zen.nix +++ b/home/apps/zen.nix @@ -74,12 +74,6 @@ urls = [ { template = "https://mynixos.com/search?q={searchTerms}"; - params = [ - { - name = "query"; - value = "searchTerms"; - } - ]; } ]; @@ -91,12 +85,6 @@ urls = [ { template = "https://home-manager-options.extranix.com/?query={searchTerms}&release=master"; - params = [ - { - name = "query"; - value = "searchTerms"; - } - ]; } ]; definedAliases = ["@hm"]; @@ -105,17 +93,32 @@ name = "NixVim"; urls = [ { - template = "https://nix-community.github.io/nixvim/search/?query={searchTerms}"; + template = "https://nix-community.github.io/nixvim/search"; params = [ { name = "query"; - value = "searchTerms"; + value = "{searchTerms}"; } ]; } ]; definedAliases = ["@nv"]; }; + lib = { + name = "Lib.rs"; + urls = [ + { + template = "https://lib.rs/search"; + params = [ + { + name = "q"; + value = "{searchTerms}"; + } + ]; + } + ]; + definedAliases = ["@lib"]; + }; }; }; pins = { diff --git a/home/programs/calendar.nix b/home/programs/calendar.nix index d5e1c23c..bd854a18 100644 --- a/home/programs/calendar.nix +++ b/home/programs/calendar.nix @@ -1,5 +1,15 @@ {pkgs, ...}: { - programs.khal.enable = true; + programs.khal = { + enable = true; + settings = { + default = { + # default_calendar = "fastmail"; + }; + view = { + agenda_event_format = "{calendar-color}{cancelled}{start-end-time-style} {title}{repeat-symbol}{reset}"; + }; + }; + }; programs.qcal.enable = true; programs.vdirsyncer.enable = true; services.vdirsyncer.enable = true;