Skip to content

Commit b6c1816

Browse files
committed
doc: fix typo and line wrapping
1 parent 82816d9 commit b6c1816

File tree

3 files changed

+24
-11
lines changed

3 files changed

+24
-11
lines changed

doc/oil.txt

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -465,16 +465,17 @@ of being permanently deleted. You can browse the trash for a directory using
465465
the `toggle_trash` action (bound to `g\` by default). You can view all files
466466
in the trash with `:Oil --trash`.
467467

468-
To restore files, simply delete them from the trash and put them in the desired destination, the same as any other file operation. If you delete files from
469-
the trash they will be permanently deleted (purged).
468+
To restore files, simply delete them from the trash and put them in the desired
469+
destination, the same as any other file operation. If you delete files from the
470+
trash they will be permanently deleted (purged).
470471

471472
Linux:
472473
Oil supports the FreeDesktop trash specification.
473474
https://specifications.freedesktop.org/trash-spec/trashspec-1.0.html
474475
All features should work.
475476

476477
Mac:
477-
Oil has limited support for MacOS due to the prioprietary nature of the
478+
Oil has limited support for MacOS due to the proprietary nature of the
478479
implementation. The trash bin can only be viewed as single dir
479480
(instead of being able to see files that were trashed from a directory).
480481

lua/oil/mutator/init.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ M.create_actions_from_diffs = function(all_diffs)
113113
else
114114
local by_id = diff_by_id[diff.id]
115115
by_id.has_delete = true
116-
-- Don't insert the delete. We already know that there is a delete because of the presense
116+
-- Don't insert the delete. We already know that there is a delete because of the presence
117117
-- in the diff_by_id map. The list will only include the 'new' diffs.
118118
end
119119
end

scripts/generate.py

Lines changed: 19 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,21 @@
44
from dataclasses import dataclass, field
55
from typing import List
66

7-
from nvim_doc_tools import (LuaParam, Vimdoc, VimdocSection, generate_md_toc,
8-
indent, leftright, parse_functions, read_nvim_json,
9-
read_section, render_md_api, render_vimdoc_api,
10-
replace_section, wrap)
7+
from nvim_doc_tools import (
8+
LuaParam,
9+
Vimdoc,
10+
VimdocSection,
11+
generate_md_toc,
12+
indent,
13+
leftright,
14+
parse_functions,
15+
read_nvim_json,
16+
read_section,
17+
render_md_api,
18+
render_vimdoc_api,
19+
replace_section,
20+
wrap,
21+
)
1122
from nvim_doc_tools.vimdoc import format_vimdoc_params
1223

1324
HERE = os.path.dirname(__file__)
@@ -217,16 +228,17 @@ def get_trash_vimdoc() -> "VimdocSection":
217228
the `toggle_trash` action (bound to `g\\` by default). You can view all files
218229
in the trash with `:Oil --trash`.
219230
220-
To restore files, simply delete them from the trash and put them in the desired destination, the same as any other file operation. If you delete files from
221-
the trash they will be permanently deleted (purged).
231+
To restore files, simply delete them from the trash and put them in the desired
232+
destination, the same as any other file operation. If you delete files from the
233+
trash they will be permanently deleted (purged).
222234
223235
Linux:
224236
Oil supports the FreeDesktop trash specification.
225237
https://specifications.freedesktop.org/trash-spec/trashspec-1.0.html
226238
All features should work.
227239
228240
Mac:
229-
Oil has limited support for MacOS due to the prioprietary nature of the
241+
Oil has limited support for MacOS due to the proprietary nature of the
230242
implementation. The trash bin can only be viewed as single dir
231243
(instead of being able to see files that were trashed from a directory).
232244

0 commit comments

Comments
 (0)