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

x/ddu_vim/deps.ts>fn.fnamemodify

Dark deno-powered UI framework for neovim/Vim8
Go to Latest
function fn.fnamemodify
import { fn } from "https://deno.land/x/ddu_vim@v1.13.0/deps.ts";
const { fnamemodify } = fn;

Modify file name {fname} according to {mods}. {mods} is a string of characters like it is used for file names on the command line. See |filename-modifiers|. Example: :echo fnamemodify("main.c", ":p:h") results in: /home/mool/vim/vim/src If {mods} is empty then {fname} is returned. Note: Environment variables don't work in {fname}, use |expand()| first then. Can also be used as a |method|: GetName()->fnamemodify(':p:h')

Parameters

denops: Denops
fname: unknown
mods: unknown

Returns

Promise<unknown>