From 9b96a5d107ffe957a83e103f6328b91df75fe81e Mon Sep 17 00:00:00 2001 From: Matthew Lemon Date: Sun, 4 Jun 2023 15:34:34 +0100 Subject: Brings back function to add taskwarrior task from vim buffer --- vim/vimrc | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'vim/vimrc') diff --git a/vim/vimrc b/vim/vimrc index c9b4846..1fb26aa 100644 --- a/vim/vimrc +++ b/vim/vimrc @@ -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 q :call TaskWarriorAddCurrentLine() + " colorscheme goes here, outside source control source ~/.vim/ephemera.vim highlight SignColumn guibg=blue ctermbg=black -- cgit v1.2.3