mirror of https://github.com/helix-editor/helix
Add documentation
* `:write-quit` * `:write-quit!` * `:write-all` * `:write-quit-all` * `:write-quit-all!` * `:quit-all` * `:quit-all!`pull/997/head
parent
efbd4e944f
commit
c108d565a1
@ -0,0 +1,6 @@
|
|||||||
|
`:quit-all!`
|
||||||
|
|
||||||
|
Aliases: `:qa!`
|
||||||
|
|
||||||
|
Closes all views, exiting the editor. This will
|
||||||
|
discard any unsaved changes.
|
@ -0,0 +1,6 @@
|
|||||||
|
`:quit-all`
|
||||||
|
|
||||||
|
Aliases: `:qa`
|
||||||
|
|
||||||
|
Closes all views, exiting the editor. This will
|
||||||
|
fail if there are any unsaved changes.
|
@ -0,0 +1,7 @@
|
|||||||
|
`:write-all`
|
||||||
|
|
||||||
|
Aliases: `:wa`
|
||||||
|
|
||||||
|
Writes (saves) all unsaved buffers to disk.
|
||||||
|
Scratch buffers (without associated paths)
|
||||||
|
will not be saved.
|
@ -0,0 +1,9 @@
|
|||||||
|
`:write-quit! [path]`
|
||||||
|
|
||||||
|
Aliases: `:wq!`, `:x!`
|
||||||
|
|
||||||
|
Writes (saves) the buffer to disk, then
|
||||||
|
closes the view, discarding unsaved changes
|
||||||
|
if this would exit the editor.
|
||||||
|
Identical to `:write [path]` followed by `:quit!`.
|
||||||
|
See those commands for more info.
|
@ -0,0 +1,10 @@
|
|||||||
|
`:write-quit-all!`
|
||||||
|
|
||||||
|
Aliases: `:wqa!`, `:xa!`
|
||||||
|
|
||||||
|
Writes (saves) all unsaved buffers to disk, then
|
||||||
|
closes all views, exiting the editor.
|
||||||
|
Scratch buffers (without associated paths) will
|
||||||
|
not be saved, and will be discarded when the
|
||||||
|
editor exits.
|
||||||
|
Identical to `:write-all` followed by `:quit-all!`.
|
@ -0,0 +1,10 @@
|
|||||||
|
`:write-quit-all`
|
||||||
|
|
||||||
|
Aliases: `:wqa`, `:xa`
|
||||||
|
|
||||||
|
Writes (saves) all unsaved buffers to disk, then
|
||||||
|
closes all views, exiting the editor.
|
||||||
|
Scratch buffers (without associated paths) will
|
||||||
|
not be saved, and exiting the editor will fail
|
||||||
|
if there are any such buffers open.
|
||||||
|
Identical to `:write-all` followed by `:quit-all`.
|
@ -0,0 +1,8 @@
|
|||||||
|
`:write-quit [path]`
|
||||||
|
|
||||||
|
Aliases: `:wq`, `:x`
|
||||||
|
|
||||||
|
Writes (saves) the buffer to disk, then
|
||||||
|
closes the view.
|
||||||
|
Identical to `:write [path]` followed by `:quit`.
|
||||||
|
See those commands for more info.
|
Loading…
Reference in New Issue