Skip to content

Commit 09291cf

Browse files
committed
style: fix grammar using typos
1 parent ea72289 commit 09291cf

File tree

9 files changed

+23
-23
lines changed

9 files changed

+23
-23
lines changed

autoload/fern/fri/from.vim

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
function! fern#fri#from#filepath(path) abort
22
if !fern#internal#filepath#is_absolute(a:path)
3-
throw printf('The "path" must be an absolute path but "%s" has specfied', a:path)
3+
throw printf('The "path" must be an absolute path but "%s" has specified', a:path)
44
endif
55
let path = fern#internal#filepath#to_slash(a:path)
66
return fern#fri#from#path(path)
77
endfunction
88

99
function! fern#fri#from#path(path) abort
1010
if a:path[:0] !=# '/'
11-
throw printf('The "path" must start from "/" but "%s" has specfied', a:path)
11+
throw printf('The "path" must start from "/" but "%s" has specified', a:path)
1212
endif
1313
let path = fern#internal#path#simplify(a:path)
1414
let path = fern#fri#encode(path)

autoload/fern/internal/buffer.vim

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ function! fern#internal#buffer#open(bufname, ...) abort
6969
if options.keepjumps && options.opener ==# 'edit'
7070
let options.mods .= ' keepjumps'
7171
endif
72-
" Use user frindly path on a real path to fix #284
72+
" Use user friendly path on a real path to fix #284
7373
let bufname = filereadable(a:bufname)
7474
\ ? fnamemodify(a:bufname, ':~:.')
7575
\ : a:bufname

autoload/fern/internal/node.vim

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ function! fern#internal#node#expand_tree(node, nodes, provider, comparator, toke
146146
if a:node.status is# s:STATUS_NONE
147147
return s:Promise.reject('cannot expand leaf node')
148148
elseif a:node.status is# s:STATUS_EXPANDED
149-
" Collpase first to avoid duplication
149+
" Collapse first to avoid duplication
150150
return fern#internal#node#collapse(a:node, a:nodes, a:provider, a:comparator, a:token)
151151
\.then({ ns -> fern#internal#node#expand_tree(a:node, ns, a:provider, a:comparator, a:token) })
152152
elseif has_key(a:node.concealed, '__promise_expand')

autoload/fern/logger.vim

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ function! s:format(level, args, sep) abort
8383
return map(split(m, '\n'), { -> printf("%-5S:%s%s", a:level, a:sep, v:val) })
8484
endfunction
8585

86-
" For backword compatibility
86+
" For backward compatibility
8787
const g:fern#logger#DEBUG = g:fern#DEBUG
8888
const g:fern#logger#INFO = g:fern#INFO
8989
const g:fern#logger#WARN = g:fern#WARN

autoload/fern/scheme/dict/mapping.vim

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ function! s:map_remove(helper) abort
144144

145145
let nodes = a:helper.sync.get_selected_nodes()
146146
let paths = map(copy(nodes), { _, v -> v._path })
147-
let prompt = printf('The follwoing %d entries will be removed', len(paths))
147+
let prompt = printf('The following %d entries will be removed', len(paths))
148148
for path in paths[:5]
149149
let prompt .= "\n" . path
150150
endfor

doc/fern-develop.txt

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,7 @@ like:
185185
call add(g:fern#mapping#mappings, ['your_plugin'])
186186
>
187187
*g:fern#mapping#mappings*
188-
A |List| of globally available mapping names.
188+
A |List| of globally available mapping names.
189189
A target mapping MUST exist under "fern#mapping#" namespace.
190190

191191

@@ -199,7 +199,7 @@ Provider is a core instance to produce scheme plugin. The instance must has
199199
the following methods.
200200

201201
*fern-develop-scheme-provider.get_root()*
202-
.get_root({url})
202+
.get_root({url})
203203
Return a (partial) node instance of the {url} (|String|).
204204
The node instance will be used as a root node of a tree.
205205
It throws error when no node is found for the {url}.
@@ -239,8 +239,8 @@ the following methods.
239239
MAPPING *fern-develop-scheme-mapping*
240240

241241
Fern provides scheme mappings under "autoload/fern/scheme/{scheme}/mapping"
242-
directory. Mapping MUST provide an init function as
243-
"fern#scheme#{scheme}#mapping#{name}#init()" with a boolean argument to disable
242+
directory. Mapping MUST provide an init function as
243+
"fern#scheme#{scheme}#mapping#{name}#init()" with a boolean argument to disable
244244
default mappings.
245245

246246
Mappings under that directory are registered automatically when a filename has
@@ -280,7 +280,7 @@ Following hook will be emitted by |fern#hook#emit()| from fern itself.
280280

281281
"viewer:ready" ({helper})
282282
Called when fern viewer has ready, mean that the buffer has opened and
283-
all content has rendererd.
283+
all content has rendered.
284284
The {helper} is a helper instance described in |fern-develop-helper|.
285285

286286

@@ -312,7 +312,7 @@ VARIABLE *fern-develop-helper-variable*
312312
"include" A |List| of |String| to include nodes
313313
"exclude" A |List| of |String| to exclude nodes
314314

315-
Develoeprs can refer each attributes but Do NOT modify.
315+
Developers can refer each attributes but Do NOT modify.
316316

317317
*fern-develop-helper.bufnr*
318318
.bufnr

doc/fern.txt

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -287,7 +287,7 @@ Users can customize above appearance by the following variables.
287287
A |String| used as a symbol of expanded branch node.
288288
Default: "|- "
289289

290-
See |FernHighlight| and |fern-highlight| to change pre-defeined |highlight|.
290+
See |FernHighlight| and |fern-highlight| to change pre-defined |highlight|.
291291

292292
Or create user custom renderer to change the appearance completely.
293293
See |fern-develop-renderer| for more details.
@@ -387,7 +387,7 @@ VARIABLE *fern-variable*
387387
Note that even with this option, any |jump-motions| performed in a
388388
fern buffer updates |jumplist|. For example, if user move cursors by
389389
"G" in above situation, |CTRL-O| in last step jumps to the fern buffer
390-
rather than a buffer "A" because a jump for "G" has recoreded in
390+
rather than a buffer "A" because a jump for "G" has recorded in
391391
|jumplist|.
392392
Default: 0
393393

@@ -405,7 +405,7 @@ VARIABLE *fern-variable*
405405

406406
*g:fern#disable_viewer_auto_duplication*
407407
Set 1 to disable viewer auto duplication on |WinEnter| autocmd.
408-
The duplication is mainly occured when user execute |split| or
408+
The duplication is mainly occurred when user execute |split| or
409409
|vsplit| command to duplicate window.
410410

411411
*g:fern#disable_drawer_auto_winfixwidth*
@@ -589,7 +589,7 @@ COMMAND *fern-command*
589589
If {reveal} is specified, parent nodes of the node which is identified
590590
by the {reveal} are expanded and the node will be focused.
591591
The {reveal} must be a relative path separated by "/" from the
592-
specfied {url}.
592+
specified {url}.
593593
Note that if the {url} is for "file" scheme, an absolute path can be
594594
specified to the {reveal}.
595595
*fern-opener*
@@ -608,7 +608,7 @@ COMMAND *fern-command*
608608
"edit/tabedit" Open a buffer by |edit| or |tabedit| when the buffer
609609
is |modified|
610610

611-
Additionally, any modifiers (|mods|) are allowd to be prepend (e.g.
611+
Additionally, any modifiers (|mods|) are allowed to be prepend (e.g.
612612
"topleft split".)
613613

614614
Note that the command can be followed by a '|' and another command.
@@ -933,7 +933,7 @@ GLOBAL *fern-mapping-global*
933933
root node.
934934

935935
*<Plug>(fern-action-expand-tree:in)*
936-
Recursively expand the tree on a cursor node and keep the cursor on the
936+
Recursively expand the tree on a cursor node and keep the cursor on the
937937
root node (moves to the first child node after the cursor node)
938938

939939
*<Plug>(fern-action-expand-tree)*
@@ -981,7 +981,7 @@ GLOBAL *fern-mapping-global*
981981
drawer style fern (|fern-glossary-anchor|.)
982982

983983
*<Plug>(fern-action-open:drop)*
984-
Open a cursor node or jump the window when it was already opend.
984+
Open a cursor node or jump the window when it was already opened.
985985
Note See |drop| for more details.
986986

987987
*<Plug>(fern-action-open:edit-or-error)*
@@ -1258,7 +1258,7 @@ The following mappings/actions are only available on file:// scheme.
12581258
*<Plug>(fern-action-remove)*
12591259
*<Plug>(fern-action-remove=)*
12601260
Open a prompt to ask if fern can DELETE the cursor node or marked
1261-
nodes. BE CAREFUL with this action while it DELETE the file/directoty
1261+
nodes. BE CAREFUL with this action while it DELETE the file/directory
12621262
and users cannot restore (like "rm" in terminal.)
12631263
You can use a "=" variant to apply values to the prompt and/or submit
12641264
a value like:

test/fern/helper.vimspec

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -246,7 +246,7 @@ Describe fern#helper
246246
It does not reject the promise
247247
let [r, e] = Promise.wait(
248248
\ helper.async.sleep(1),
249-
\ { 'timoeut': TIMEOUT },
249+
\ { 'timeout': TIMEOUT },
250250
\)
251251
Assert Equals(e, v:null)
252252
End
@@ -261,7 +261,7 @@ Describe fern#helper
261261
It does not reject the promise
262262
let [r, e] = Promise.wait(
263263
\ helper.async.redraw(),
264-
\ { 'timoeut': TIMEOUT },
264+
\ { 'timeout': TIMEOUT },
265265
\)
266266
Assert Equals(e, v:null)
267267
End

test/fern/hook.vimspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ Describe fern#hook
2828
End
2929

3030
Describe #remove()
31-
It removes a specfied hook
31+
It removes a specified hook
3232
let ns1 = []
3333
let ns2 = []
3434
call fern#hook#add('t', { -> extend(ns1, a:000) })

0 commit comments

Comments
 (0)