add txt files to g:denote_note_file_extension
This commit is contained in:
@@ -85,9 +85,10 @@ nnoremap [l :lprevious<CR>
|
|||||||
### Customization
|
### Customization
|
||||||
You can customize the behavior of this package using the following two global
|
You can customize the behavior of this package using the following two global
|
||||||
variables. The variable `g:denote_note_file_extensions` defaults to `['md',
|
variables. The variable `g:denote_note_file_extensions` defaults to `['md',
|
||||||
'org']` and lists the file extensions in which `:DenoteGrep` will look for the
|
'org', 'txt']` and lists the file extensions in which `:DenoteGrep` will look
|
||||||
given pattern. The other variable `g:denote_loc_title_columns` defaults to `40`
|
for the given pattern. The other variable `g:denote_loc_title_columns` defaults
|
||||||
and specifies the number of columns used to display the titles of your notes.
|
to `40` and specifies the number of columns used to display the titles of your
|
||||||
|
notes.
|
||||||
|
|
||||||
### Future features
|
### Future features
|
||||||
These features are planned:
|
These features are planned:
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
" Go to file command |gf| adjustments {{{1
|
" Go to file command |gf| adjustments {{{1
|
||||||
" This resolves denote links in markdown and org files. The function has access
|
" This resolves denote links. The function has access to the variable v:fname,
|
||||||
" to the variable v:fname, which corresponds to the filename under the cursor.
|
" which corresponds to the filename under the cursor.
|
||||||
function s:DenoteGotoFile()
|
function s:DenoteGotoFile()
|
||||||
return v:fname !~ "^denote:"
|
return v:fname !~ "^denote:"
|
||||||
\ ? v:fname
|
\ ? v:fname
|
||||||
|
|||||||
@@ -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
|
within which |:DenoteGrep| will search for the provided pattern. If left
|
||||||
unspecified, it is set to the following default value:
|
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'*
|
*'g:denote_loc_title_columns'*
|
||||||
This integer specifies the number of columns used to display the titles of
|
This integer specifies the number of columns used to display the titles of
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
" Restrict basic operations to these files:
|
" Restrict basic operations to these files:
|
||||||
if !exists('g:denote_note_file_extensions')
|
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
|
endif
|
||||||
|
|
||||||
" Number of columns used for the title in the location window.
|
" Number of columns used for the title in the location window.
|
||||||
|
|||||||
Reference in New Issue
Block a user