You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+16-9Lines changed: 16 additions & 9 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -54,7 +54,7 @@ This option defines the pathname of the Python script that's used to perform acc
54
54
55
55
### The `g:notes_tagsindex` option
56
56
57
-
This option defined the pathname of the text file that stores the list of known tags used for tag name completion. The text file is created automatically when you first use tag name completion, after that you can update it manually by executing `:IndexTaggedNotes` (see below).
57
+
This option defines the pathname of the text file that stores the list of known tags used for tag name completion and the `:ShowTaggedNotes` command. The text file is created automatically when it's first needed, after that you can recreate it manually by executing `:IndexTaggedNotes` (see below).
58
58
59
59
## Commands
60
60
@@ -84,14 +84,6 @@ When you execute this command it will start a new note with the selected text as
84
84
85
85
The `:DeleteNote` command deletes the current note, destroys the buffer and removes the note from the internal cache of filenames and note titles. This fails when changes have been made to the current buffer, unless you use `:DeleteNote!` which discards any changes.
86
86
87
-
### The `:IndexTaggedNotes` command
88
-
89
-
The notes plug-in defines an omni completion function that can be used to complete the names of tags. To trigger the omni completion you type Control-X Control-O. When you type `@` in insert mode the plug-in will automatically start omni completion.
90
-
91
-
The completion menu is populated from a text file listing all your tags, one on each line. The first time omni completion triggers, an index of tag names is generated and saved to the location set by `g:notes_tagsindex`. To update this tags index you need to execute the `:IndexTaggedNotes` command.
92
-
93
-
If you execute this command with a bang as in `:IndexTaggedNotes!` it wil open a split window with a cross reference of all the tags you've used and the files in which each tag has been used.
94
-
95
87
### The `:SearchNotes` command
96
88
97
89
This command wraps [:vimgrep][vimgrep] and enables you to search through your notes using one or more keywords or a regular expression pattern. To search for a pattern you pass a single argument that starts/ends with a slash:
@@ -133,6 +125,21 @@ This command makes it easy to find all notes related to the current file: If you
133
125
134
126
If you execute the `:RecentNotes` command it will open a Vim buffer that lists all your notes grouped by the day they were edited, starting with your most recently edited note. If you pass an argument to `:RecentNotes` it will filter the list of notes by matching the title of each note against the argument which is interpreted as a Vim pattern.
135
127
128
+
### The `:ShowTaggedNotes` command
129
+
130
+
To show a list of all notes that contains *@tags@* you can use the `:ShowTaggedNotes` command. If you pass a count to this command it will limit the list of tags to those that have been used at least this many times. For example the following two commands show tags that have been used at least ten times:
131
+
132
+
:10ShowTaggedNotes
133
+
:ShowTaggedNotes 10
134
+
135
+
### The `:IndexTaggedNotes` command
136
+
137
+
The notes plug-in defines an omni completion function that can be used to complete the names of tags. To trigger the omni completion you type Control-X Control-O. When you type `@` in insert mode the plug-in will automatically start omni completion.
138
+
139
+
The completion menu is populated from a text file listing all your tags, one on each line. The first time omni completion triggers, an index of tag names is generated and saved to the location set by `g:notes_tagsindex`. After this file is created, it will be updated automatically as you edit notes and add/remove tags.
140
+
141
+
If for any reason you want to recreate the list of tags you can execute the `:IndexTaggedNotes` command.
142
+
136
143
## Other plug-ins that work well with the notes plug-in
137
144
138
145
* The [utl.vim][utl] universal text linking plug-in enables links between your notes, other local files and remote resources like web pages
0 commit comments