Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Run query for selected text #78

Closed
brian-vogogo opened this issue Jan 26, 2015 · 3 comments
Closed

Run query for selected text #78

brian-vogogo opened this issue Jan 26, 2015 · 3 comments

Comments

@brian-vogogo
Copy link

When text is selected, only run the selected text as a query. Otherwise use the current behaviour, and run all entered text as a query.

I use the query tab as a scratchpad - adding queries or editing old ones as I navigate a problem. Currently I will comment out all other sql statments, run the query then comment it out and uncomment a different sql statement.

@sosedoff
Copy link
Owner

I dont think this is a big deal. If you're doing lots of prototyping this is the cost you've gotta pay.
Imagine doing prototyping using a plain-old psql, you cant just "select" a query and run it. So unless you have any code to support that i wont be working on this.

@brian-vogogo
Copy link
Author

Yeah I agree. Meant this is a minor feature suggestion. If you are open to a pull request I can get it going. If not, no worries - thanks for a great tool.

@sosedoff
Copy link
Owner

Im alway open for a good PR!

brianlow added a commit to brianlow/pgweb that referenced this issue May 18, 2015
In the Query tab, only run the selected text. If nothing selected, run all text in the editor.
brianlow added a commit to brianlow/pgweb that referenced this issue May 18, 2015
In the Query tab, only run the selected text. If nothing selected, run all text in the editor.
sosedoff added a commit that referenced this issue May 18, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants