Skip to content

AsafMah/omp-copy-last

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 

Repository files navigation

omp-copy-last

Oh My Pi extension that adds slash commands for getting recent assistant replies out of the terminal Markdown renderer and into a real Markdown viewer/editor.

Commands

  • /c copies the latest assistant Markdown reply to the clipboard.
  • /c 2 copies the previous assistant reply.
  • /c 1..3 copies a newest-first range, rendered chronologically and separated with Markdown headings.
  • /o opens the latest assistant Markdown reply as a temporary .md file in the system default app.
  • /o 2 and /o 1..3 work the same way for earlier replies/ranges.

Indexes are newest-first: 1 is the latest assistant reply, 2 is the one before it, and so on.

Install

From GitHub:

omp plugin install github:AsafMah/omp-copy-last

For local development:

omp plugin link /path/to/omp-copy-last

Restart OMP after installing or linking so the extension runner loads the package.

Notes

  • Windows clipboard support uses PowerShell Set-Clipboard with UTF-8 stdin so Unicode survives.
  • If PowerShell clipboard copy fails, the extension falls back to clip.exe.
  • Opening uses the OS default file opener: rundll32 url.dll,FileProtocolHandler on Windows, open on macOS, and xdg-open on Linux.

About

Oh My Pi extension for copying or opening recent assistant Markdown replies.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors