Add edit
command to edit a zettel
Signed-off-by: Oliver Davies <oliver@oliverdavies.uk>
This commit is contained in:
parent
1986b9deca
commit
125aa05e0d
5 changed files with 80 additions and 0 deletions
|
@ -12,6 +12,12 @@ import (
|
|||
"strings"
|
||||
)
|
||||
|
||||
func EditZet(id int) {
|
||||
zetPath := path.Join(GetZetDir(), strconv.Itoa(id), "index.adoc")
|
||||
|
||||
EditFile(zetPath)
|
||||
}
|
||||
|
||||
func GetAllZets() []int {
|
||||
zets, err := execGitCommand("ls-files")
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue