pgadmin4 icon indicating copy to clipboard operation
pgadmin4 copied to clipboard

Reloading file changed on disk! (RM #3299)

Open dpage opened this issue 7 years ago • 2 comments

Issue migrated from Redmine: https://redmine.postgresql.org/issues/3299 Originally created by hassan abdulrehman at 2018-04-18 18:04:03 UTC.

I'm very very comfortable writing sql in an external tool (sublime). I save files with .sql, and now can open them in the new web based pgadmin 4.

Would be amazing if there is a way to reload the file from disk (getting the updated query) and running it. I don't supposed that's terribly difficult to achieve either (at least on locally deployed systems)

Currently (and historically on pgadmin3) i copy paste the query and run.

PS: excellent work btw ... very neat implementation. Few kinks here and there, but i'm sure overtime, the web-based approach will pay off to a very stable system.

dpage avatar Apr 18 '18 18:04 dpage

Comment migrated from Redmine: https://redmine.postgresql.org/issues/3299#note-1 Originally created by Akshay Joshi at 2018-04-27 10:20:40 UTC.

Add parameter in Preferences to check for file changes, every N seconds (default 0 for no check) and if the change is detected, prompt the user to reload the file.

Redmine ticket header update:

Name Old Value New Value
Sprint changed Ready

dpage avatar Apr 27 '18 10:04 dpage

Comment migrated from Redmine: https://redmine.postgresql.org/issues/3299#note-2 Originally created by hassan abdulrehman at 2018-04-27 11:18:50 UTC.

Akshay Joshi wrote:

Add parameter in Preferences to check for file changes, every N seconds (default 0 for no check) and if the change is detected, prompt the user to reload the file.

With an additional checkbox to 'Don't ask again for this file' option, which if checked, will simply update text every time a change is detected without asking the user for it.

dpage avatar Apr 27 '18 11:04 dpage