File tree Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Original file line number Diff line number Diff line change 6
6
" Note: This file is encoded in UTF-8 including a byte order mark so
7
7
" that Vim loads the script using the right encoding transparently.
8
8
9
- let g: xolox #notes#version = ' 0.12.7 '
9
+ let g: xolox #notes#version = ' 0.12.8 '
10
10
11
11
function ! xolox#notes#shortcut () " {{{1
12
12
" The "note:" pseudo protocol is just a shortcut for the :Note command.
Original file line number Diff line number Diff line change @@ -123,6 +123,7 @@ function! xolox#notes#tags#show_tags(minsize) " {{{1
123
123
for title in xolox#notes#get_titles (0 )
124
124
let unmatched[title ] = 1
125
125
endfor
126
+ let totalnotes = len (unmatched)
126
127
" Group matching notes and remove them from the dictionary.
127
128
let grouped_notes = []
128
129
let numtags = 0
@@ -158,8 +159,9 @@ function! xolox#notes#tags#show_tags(minsize) " {{{1
158
159
endif
159
160
endfor
160
161
if a: minsize <= 1
161
- let message = printf (" You've used %i %s in your notes" ,
162
- \ numtags, numtags == 1 ? " tag" : " tags" )
162
+ let message = printf (" You've used %i %s in %i %s" ,
163
+ \ numtags, numtags == 1 ? " tag" : " tags" ,
164
+ \ totalnotes, totalnotes == 1 ? " note" : " notes" )
163
165
else
164
166
let message = printf (" There %s %i %s that %s been used at least %s times" ,
165
167
\ numtags == 1 ? " is" : " are" , numtags,
You can’t perform that action at this time.
0 commit comments