d0c-s4vage / lookatme

An interactive, terminal-based markdown presenter
https://lookatme.readthedocs.io/en/latest/
MIT License
2.1k stars 62 forks source link

Send code to Linux clipboard on slide show. #146

Open JoeAnonimist opened 2 years ago

JoeAnonimist commented 2 years ago

Describe the Feature Request

Send code to Linux clipboard when a slide with code is shown.

Additional notes

It would make for a nice workflow I think. Open two panes in Terminator, one with a presentation, the other one with a repl.

I actually tried to make a plugin overriding the code rendering function: send the contents to clipboard using pyperclip and raise the exception to resume rendering. But it doesn't seem to work, if I have say 5 slides with code only the first and the last get copied.