Hello,

Anyone aware of any package/code snipped that could replicate the paste behavior of vs code? To elaborate what I mean by that. When I copy image in file manager and paste it in a markdown file in vscode it automatically converts it into relative path from the current file. Alternatively is there a way to auto complete in the `C-c C-i` mini buffer?

  • 7890yuiop@alien.topB
    link
    fedilink
    English
    arrow-up
    1
    ·
    1 year ago

    I guess you want to write a custom interprogram-paste-function which checks to see if the value is a valid filename and, if so, establishes it relative to default-directory in the current buffer.

    (Sounds like freakish behaviour to me, but maybe that's just me.)