summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul Buetow <paul@buetow.org>2025-04-14 22:39:54 +0300
committerPaul Buetow <paul@buetow.org>2025-04-14 22:39:54 +0300
commit1afa4fc1be5fa77182ed138ddbe2638cac653936 (patch)
tree140287251273dab5025f96b5de95aded3cf3b2ed
parent37f426b59d08cd5f2bb77dc686399c9dd6d085d2 (diff)
add Ved
-rw-r--r--dotfiles/helix/config.toml4
-rw-r--r--dotfiles/zsh/zshrc_d/addons.source.zsh17
-rw-r--r--dotfiles/zsh/zshrc_d/task.source.zsh9
3 files changed, 25 insertions, 5 deletions
diff --git a/dotfiles/helix/config.toml b/dotfiles/helix/config.toml
index 11744a8..99f725b 100644
--- a/dotfiles/helix/config.toml
+++ b/dotfiles/helix/config.toml
@@ -1,8 +1,4 @@
-<<<<<<< HEAD
theme = "rose_pine_dawn"
-=======
-theme = "kaolin-light"
->>>>>>> ecec08530240c4c7a81d4335b37bcd7eef3cd923
[editor]
bufferline = "always"
diff --git a/dotfiles/zsh/zshrc_d/addons.source.zsh b/dotfiles/zsh/zshrc_d/addons.source.zsh
index 082a5d3..b77bfbf 100644
--- a/dotfiles/zsh/zshrc_d/addons.source.zsh
+++ b/dotfiles/zsh/zshrc_d/addons.source.zsh
@@ -10,8 +10,23 @@ addon::zsh::autosuggestions::init () {
fi
}
+# Make up and down arrow take what’s typed on the commandline in to account.
+# E.g. if you type ls and press up it will only find history entries that start with ls:
+addon::history () {
+ autoload -Uz up-line-or-beginning-search down-line-or-beginning-search
+
+ zle -N up-line-or-beginning-search
+ zle -N down-line-or-beginning-search
+
+ bindkey '^[[A' up-line-or-beginning-search # Arrow up
+ bindkey '^[OA' up-line-or-beginning-search
+ bindkey '^[[B' down-line-or-beginning-search # Arrow down
+ bindkey '^[OB' down-line-or-beginning-search
+}
+
addon::init () {
- addon::zsh::autosuggestions::init
+ addon::zsh::autosuggestions::init
+ addon::history
}
addon::init
diff --git a/dotfiles/zsh/zshrc_d/task.source.zsh b/dotfiles/zsh/zshrc_d/task.source.zsh
index 1764fbb..e37a17d 100644
--- a/dotfiles/zsh/zshrc_d/task.source.zsh
+++ b/dotfiles/zsh/zshrc_d/task.source.zsh
@@ -25,6 +25,7 @@ if [[ -f ~/.taskrc && -f ~/.task.enable ]]; then
alias tdue='vit status:pending due.before:now'
alias thome='vit +home'
+ alias tasks='vit -track'
task::due::count () {
local -i due_count=$(task status:pending due.before:now count)
@@ -120,11 +121,19 @@ if [[ -f ~/.taskrc && -f ~/.task.enable ]]; then
vit +standup
fi
}
+
+ task::add::standup::editor () {
+ local -r tmpfile=$(mktemp /tmp/standup.XXXXXX.txt) && \
+ $EDITOR $tmpfile && \
+ task::add::standup "$(cat $tmpfile)"
+ }
+
alias standup=task::add::standup
# Virtual standup
alias V=task::add::standup
alias Vstorage='vit +standup +storage'
alias Vsre='vit +standup +sre'
+ alias Ved=task::add::standup::editor
task::dice () {
local -r filter=$1