From 660e0e44b2b6329c1d0af788d624dd5765c2acc6 Mon Sep 17 00:00:00 2001 From: Omnikar Date: Tue, 12 Apr 2022 03:52:54 -0400 Subject: Add `:write!` to create nonexistent subdirectories (#1839) * Make `:write` create nonexistent subdirectories Prompting as to whether this should take place remains a TODO. * Move subdirectory creation to new `w!` command--- book/src/generated/typable-cmd.md | 1 + 1 file changed, 1 insertion(+) (limited to 'book/src/generated') diff --git a/book/src/generated/typable-cmd.md b/book/src/generated/typable-cmd.md index f9261a75..bb5da3bb 100644 --- a/book/src/generated/typable-cmd.md +++ b/book/src/generated/typable-cmd.md @@ -12,6 +12,7 @@ | `:buffer-next`, `:bn`, `:bnext` | Go to next buffer. | | `:buffer-previous`, `:bp`, `:bprev` | Go to previous buffer. | | `:write`, `:w` | Write changes to disk. Accepts an optional path (:write some/path.txt) | +| `:write!`, `:w!` | Write changes to disk forcefully (creating necessary subdirectories). Accepts an optional path (:write some/path.txt) | | `:new`, `:n` | Create a new scratch buffer. | | `:format`, `:fmt` | Format the file using the LSP formatter. | | `:indent-style` | Set the indentation style for editing. ('t' for tabs or 1-8 for number of spaces.) | -- cgit v1.2.3-70-g09d2