diff options
author | Matthew Lemon <y@yulqen.org> | 2023-06-04 15:34:34 +0100 |
---|---|---|
committer | Matthew Lemon <y@yulqen.org> | 2023-06-04 15:34:34 +0100 |
commit | 9b96a5d107ffe957a83e103f6328b91df75fe81e (patch) | |
tree | 2865bb02ee6309ce8835825d5fea70c9237ee07f /vim | |
parent | a60dd9132c612266c5a8ece6541ffab918e1985e (diff) |
Brings back function to add taskwarrior task from vim buffer
Diffstat (limited to 'vim')
-rw-r--r-- | vim/vimrc | 11 |
1 files changed, 11 insertions, 0 deletions
@@ -45,6 +45,17 @@ set tags+=./tags set background=dark set completeopt=menuone,longest +" Function to allow adding a line of text to taskwarrior +function! TaskWarriorAddCurrentLine() + let current_line = getline('.') + silent execute ":!task add " . shellescape(current_line) + redraw! + echo "Task added: " . current_line + delete +endfunction + +nnoremap <leader>q :call TaskWarriorAddCurrentLine()<CR> + " colorscheme goes here, outside source control source ~/.vim/ephemera.vim highlight SignColumn guibg=blue ctermbg=black |