...
 
Commits (2)
......@@ -5,13 +5,21 @@ License: MIT License (see |license|)
INTRODUCTION *Taskfile*
This plugin's main purpose is to upload every file that you save to a remote
location. This can be defined on a per-project-basis via a configuration file
(`.AutoRemoteSync.json`).
This plugin's main purpose is run tasks of the Taskfile runner.
See https://git.superevilmegaco.com/bash/Taskfile for more information.
COMMANDS *Taskfile-commands*
:Taskfile
Task *:Task*
Run tasks defined in the Taskfile.
`:Task <tab><tab>`
TaskVerbose *:TaskVerbose*
After setting verbose mode to 1 each task is executed in a
Vim term.
`:TaskVerbose 1|0`
MAPPINGS *Taskfile-mappings*
......@@ -19,14 +27,15 @@ There are no mappings registered by the plugin.
You need to map it according to your preference.
*Taskfile#Run()*
Uploads the file opened in the current buffer when no argument is passed.
You can pass the filepath relative to the current working directory,
if you want to upload a different file manually.
*Taskfile#Reload()*
Downloads the file opened in the current buffer when no argument is passed.
You can pass the filepath relative to the current working directory,
if you want to download a different file manually.
Runs the task passed as argument to the function.
*Taskfile#Verbose()*
Sets output to verbose. Each task is executed in a Vim term.
`:call Taskfile#Verbose(1)`
To disable verbose mode, just call the function with 0.
`:call Taskfile#Verbose(0)`
ABOUT *Taskfile-about*
......
......@@ -4,7 +4,7 @@ endif
let g:loaded_Taskfile = 1
let s:PluginName = "Taskfile.nvim"
let s:isVerbose = 1
let s:isVerbose = 0
let s:taskList = [""]
let s:TaskfileWindow = 0
......@@ -52,7 +52,7 @@ function! s:OnTermEventHandler(job_id, data, event) dict
elseif a:event == 'stderr'
execute s:TaskfileWindow . "windo startinsert!"
elseif a:data == 0
" do nothing
execute s:TaskfileWindow . "windo startinsert!"
else
execute s:TaskfileWindow . "windo startinsert!"
endif
......@@ -146,4 +146,5 @@ function! s:GetCurrentFile()
endfunction
command! -bang -complete=customlist,s:taskListCompletion -nargs=* Task call Taskfile#Run(<f-args>)
command! -nargs=1 TaskVerbose call Taskfile#Verbose(<f-args>)