Fix `:quit!` description and tense of other commands (#902)

pull/906/head
Omnikar 3 years ago committed by GitHub
parent 42eee9d5bf
commit a7d87c79ce
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -2110,7 +2110,7 @@ mod cmd {
TypableCommand { TypableCommand {
name: "quit!", name: "quit!",
aliases: &["q!"], aliases: &["q!"],
doc: "Close the current view.", doc: "Close the current view forcefully (ignoring unsaved changes).",
fun: force_quit, fun: force_quit,
completer: None, completer: None,
}, },
@ -2173,35 +2173,35 @@ mod cmd {
TypableCommand { TypableCommand {
name: "write-quit", name: "write-quit",
aliases: &["wq", "x"], aliases: &["wq", "x"],
doc: "Writes changes to disk and closes the current view. Accepts an optional path (:wq some/path.txt)", doc: "Write changes to disk and close the current view. Accepts an optional path (:wq some/path.txt)",
fun: write_quit, fun: write_quit,
completer: Some(completers::filename), completer: Some(completers::filename),
}, },
TypableCommand { TypableCommand {
name: "write-quit!", name: "write-quit!",
aliases: &["wq!", "x!"], aliases: &["wq!", "x!"],
doc: "Writes changes to disk and closes the current view forcefully. Accepts an optional path (:wq! some/path.txt)", doc: "Write changes to disk and close the current view forcefully. Accepts an optional path (:wq! some/path.txt)",
fun: force_write_quit, fun: force_write_quit,
completer: Some(completers::filename), completer: Some(completers::filename),
}, },
TypableCommand { TypableCommand {
name: "write-all", name: "write-all",
aliases: &["wa"], aliases: &["wa"],
doc: "Writes changes from all views to disk.", doc: "Write changes from all views to disk.",
fun: write_all, fun: write_all,
completer: None, completer: None,
}, },
TypableCommand { TypableCommand {
name: "write-quit-all", name: "write-quit-all",
aliases: &["wqa", "xa"], aliases: &["wqa", "xa"],
doc: "Writes changes from all views to disk and close all views.", doc: "Write changes from all views to disk and close all views.",
fun: write_all_quit, fun: write_all_quit,
completer: None, completer: None,
}, },
TypableCommand { TypableCommand {
name: "write-quit-all!", name: "write-quit-all!",
aliases: &["wqa!", "xa!"], aliases: &["wqa!", "xa!"],
doc: "Writes changes from all views to disk and close all views forcefully (ignoring unsaved changes).", doc: "Write changes from all views to disk and close all views forcefully (ignoring unsaved changes).",
fun: force_write_all_quit, fun: force_write_all_quit,
completer: None, completer: None,
}, },

Loading…
Cancel
Save