import { fn } from "https://deno.land/x/ddc_vim@v0.0.8/deps.ts";
const { pathshorten } = fn;
Shorten directory names in the path {expr} and return the
result. The tail, the file name, is kept as-is. The other
components in the path are reduced to single letters. Leading
'' and '.' characters are kept. Example:
:echo pathshorten('/.vim/autoload/myfile.vim')
~/.v/a/myfile.vim ~
It doesn't matter if the path exists or not.
Can also be used as a |method|:
GetDirectories()->pathshorten()
Parameters
denops: Denops