简体   繁体   中英

Copy current file to clipboard

How do I copy the current file to clipboard? I am not looking to copy the file contents itself. I want to copy the file and attach it in a different application.

An example of my use case

  1. Open file using FzF
  2. Make edits and save
  3. Shortcut to copy the actual file to clipboard.
  4. Attach it to Outlook or in Teams.

How do I achieve #3?

Thanks!

I achieved this in gVim using:

:noremap cf:silent !powershell Set-Clipboard -Path %

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM