dhruvasagar / vim-dotoo

Org-mode like task logging & time tracking in Vim
558 stars 27 forks source link

Fix finding headline and use writefile with append flag. #120

Closed kristijanhusak closed 3 years ago

kristijanhusak commented 3 years ago

This PR fixes 2 things:

  1. Uses writefile() with a flag when moving headline from one file to another instead of opening target file in the split view. Opening file in split view messes up the focus for me after headline is moved because it focuses the wrong window.
  2. Consider both org and dotoo when figuring out the target filename. If buf is not loaded, find filename from loaded agenda file names.
dhruvasagar commented 3 years ago

@kristijanhusak Thanks again. Loving the updates! If there are things you'd like or you wanna discuss feel free to hit me up or raise a bug