diff --git a/README.md b/README.md index c379471..4371121 100644 --- a/README.md +++ b/README.md @@ -85,9 +85,10 @@ nnoremap [l :lprevious ### Customization You can customize the behavior of this package using the following two global variables. The variable `g:denote_note_file_extensions` defaults to `['md', -'org']` and lists the file extensions in which `:DenoteGrep` will look for the -given pattern. The other variable `g:denote_loc_title_columns` defaults to `40` -and specifies the number of columns used to display the titles of your notes. +'org', 'txt']` and lists the file extensions in which `:DenoteGrep` will look +for the given pattern. The other variable `g:denote_loc_title_columns` defaults +to `40` and specifies the number of columns used to display the titles of your +notes. ### Future features These features are planned: diff --git a/after/ftplugin/markdown.vim b/after/ftplugin/markdown.vim index 25229ea..19bb301 100644 --- a/after/ftplugin/markdown.vim +++ b/after/ftplugin/markdown.vim @@ -1,6 +1,6 @@ " Go to file command |gf| adjustments {{{1 -" This resolves denote links in markdown and org files. The function has access -" to the variable v:fname, which corresponds to the filename under the cursor. +" This resolves denote links. The function has access to the variable v:fname, +" which corresponds to the filename under the cursor. function s:DenoteGotoFile() return v:fname !~ "^denote:" \ ? v:fname diff --git a/doc/denote.txt b/doc/denote.txt index aae611e..2f1fa43 100644 --- a/doc/denote.txt +++ b/doc/denote.txt @@ -62,7 +62,7 @@ With this setting you may specify the file extensions of all denote entries within which |:DenoteGrep| will search for the provided pattern. If left unspecified, it is set to the following default value: > - g:denote_note_file_extension = ['md', 'org'] + g:denote_note_file_extension = ['md', 'org', 'txt'] < *'g:denote_loc_title_columns'* This integer specifies the number of columns used to display the titles of diff --git a/plugin/denote.vim b/plugin/denote.vim index ad4bcb4..bef7d42 100644 --- a/plugin/denote.vim +++ b/plugin/denote.vim @@ -2,7 +2,7 @@ " Restrict basic operations to these files: if !exists('g:denote_note_file_extensions') - let g:denote_note_file_extensions=['md', 'org'] + let g:denote_note_file_extensions=['md', 'org', 'txt'] endif " Number of columns used for the title in the location window.