From 95919e9a00c164f8540b067107dbddf3d0ec1f69 Mon Sep 17 00:00:00 2001 From: Diego Alvarez Date: Thu, 4 Feb 2016 19:33:58 -0800 Subject: [PATCH] Added keybinding for copy curl command --- layers/restclient/README.org | 1 + layers/restclient/packages.el | 1 + 2 files changed, 2 insertions(+) diff --git a/layers/restclient/README.org b/layers/restclient/README.org index dbada8c7a..9ba365308 100644 --- a/layers/restclient/README.org +++ b/layers/restclient/README.org @@ -26,4 +26,5 @@ file. | ~SPC m S~ | Send and switch window (pretty-print response if possible) | | ~SPC m r~ | Send and stay in window (do not attempt to pretty-print) | | ~SPC m R~ | Send and switch window (do not attempt to pretty-print) | +| ~SPC m y~ | Copy query under the cursor as a curl command | diff --git a/layers/restclient/packages.el b/layers/restclient/packages.el index ee53a08d5..f2b7aa14d 100644 --- a/layers/restclient/packages.el +++ b/layers/restclient/packages.el @@ -20,6 +20,7 @@ "S" 'restclient-http-send-current "r" 'restclient-http-send-current-raw-stay-in-window "R" 'restclient-http-send-current-raw + "y" 'restclient-copy-curl-command )) ) )