@@ -12,6 +12,8 @@ CONTENTS *notational-fzf-contents*
1212 1.6. Optional dependencies..........| notational-fzf-optional_dependencies |
1313 1.7. Required Settings..................| notational-fzf-required_settings |
1414 1.8. Detailed Usage........................| notational-fzf-detailed_usage |
15+ 1.8.1. :NV Command...............................| notational-fzf-nv |
16+ 1.8.2. :NVFiles Command.....................| notational-fzf-nvfiles |
1517 1.9. Mappings....................................| notational-fzf-mappings |
1618 1.10. Optional Settings and Their Defaults.| notational-fzf-optional_settings_and_their_defaults |
1719 1.10.1. bat config.........................| notational-fzf-bat_config |
@@ -137,17 +139,22 @@ Remember that these can be relative links.
137139--------------------------------------------------------------------------------
138140DETAILED USAGE *notational-fzf-detailed_usage*
139141
140- This plugin unites searching and file creation. It defines a single
141- command `:NV` , which can take 0 or more arguments, which are interpreted
142- as regexes.
142+ This plugin unites searching and file creation. It defines two commands:
143+ `:NV` for line-based search and `:NVFiles` for unique file search.
144+
145+ *notational-fzf-nv*
146+ :NV Command ~
147+
148+ The original command that searches content line-by-line. When you select
149+ a result, it opens the file and jumps to the matching line.
143150
144151Type `:NV` or bind it to a mapping to bring up a fuzzy search menu. Type
145152in your search terms and it will fuzzy search for them. Adding an
146153exclamation mark to the command (`:NV! ` ), will run it fullscreen.
147154
148155You can type `:NV` to see all results, and then filter them with FZF.
149- You can type to restrict your initial search to lines that
150- contain the phrase `python ` . will find all numbers
156+ You can type `:NV python` to restrict your initial search to lines that
157+ contain the phrase `python ` . `:NV [0-9] [0-9] ` will find all numbers
151158separated by a space. You know, regexes.
152159
153160It does not search in a fully fuzzy fashion because that's less useful
@@ -167,16 +174,38 @@ Note that the following options can be customized.
167174
168175The lines around the selected file will be visible in a preview window.
169176
177+ *notational-fzf-nvfiles*
178+ :NVFiles Command ~
179+
180+ An alternative command that shows unique files instead of individual lines.
181+ Files are sorted by modification time (most recent first), and both
182+ filenames and file contents are searched.
183+ >
184+ :NVFiles " Show all files sorted by mtime
185+ :NVFiles python " Pre-filter to files matching 'python'
186+ :NVFiles! " Fullscreen mode
187+ <
188+ Key differences from `:NV` :
189+ * Shows each file only once (no duplicates)
190+ * Sorted by modification time (most recent first)
191+ * Searches both filenames and content
192+ * Opens file at the beginning (no line jumping)
193+ * Interactive filtering re-searches as you type
194+
195+ Use `:NV` when you need to find a specific line or jump to exact content.
196+ Use `:NVFiles` when you're looking for a note by name or topic.
197+
170198--------------------------------------------------------------------------------
171199MAPPINGS *notational-fzf-mappings*
172200
173- This plugin only defines a command `:NV` , and if you want a mapping for
174- it , you can define it yourself. This is intentionally not done by
175- default. You should use whatever mapping(s) work best for you.
201+ This plugin defines `:NV` and `:NVFiles` commands. If you want mappings
202+ for them , you can define them yourself. This is intentionally not done
203+ by default. You should use whatever mapping(s) work best for you.
176204
177205For example,
178206>
179207 nnoremap <silent> <c-s> :NV<CR>
208+ nnoremap <silent> <c-n> :NVFiles<CR>
180209<
181210
182211--------------------------------------------------------------------------------
@@ -238,6 +267,15 @@ default, set .
238267 " List of Strings. Key mappings like above in case you want to define your own
239268 " handler function. Most users won't want to set this to anything.
240269 let g:nv_expect_keys = []
270+
271+ " Boolean. If set, automatically create a note when no results match
272+ " and you press Enter. Disabled by default.
273+ let g:nv_create_if_no_results = 0
274+
275+ " Dictionary. Map keys to directories for creating notes in specific
276+ " locations. Each key creates a note in the corresponding directory.
277+ " Example: let g:nv_create_dirs = {'ctrl-1': '~/notes', 'ctrl-2': '~/work'}
278+ let g:nv_create_dirs = {}
241279<
242280
243281BAT CONFIG *notational-fzf-bat_config*
0 commit comments