From b3b352dd644779dcb51ec9e5853f1361333eb7f3 Mon Sep 17 00:00:00 2001 From: Matthew Ryan Dillon Date: Thu, 31 Oct 2024 09:23:44 -0400 Subject: [PATCH] feat: split view with tasks when loading zk daily --- home/dot_zshrc.tmpl | 4 ++++ home/private_dot_config/zk/config.toml | 3 +++ 2 files changed, 7 insertions(+) diff --git a/home/dot_zshrc.tmpl b/home/dot_zshrc.tmpl index be1d365..4938948 100644 --- a/home/dot_zshrc.tmpl +++ b/home/dot_zshrc.tmpl @@ -116,3 +116,7 @@ eval "$(jj util completion zsh)" function reldate() { date -v "${1}" "+%Y-%m-%d" } + +function _zkhx() { + hx --hsplit tasks.xit ${1} +} diff --git a/home/private_dot_config/zk/config.toml b/home/private_dot_config/zk/config.toml index f627666..d29c280 100644 --- a/home/private_dot_config/zk/config.toml +++ b/home/private_dot_config/zk/config.toml @@ -30,3 +30,6 @@ sync = 'jj git fetch && jj git push' log = 'jj log -r ".."' diff = 'jj diff' daily = 'zk new --no-input "$ZK_NOTEBOOK_DIR/journal/daily"' + +[tool] +editor = "hx --hsplit journal/tasks.xit"