Missing copy to clipboard functionality in version 3


Hi there,

I’ve been using mitmproxy version 2 until recently when I upgraded to version 3.

I was a bit disappointed all the hotkeys have changed, but I managed. With one exception though:

A feature I rely on is copying parts of a request/response to the clipboard, which was bound to ‘P’ in version 2. How do I do this in version 3?

I apologize if this is well documented and I’ve overlooked it, but I can’t seem to find anything.



Hi @knlr,

Thanks for the feedback. You can now press ctrl + l to invoke the cut command, and then for example specify cut.clip @focus request.method. I do feel your pain though - this is a bit of a PITA now and we should make it easier. First, one thing we’ll introduce are customisable keybindings (https://github.com/mitmproxy/mitmproxy/issues/2963#issuecomment-370601496). However, I think it would also make sense to have a special copy to clipboard command that allows for easy selection and copy. This is something we’ll tackle once we have decided on https://github.com/mitmproxy/mitmproxy/issues/3074. :slight_smile: