mirror of https://github.com/helix-editor/helix
fix test and generate docs
parent
2fe15d8618
commit
c4fb8bfafa
|
@ -21,8 +21,9 @@
|
||||||
| `:line-ending` | Set the document's default line ending. Options: crlf, lf. |
|
| `:line-ending` | Set the document's default line ending. Options: crlf, lf. |
|
||||||
| `:earlier`, `:ear` | Jump back to an earlier point in edit history. Accepts a number of steps or a time span. |
|
| `:earlier`, `:ear` | Jump back to an earlier 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. |
|
| `: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` | 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!` | Write changes to disk and close the current view forcefully. Accepts an optional path (:wq! some/path.txt) |
|
||||||
|
| `:exit`, `:xit`, `:x`, `:x!` | Save the current view if named and modified (but not externally), then quit. |
|
||||||
| `:write-all`, `:wa` | Write changes from all buffers to disk. |
|
| `:write-all`, `:wa` | Write changes from all buffers to disk. |
|
||||||
| `:write-all!`, `:wa!` | Forcefully write changes from all buffers to disk creating necessary subdirectories. |
|
| `:write-all!`, `:wa!` | Forcefully write changes from all buffers to disk creating necessary subdirectories. |
|
||||||
| `: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 buffers to disk and close all views. |
|
||||||
|
|
|
@ -144,7 +144,7 @@ async fn test_overwrite_protection() -> anyhow::Result<()> {
|
||||||
file.as_file_mut().flush()?;
|
file.as_file_mut().flush()?;
|
||||||
file.as_file_mut().sync_all()?;
|
file.as_file_mut().sync_all()?;
|
||||||
|
|
||||||
test_key_sequence(&mut app, Some(":x<ret>"), None, false).await?;
|
test_key_sequence(&mut app, Some(":x<ret>"), None, true).await?;
|
||||||
|
|
||||||
reload_file(&mut file).unwrap();
|
reload_file(&mut file).unwrap();
|
||||||
let mut file_content = String::new();
|
let mut file_content = String::new();
|
||||||
|
|
Loading…
Reference in New Issue