yanky.nvim icon indicating copy to clipboard operation
yanky.nvim copied to clipboard

Yank with metadata?

Open dev-zero opened this issue 10 months ago • 3 comments

I am currently in the need of copy&pasting things together from multiple files and would require for each paste the original file name and repository (something which in my setup would be available from LazyVim.lualine.root_dir() and LazyVim.lualine.pretty_path()).

How/where could yanky.nvim be extended to permit storing additional metadata?

dev-zero avatar Apr 22 '24 14:04 dev-zero

The metadata which could be useful:

  • filetype
  • filesystem path
  • line number
  • git info:
    • git dir
    • branch
    • sha

dev-zero avatar Apr 23 '24 11:04 dev-zero

Other plugins (such as Neorg) could then use this information on put to add respective metadata or generate proper codeblocks.

dev-zero avatar Apr 23 '24 11:04 dev-zero

Interesting I'll try to do something

gbprod avatar May 03 '24 07:05 gbprod