From 224986ab9639ee3f055f5a2d1c088d15a44ca5e9 Mon Sep 17 00:00:00 2001 From: David Beniamine Date: Wed, 23 Jan 2019 12:06:53 +0100 Subject: [PATCH 1/6] Add gitlab ci --- .gitlab-ci.yml | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 .gitlab-ci.yml diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml new file mode 100644 index 0000000..d887a2b --- /dev/null +++ b/.gitlab-ci.yml @@ -0,0 +1,20 @@ +stages: + -test + +test-vim-latest: + image: thinca/vim:v7.4 + script: + - cd tests + - bash runtests.sh + +test-vim-7.4: + image: thinca/vim:v7.4 + script: + - cd tests + - bash runtests.sh + +test-neovim: + image: lambdalisue/neovim-ci + script: + - cd tests + - bash runtests.sh From 8554880297c517612040786ad6ed05592f154abe Mon Sep 17 00:00:00 2001 From: David Beniamine Date: Wed, 23 Jan 2019 12:07:28 +0100 Subject: [PATCH 2/6] Fix gitlab ci --- .gitlab-ci.yml | 3 --- 1 file changed, 3 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index d887a2b..a82f145 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -1,6 +1,3 @@ -stages: - -test - test-vim-latest: image: thinca/vim:v7.4 script: From cfc60009484fd795f6c1e391cac9792f124407dc Mon Sep 17 00:00:00 2001 From: David Beniamine Date: Wed, 23 Jan 2019 12:12:18 +0100 Subject: [PATCH 3/6] Change top repo command to fix CI --- tests/runtests.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/runtests.sh b/tests/runtests.sh index 5774bfa..c99569b 100644 --- a/tests/runtests.sh +++ b/tests/runtests.sh @@ -1,6 +1,6 @@ #/bin/bash -REPO_TOP=$(git rev-parse --show-toplevel) +REPO_TOP="$(dirname $0)/.." cd "${REPO_TOP}" echo "Basic environment" From 74ea6248ddc1dd485ad9151fdf79c410cef8b656 Mon Sep 17 00:00:00 2001 From: David Beniamine Date: Wed, 23 Jan 2019 12:16:36 +0100 Subject: [PATCH 4/6] Fix sheebang --- tests/runtests.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/runtests.sh b/tests/runtests.sh index c99569b..516da6b 100644 --- a/tests/runtests.sh +++ b/tests/runtests.sh @@ -1,4 +1,4 @@ -#/bin/bash +#!/bin/bash REPO_TOP="$(dirname $0)/.." cd "${REPO_TOP}" From 739d58ec8ce412b89b39706dc8d2a77318eeec4f Mon Sep 17 00:00:00 2001 From: David Beniamine Date: Wed, 23 Jan 2019 12:19:21 +0100 Subject: [PATCH 5/6] Revert "Change top repo command to fix CI" This reverts commit cfc60009484fd795f6c1e391cac9792f124407dc. --- tests/runtests.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/runtests.sh b/tests/runtests.sh index 516da6b..368140f 100644 --- a/tests/runtests.sh +++ b/tests/runtests.sh @@ -1,6 +1,6 @@ #!/bin/bash -REPO_TOP="$(dirname $0)/.." +REPO_TOP=$(git rev-parse --show-toplevel) cd "${REPO_TOP}" echo "Basic environment" From 00ecbeb8b7dc827e6010fafe770cc1f5f4d7eee8 Mon Sep 17 00:00:00 2001 From: Risto Saarelma Date: Fri, 8 Feb 2019 10:26:17 +0200 Subject: [PATCH 6/6] Add setting for dropping priority metadata The default behavior of todo.txt is to add priority metadata to done items with priority tags so that the priority can be restored when the item is marked as undone. If you want to have cleaner done items and just remove the priority information when the item is set as done, set let g:TodoTxtStripDoneItemPriority=1 --- autoload/todo.vim | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/autoload/todo.vim b/autoload/todo.vim index d3026d7..c6c679c 100644 --- a/autoload/todo.vim +++ b/autoload/todo.vim @@ -102,7 +102,11 @@ endfunction function! todo#MarkAsDone(status) call todo#CreateNewRecurrence(1) - exec ':s/\C^(\([A-Z]\))\(.*\)/\2 pri:\1/e' + if get(g:, 'TodoTxtStripDoneItemPriority', 0) + exec ':s/\C^(\([A-Z]\))\(.*\)/\2/e' + else + exec ':s/\C^(\([A-Z]\))\(.*\)/\2 pri:\1/e' + endif if a:status!='' exec 'normal! I'.a:status.' ' endif