mirror of
https://github.com/helix-editor/helix.git
synced 2024-11-25 10:56:19 +04:00
views -> buffers in write-all (#2788)
This commit is contained in:
parent
4d604d3b50
commit
debd2405d9
@ -21,9 +21,9 @@
|
|||||||
| `:later`, `:lat` | Jump to a later point in edit history. Accepts a number of steps or a time span. |
|
| `:later`, `:lat` | Jump to a later point in edit history. Accepts a number of steps or a time span. |
|
||||||
| `:write-quit`, `:wq`, `:x` | Write changes to disk and close the current view. Accepts an optional path (:wq some/path.txt) |
|
| `:write-quit`, `:wq`, `:x` | Write changes to disk and close the current view. Accepts an optional path (:wq some/path.txt) |
|
||||||
| `:write-quit!`, `:wq!`, `:x!` | Write changes to disk and close the current view forcefully. Accepts an optional path (:wq! some/path.txt) |
|
| `:write-quit!`, `:wq!`, `:x!` | Write changes to disk and close the current view forcefully. Accepts an optional path (:wq! some/path.txt) |
|
||||||
| `:write-all`, `:wa` | Write changes from all views to disk. |
|
| `:write-all`, `:wa` | Write changes from all buffers to disk. |
|
||||||
| `:write-quit-all`, `:wqa`, `:xa` | Write changes from all views to disk and close all views. |
|
| `:write-quit-all`, `:wqa`, `:xa` | Write changes from all buffers to disk and close all views. |
|
||||||
| `:write-quit-all!`, `:wqa!`, `:xa!` | Write changes from all views to disk and close all views forcefully (ignoring unsaved changes). |
|
| `:write-quit-all!`, `:wqa!`, `:xa!` | Write changes from all buffers to disk and close all views forcefully (ignoring unsaved changes). |
|
||||||
| `:quit-all`, `:qa` | Close all views. |
|
| `:quit-all`, `:qa` | Close all views. |
|
||||||
| `:quit-all!`, `:qa!` | Close all views forcefully (ignoring unsaved changes). |
|
| `:quit-all!`, `:qa!` | Close all views forcefully (ignoring unsaved changes). |
|
||||||
| `:cquit`, `:cq` | Quit with exit code (default 1). Accepts an optional integer exit code (:cq 2). |
|
| `:cquit`, `:cq` | Quit with exit code (default 1). Accepts an optional integer exit code (:cq 2). |
|
||||||
|
@ -1393,21 +1393,21 @@ fn run_shell_command(
|
|||||||
TypableCommand {
|
TypableCommand {
|
||||||
name: "write-all",
|
name: "write-all",
|
||||||
aliases: &["wa"],
|
aliases: &["wa"],
|
||||||
doc: "Write changes from all views to disk.",
|
doc: "Write changes from all buffers 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: "Write changes from all views to disk and close all views.",
|
doc: "Write changes from all buffers 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: "Write changes from all views to disk and close all views forcefully (ignoring unsaved changes).",
|
doc: "Write changes from all buffers 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…
Reference in New Issue
Block a user