open

Function open 

Source
pub fn open<'a>(
    entries: impl IntoIterator<Item = (&'a str, i64)> + Debug,
) -> Result<()>
Expand description

Opens the quickfix window with the provided file and line number entries.

Populates the quickfix list with the given entries and opens the quickfix window for user navigation. Each entry consists of a filename and line number. If no entries are provided, returns early without opening the quickfix window.

§Errors

  • Fails if setqflist Neovim function call encounters an error.
  • Fails if copen command execution encounters an error.

§Rationale

Uses Nvim’s built-in quickfix functionality to avoid custom UI implementations.