nvim.zip
Methods7
function M.browse(buf: integer, source: string) -> nil
Open a local archive as a read-only nvim.dir listing.
Parameters
bufintegerTarget archive buffer.
sourcestringExpanded path to the archive.
Returns
- nil
function M.read(buf: integer, name: string) -> nil
Read one archive entry into a read-only buffer.
Parameters
bufintegerTarget entry buffer.
namestringzip://buffer name.
Returns
- nil
function M.list(buf: integer, _: string, cb: fun(err: nil | string, entries: nvim.dir.Entry[] | nil) -> nil) -> nil
List the requested archive level and commit its prefix only after the backend succeeds.
function M.open(buf: integer, name: string, entry: nvim.dir.Entry) -> nil
function M.open_parent(buf: integer, name: string) -> nil
function M._extract() -> nil
Extract the entry under the cursor into the current directory. -j discards the archive path, so the destination is always a name in the current directory and cannot be redirected by a hostile entry.
function M.init(buf: integer) -> nil