pawelsalawa / sqlitestudio

A free, open source, multi-platform SQLite database manager.
https://sqlitestudio.pl
Other
4.67k stars 571 forks source link

Automatic refresh and grid focus (feature request) #5079

Closed marcpley closed 2 days ago

marcpley commented 3 weeks ago

Details

When inserting or update rows in grid view, triggers firing on commit could generate values for generated columns. But those generated values are not visibles as the user continue to imput data.

User need to click Commit button AND Refresh button AND refocus on the row he work on.

Those options would be great:

marcpley commented 5 days ago

I keep thinking about this enhancement...

"Keep focused cell on Refresh" don't need to be an option in config dialog (complexification of config). I think it can be the regular behavior.

"Automatic Refresh table data on Commit" would not be an option in config dialog because the user may want the automatic refresh or not, depending of the modifications he performs. There is 2 possibilities:

So I simplify my initial request: Just try to keep the focused cell on Refresh, all the time (but if it a config option I don't mind). And eventually change the order of the button, from general to detail: refresh commit rollback addrow deleterow Screenshot_20241117_073618 to have the commit and refresh buttons side by side. More logical order in my opinion.

pawelsalawa commented 5 days ago

Seems good.

I just have few notes to be aware of:

In such cases the re-focusing would not work.

marcpley commented 3 days ago

It is acceptable that the refocus don't work all the time. In most cases the user will understand why the row disappears. This enhancement could start basic and be more performant in the future.

pawelsalawa commented 2 days ago

@marcpley please fetch update from git and see how it works for you regarding cell focus.

marcpley commented 2 days ago

It's working for me too. Great :-) Triggers list is ok too.