added .kakrc to manage cwd in editor
This commit is contained in:
parent
f72142fff3
commit
f56a1b5ce0
1 changed files with 19 additions and 0 deletions
19
.kakrc
Normal file
19
.kakrc
Normal file
|
@ -0,0 +1,19 @@
|
||||||
|
# commands to edit important files in the root
|
||||||
|
declare-option str project_root %sh{ git rev-parse --show-toplevel }
|
||||||
|
|
||||||
|
define-command -params 1 root-edit %{
|
||||||
|
edit %exp{%opt{project_root}/%arg{1}}
|
||||||
|
}
|
||||||
|
|
||||||
|
define-command just %{
|
||||||
|
root-edit justfile
|
||||||
|
}
|
||||||
|
define-command pyproject %{
|
||||||
|
root-edit pyproject.toml
|
||||||
|
}
|
||||||
|
define-command readme %{
|
||||||
|
root-edit README.md
|
||||||
|
}
|
||||||
|
|
||||||
|
# change working directory to the package
|
||||||
|
change-directory %exp{%opt{project_root}/src/zona}
|
Loading…
Add table
Add a link
Reference in a new issue