Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/ddu_vim/deps.ts>fn.swapname

Dark deno-powered UI framework for neovim/Vim
Go to Latest
function fn.swapname
import { fn } from "https://deno.land/x/ddu_vim@v4.0.0/deps.ts";
const { swapname } = fn;

The result is the swap file path of the buffer {expr}. For the use of {buf}, see bufname() above. If buffer {buf} is the current buffer, the result is equal to :swapname (unless there is no swap file). If buffer {buf} has no swap file, returns an empty string.

Can also be used as a method:

GetBufname()->swapname()

Returns

Promise<string>