From 32d0ef45b489a27a45f62425e945c48bd0b4e901 Mon Sep 17 00:00:00 2001 From: Omnikar Date: Wed, 29 Dec 2021 22:59:17 -0500 Subject: [PATCH] Add documentation * `:open` * `:buffer-close` * `:buffer-close!` * `:write` * `:new` --- runtime/help/typable-commands/buffer-close!.txt | 6 ++++++ runtime/help/typable-commands/buffer-close.txt | 6 ++++++ runtime/help/typable-commands/new.txt | 6 ++++++ runtime/help/typable-commands/open.txt | 8 ++++++++ runtime/help/typable-commands/write.txt | 9 +++++++++ 5 files changed, 35 insertions(+) create mode 100644 runtime/help/typable-commands/buffer-close!.txt create mode 100644 runtime/help/typable-commands/buffer-close.txt create mode 100644 runtime/help/typable-commands/new.txt create mode 100644 runtime/help/typable-commands/open.txt create mode 100644 runtime/help/typable-commands/write.txt diff --git a/runtime/help/typable-commands/buffer-close!.txt b/runtime/help/typable-commands/buffer-close!.txt new file mode 100644 index 000000000..42be7a52e --- /dev/null +++ b/runtime/help/typable-commands/buffer-close!.txt @@ -0,0 +1,6 @@ +`:buffer-close!` + +Aliases: `:bc!`, `:bclose!` + +Closes the current buffer, discarding any +unsaved changes to the buffer. diff --git a/runtime/help/typable-commands/buffer-close.txt b/runtime/help/typable-commands/buffer-close.txt new file mode 100644 index 000000000..6dcb31520 --- /dev/null +++ b/runtime/help/typable-commands/buffer-close.txt @@ -0,0 +1,6 @@ +`:buffer-close` + +Aliases: `:bc`, `:bclose` + +Closes the current buffer, failing if the buffer +has unsaved changes. diff --git a/runtime/help/typable-commands/new.txt b/runtime/help/typable-commands/new.txt new file mode 100644 index 000000000..e077c11ae --- /dev/null +++ b/runtime/help/typable-commands/new.txt @@ -0,0 +1,6 @@ +`:new` + +Aliases: `:n` + +Creates and switches to a new scratch buffer. This +buffer will not be associated with any file path. diff --git a/runtime/help/typable-commands/open.txt b/runtime/help/typable-commands/open.txt new file mode 100644 index 000000000..d92d0f5d0 --- /dev/null +++ b/runtime/help/typable-commands/open.txt @@ -0,0 +1,8 @@ +`:open ` + +Aliases: `:o` + +If exists, opens the file at . +If does not exist, creates a new buffer +and associates it with . Note that this +does not automatically save the created buffer. diff --git a/runtime/help/typable-commands/write.txt b/runtime/help/typable-commands/write.txt new file mode 100644 index 000000000..8035714a1 --- /dev/null +++ b/runtime/help/typable-commands/write.txt @@ -0,0 +1,9 @@ +`:write [path]` + +Aliases: `:w` + +Writes (saves) the buffer to disk. +If [path] is supplied, that path is written to. +If the buffer is a scratch buffer, meaning it +is not already bound to a file path, [path] +becomes required for this command to succeed.