files: kak: Improve command setup for editing radix files

pull/1/head
Luis Guilherme Coelho 2023-12-31 14:43:58 -03:00
parent 5961dacc4a
commit 2f13b16c37
No known key found for this signature in database
GPG Key ID: 1F2E76ACE3F531C8
1 changed files with 21 additions and 5 deletions

View File

@ -50,29 +50,45 @@ define-command -override cron \
execute-keys ': e ~/.config/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 \ define-command -override home \
-docstring 'edit home declaration' %{ -docstring 'edit home declaration' %{
edit '~/projects/code/scm/radix/home-environments/radio.scm' evaluate-commands 'radix'
execute-keys 'home-environments/radio.scm<ret>'
} }
define-command -override system \ define-command -override system \
-docstring 'edit system declaration' %{ -docstring 'edit system declaration' %{
edit '~/projects/code/scm/radix/operating-systems/buer.scm' evaluate-commands 'radix'
execute-keys 'operating-systems/buer.scm<ret>'
}
define-command -override files \
-docstring 'edit dotfiles' %{
evaluate-commands 'radix'
execute-keys 'files/'
} }
define-command -override colorscheme-config \ define-command -override colorscheme-config \
-docstring 'edit colorscheme configuration file' %{ -docstring 'edit colorscheme configuration file' %{
edit '~/projects/code/scm/radix/files/kak/autoload/colorscheme.kak' evaluate-commands 'files'
execute-keys 'kak/autoload/colorscheme.kak<ret>'
} }
define-command -override config \ define-command -override config \
-docstring 'edit kakoune main configuration file' %{ -docstring 'edit kakoune main configuration file' %{
edit '~/projects/code/scm/radix/files/kak/kakrc' evaluate-commands 'files'
execute-keys 'kak/kakrc<ret>'
} }
define-command -override rss \ define-command -override rss \
-docstring 'edit rss feeds file' %{ -docstring 'edit rss feeds file' %{
edit '~/area/code/scm/radix/files/newsraft/feeds' evaluate-commands 'files'
execute-keys 'newsraft/feeds<ret>'
} }
define-command -override remind \ define-command -override remind \