-
I believe these two terms are interchangeable, but I'm not sure (that's part of the problem). In the documentation, the term buffer is mostly used, but document is sometimes used as well: Usage of the term document in the book
Within the code the term document is more often used, and buffer usually refers to a TUI text buffer. Also, looking at the code for fn buffer_close(
cx: &mut compositor::Context,
args: &[Cow<str>],
event: PromptEvent,
) -> anyhow::Result<()> {
if event != PromptEvent::Validate {
return Ok(());
}
let document_ids = buffer_gather_paths_impl(cx.editor, args);
buffer_close_by_ids_impl(cx.editor, &document_ids, false)
} So... do they mean the same thing, in which case we should probably do some renaming for consistency, or are they separate terms, in which case there should be some documentation explaining the difference. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
They're the same thing and in code I thought document made more sense. But for commands and user documentation everyone expects "buffer" |
Beta Was this translation helpful? Give feedback.
They're the same thing and in code I thought document made more sense. But for commands and user documentation everyone expects "buffer"