updated todo because i oofed
parent
3ed7d8cd9e
commit
967a02c90a
|
|
@ -92,7 +92,10 @@ func edit(dry bool, filepath string) error {
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
verify := func() error {
|
verify := func() error {
|
||||||
return dump(true, io.Discard, tempFile)
|
if err := dump(true, io.Discard, tempFile); err != nil {
|
||||||
|
return fmt.Errorf("failed to verify %s: %v", tempFile, err)
|
||||||
|
}
|
||||||
|
return nil
|
||||||
}
|
}
|
||||||
save := func() error {
|
save := func() error {
|
||||||
if dry {
|
if dry {
|
||||||
|
|
@ -104,12 +107,12 @@ func edit(dry bool, filepath string) error {
|
||||||
|
|
||||||
for _, foo := range []func() error{cp, vi, verify, save} {
|
for _, foo := range []func() error{cp, vi, verify, save} {
|
||||||
if err := foo(); err != nil {
|
if err := foo(); err != nil {
|
||||||
if tempFile != "" && !dry {
|
|
||||||
os.Remove(tempFile)
|
|
||||||
}
|
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
if !dry {
|
||||||
|
os.Remove(tempFile)
|
||||||
|
}
|
||||||
|
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
|
||||||
24
todo.yaml
24
todo.yaml
|
|
@ -1,10 +1,16 @@
|
||||||
todo:
|
todo:
|
||||||
- todo: when to run scheduled modifier? like, syncthing could have conflicts if I modify only file on remote
|
- todo: crap losing on a bad edit hurts
|
||||||
|
details: |
|
||||||
|
?
|
||||||
|
- vim doesnt source vimrc
|
||||||
|
- todo: when to run scheduled modifier? like, syncthing could have conflicts if I
|
||||||
|
modify only file on remote
|
||||||
|
ts: 1641007992
|
||||||
details: |
|
details: |
|
||||||
- if it's a web ui hook or somethin, then it'd only have file conflict if I modify without waiting
|
- if it's a web ui hook or somethin, then it'd only have file conflict if I modify without waiting
|
||||||
- but thats a step back from current todo solution
|
- but thats a step back from current todo solution
|
||||||
|
|
||||||
- todo: ez edit on many platforms, even offline and mobile
|
- todo: ez edit on many platforms, even offline and mobile
|
||||||
|
ts: 1641007992
|
||||||
details: |
|
details: |
|
||||||
mobile view + complete method
|
mobile view + complete method
|
||||||
collab editing of file prob resolves mobile and other stuff...
|
collab editing of file prob resolves mobile and other stuff...
|
||||||
|
|
@ -12,22 +18,24 @@ todo:
|
||||||
web server access to ops
|
web server access to ops
|
||||||
is a web ui for mobile best solution?
|
is a web ui for mobile best solution?
|
||||||
let git be smart-ish and keep latest? would provide versioning OOTB without touching raw
|
let git be smart-ish and keep latest? would provide versioning OOTB without touching raw
|
||||||
|
scheduled: []
|
||||||
done:
|
done:
|
||||||
- todo: crontab -e style editing to ensure good syntax
|
- crontab -e style editing to ensure good syntax
|
||||||
- todo: YAML based todo
|
- todo: YAML based todo
|
||||||
details:
|
ts: 1641007992
|
||||||
because goddamnit a year of this shit
|
details: because goddamnit a year of this shit isn't significant on disk or in RAM
|
||||||
isn't significant on disk or in RAM for vim
|
for vim
|
||||||
- todo: yaml based todo for plaintext
|
- todo: yaml based todo for plaintext
|
||||||
|
ts: 1641007992
|
||||||
details: a year isnt even a mb
|
details: a year isnt even a mb
|
||||||
- ez edit, start on many platforms
|
- ez edit, start on many platforms
|
||||||
- defer
|
- defer
|
||||||
- schedule
|
- schedule
|
||||||
- looping
|
- looping
|
||||||
- details
|
- details
|
||||||
- todo: let UI be UI for whatever platform
|
- let UI be UI for whatever platform
|
||||||
- tags
|
- tags
|
||||||
- todo: sub tasks
|
- todo: sub tasks
|
||||||
|
ts: 1641007992
|
||||||
subtasks:
|
subtasks:
|
||||||
- a
|
- a
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue