When I edit an existing Bookmark, the metadata (group and name) is pasted into the Editor:
-- @block Bookmarked query
-- @group Some Group
-- @name My Query
delete from my_table;
Prevent duplication
When I select the block via the UI button, it also selects those metadata comments.
When bookmarking that selection into a new bookmark, the previous comments will be saved too, cluttering the new bookmark and creating a separate block.
-- @block Bookmarked query
-- @group Some Group
-- @name NEW Query
-- @block Bookmarked query
-- @group Some Group
-- @name My Query
delete from my_table;
So the first improvement would be to not copy those previous comments to the new bookmark:
-- @block Bookmarked query
-- @group Some Group
-- @name NEW Query
delete from my_table;
Prefill bookmarking popups
Secondly, it would be super nice to have the popups for group and name autofilled with the values of the comments.
The popup value should be selected tough, so you can easlily override the prefilled values:
If no metadata comments are includet in the selection for bookmarking, then the current behaviour may be kept:
Blank query name and prefilled group "Ungrouped".
When I edit an existing Bookmark, the metadata (group and name) is pasted into the Editor:
Prevent duplication
When I select the block via the UI button, it also selects those metadata comments. When bookmarking that selection into a new bookmark, the previous comments will be saved too, cluttering the new bookmark and creating a separate block.
So the first improvement would be to not copy those previous comments to the new bookmark:
Prefill bookmarking popups
Secondly, it would be super nice to have the popups for group and name autofilled with the values of the comments. The popup value should be selected tough, so you can easlily override the prefilled values:![grafik](https://user-images.githubusercontent.com/11715448/233835218-69636884-c016-4dfe-8f7d-4b344bae3819.png)
If no metadata comments are includet in the selection for bookmarking, then the current behaviour may be kept: Blank query name and prefilled group "Ungrouped".