From 2f13b16c3741a87b8868d3f85046deb8a21bd504 Mon Sep 17 00:00:00 2001 From: Luis Guilherme Coelho Date: Sun, 31 Dec 2023 14:43:58 -0300 Subject: [PATCH] files: kak: Improve command setup for editing radix files --- files/kak/kakrc | 26 +++++++++++++++++++++----- 1 file changed, 21 insertions(+), 5 deletions(-) diff --git a/files/kak/kakrc b/files/kak/kakrc index cc0d8e8..6233ed2 100644 --- a/files/kak/kakrc +++ b/files/kak/kakrc @@ -50,29 +50,45 @@ define-command -override cron \ execute-keys ': e ~/.config/cron/' } +define-command -override radix \ + -docstring 'edit files in radix repository' %{ + execute-keys ':edit ~/projects/code/scm/radix/' +} + define-command -override home \ -docstring 'edit home declaration' %{ - edit '~/projects/code/scm/radix/home-environments/radio.scm' + evaluate-commands 'radix' + execute-keys 'home-environments/radio.scm' } define-command -override system \ -docstring 'edit system declaration' %{ - edit '~/projects/code/scm/radix/operating-systems/buer.scm' + evaluate-commands 'radix' + execute-keys 'operating-systems/buer.scm' +} + +define-command -override files \ + -docstring 'edit dotfiles' %{ + evaluate-commands 'radix' + execute-keys 'files/' } define-command -override colorscheme-config \ -docstring 'edit colorscheme configuration file' %{ - edit '~/projects/code/scm/radix/files/kak/autoload/colorscheme.kak' + evaluate-commands 'files' + execute-keys 'kak/autoload/colorscheme.kak' } define-command -override config \ -docstring 'edit kakoune main configuration file' %{ - edit '~/projects/code/scm/radix/files/kak/kakrc' + evaluate-commands 'files' + execute-keys 'kak/kakrc' } define-command -override rss \ -docstring 'edit rss feeds file' %{ - edit '~/area/code/scm/radix/files/newsraft/feeds' + evaluate-commands 'files' + execute-keys 'newsraft/feeds' } define-command -override remind \