age-viewer icon indicating copy to clipboard operation
age-viewer copied to clipboard

Holding query in the text Area in case Query is not executed.

Open KamleshKumar427 opened this issue 2 years ago • 3 comments

Observation: The query should not be wiped out from the text Area when the query is not executed i.e. when there is an error. It is quite annoying to write or copy queries again and again in the text area while drafting the correct query. Possible solution: It can be stored in the Local Storage of the Browser and can be redrafted in the text area in case of error.

As in the following example: I will have to rewrite the query or copy it from the new tab rendered.

Screenshot from 2022-12-13 19-23-22

KamleshKumar427 avatar Dec 13 '22 14:12 KamleshKumar427

Hi @KamleshKumar427,

I believe there's command history functionality which you can get previous commands simply using ctrl + ↑/ctrl+ ↓ keyboard shortcut, but yes, I agree with you that the query should remain in the text area when it's not executed properly.

JinHyukM3 avatar Dec 15 '22 19:12 JinHyukM3

Hello @JinHyukM3, saw those commands. they are quite helpful. But one flow in it is that the user does not know about the existence of this feature.

Also, some good features are introduced in this PR, where the query can be copied back to the editor https://github.com/apache/age-viewer/pull/64

KamleshKumar427 avatar Dec 16 '22 08:12 KamleshKumar427

feature has now been implemented and waiting to be merged PR: https://github.com/apache/age-viewer/pull/84

marodins avatar Dec 19 '22 18:12 marodins