mmattozzi / cocoa-rest-client

A free, native Apple macOS app for testing HTTP/REST endpoints
http://mmattozzi.github.io/cocoa-rest-client/
Other
2.35k stars 206 forks source link

Submit menu item #116

Closed abhibeckert closed 7 years ago

abhibeckert commented 7 years ago

I'd like to add a new menu item for the runSubmit: action, and and set it's keyboard shortcut to Command-R.

I think the existing reloadLastRequest: menu item should be renamed to "Revert to Last Request" and have no keyboard shortcut.

Thoughts before I send through a pull request?

mmattozzi commented 7 years ago

Hmm, well I used Command-R to emulate the reload behavior that most people are familiar with using in their browser... although I guess there's no quick key combination to load a newly formed request if you don't happen to be editing the URL bar (and press return). Using the UI experience from Chrome, even if I change the URL in the location bar then hit Command-R, Chrome reloads the webpage that I am actually on, with whatever request parameters existed when I loaded the page. So this seems to match what cocoa-rest-client is doing. I'm not against adding some other shortcut for executing the current request which would be independent of where your focus is in the app.

mmattozzi commented 7 years ago

Submit menu item mapped to ControlS in 1.4.1