Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

tasks requiring confirmation #142

Open
migueldvb opened this issue Jan 7, 2018 · 10 comments
Open

tasks requiring confirmation #142

migueldvb opened this issue Jan 7, 2018 · 10 comments

Comments

@migueldvb
Copy link

When I run a task that requires confirmation from vim-taskwarrior such as deleting an order the command fails.

:!task 107 delete                                                                                     

Delete task 107 'update order'? (yes/no) Task not deleted.
Deleted 0 tasks.
shell returned 1

I'm using neovim 0.2.2. Is there any way to confirm the task deletion from vim-taskwarrior?

@DarrienG
Copy link

Same issue here.

@arooni
Copy link

arooni commented Sep 3, 2018

ditto / tritto (three people with the same issue?) lol

@Aerex
Copy link

Aerex commented Oct 29, 2018

This is a really old issue but has this been resolved? I am dealing with the same problem. Is it possible to simply use something like Dispatch so that it doesn't use the default ?

@arooni
Copy link

arooni commented Jan 17, 2019

also fails with task undo.

@xarthurx
Copy link

taskwarrior 2.4.0 starts to allow rc.confirmation=no for a non-interactive shell command.

Since this repo is not maintained any more, I've fixed it in my fork (hopefully will keep adding new things), and available here:

https://github.com/xarthurx/vim-taskwarrior

@DarrienG
Copy link

The hero we need but don't deserve 😭

@xarthurx
Copy link

xarthurx commented May 13, 2019

The undo should also be fixed now. @arooni

The main problem is that vim doesn't encourage interactive-type of command.
So what I do in the fork is to fake a confirmation with vimscript, and suppress the shell interaction with rc.confirmation=no.

I'll be first implementing meaningful fixes based on the issues in this repo for the past 2 years, then see if it make sense to add more functionalities from newer TaskWarrior.

There's also an alternative way to interactive with TaskWarrior with tasklib.
(This is my beginning attempt to work with TaskWarrior from WSL by contributing PRs, but doesn't work out well with it + taskwiki -- I end up here with this plugin)

Please feel free to try out the fork and submit issues/PRs.

@xarthurx
Copy link

for the command of deleting, please use either :TWDelete or the shortcut D instead of pure shell command :!task xx delete.

The latter is a pure shell cmd and vim cannot handle the interaction.

Though of course you can do :!task xx delete rc.confirmation=no if you like.

@PhilippWoelfel
Copy link

@xarthurx : Tried your fork, but I am getting errors. Where can I submit an issue?

@xarthurx
Copy link

xarthurx commented May 16, 2019 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants