From 6a8e4e91ea9e85f073bca4e9abe9737f7299e9c8 Mon Sep 17 00:00:00 2001 From: Daniel Fichtinger Date: Mon, 16 Jun 2025 16:35:41 -0400 Subject: [PATCH] AutoYADM commit: 2025-06-16 16:35:41 --- .config/fish/functions/t.fish | 4 ++++ .config/fish/functions/tt.fish | 4 ++-- .config/kak/autoload/sh.kak | 15 +++++++++++++-- .config/kak/ltex-dictionary.txt | 1 - 4 files changed, 19 insertions(+), 5 deletions(-) create mode 100644 .config/fish/functions/t.fish diff --git a/.config/fish/functions/t.fish b/.config/fish/functions/t.fish new file mode 100644 index 00000000..c23e31c9 --- /dev/null +++ b/.config/fish/functions/t.fish @@ -0,0 +1,4 @@ +function t --wraps=task --description 'alias t=task' + task $argv + +end diff --git a/.config/fish/functions/tt.fish b/.config/fish/functions/tt.fish index 899fb567..7d57d7e0 100644 --- a/.config/fish/functions/tt.fish +++ b/.config/fish/functions/tt.fish @@ -1,4 +1,4 @@ -function tt --wraps=tasktimer --description 'alias tt=tasktimer' - tasktimer $argv +function tt --wraps=tasktimer --wraps=taskwarrior-tui --description 'alias tt=taskwarrior-tui' + taskwarrior-tui $argv end diff --git a/.config/kak/autoload/sh.kak b/.config/kak/autoload/sh.kak index ffd16a7d..f9900342 100644 --- a/.config/kak/autoload/sh.kak +++ b/.config/kak/autoload/sh.kak @@ -1,7 +1,18 @@ define-command -docstring %{ + sh [switches] Run the given shell command. Display its output in an info modal. + Switches: + -d echo stdout to *debug* buffer } -params 1.. sh %{ - info %sh{ - eval "$@" + evaluate-commands %sh{ + if [ "$1" = "-d" ]; then + debug="true" + shift + fi + stdout="$(eval "$@")" + printf 'info -title sh "%s"\n' "$stdout" + if [ "$debug" = "true" ]; then + printf 'echo -debug -- "%s"\n' "$stdout" + fi } } diff --git a/.config/kak/ltex-dictionary.txt b/.config/kak/ltex-dictionary.txt index 6a8bd24a..ef4df9e5 100644 --- a/.config/kak/ltex-dictionary.txt +++ b/.config/kak/ltex-dictionary.txt @@ -1,3 +1,2 @@ SonarAuth Fichtinger -Gamersauce