dhruvasagar / vim-dotoo

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

Agena View: moving headlines has possibility of erasing TODO without creating new file #124

Open joshzcold opened 3 years ago

joshzcold commented 3 years ago
let g:dotoo#agenda#files = ['/home/joshua/git/org/*.dotoo']
let g:dotoo#capture#clock = 0
let g:dotoo#capture#refile = expand('/home/joshua/git/org/refile.dotoo')

say I have these agena files

❯ ls git/org/
AA.dotoo  devops.dotoo  refile.dotoo  SSPR.dotoo

if I move a headline using m and try to specify a file that doesn't exist (i.e create a new file) then the headline is remove and no new file is created.

Moving the headline to a file that exist works fine.

NeoVim version:

NVIM v0.5.0-dev+1231-g48e805728
Build type: RelWithDebInfo
LuaJIT 2.1.0-beta3
Compilation: /usr/bin/cc -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=1 -O2 -g -Og -g -Wall -Wextra -pedantic -Wno-unused-parameter -Wstrict-prototypes -std=gnu99 -Wshadow -Wconversion -Wmissing-prototypes -Wvla -fstack-protector-strong -fno-common -fdiagnostics-color=always -DINCLUDE_GENERATED_DECLARATIONS -D_GNU_SOURCE -DNVIM_MSGPACK_HAS_FLOAT32 -DNVIM_UNIBI_HAS_VAR_FROM -DMIN_LOG_LEVEL=3 -I/home/runner/work/neovim/neovim/build/config -I/home/runner/work/neovim/neovim/src -I/home/runner/work/neovim/neovim/.deps/usr/include -I/usr/include -I/home/runner/work/neovim/neovim/build/src/nvim/auto -I/home/runner/work/neovim/neovim/build/include
Compiled by runner@fv-az36-521

Features: +acl +iconv +tui
dhruvasagar commented 3 years ago

@joshzcold Thanks for reporting this, in my opinion dotoo should notify that the target is missing and no perform any action. I'll work on this.