Repository navigation
v0.2.6
rudbgen 0.2.6 — template sets exported and imported as one file, an explorer that opens on the connected database and schema, a usability pass over dialogs, tabs and connections, and a window that asks before closing over unsaved work.
- Template sets export and import as one file. The Generate tab's new ⋯ menu beside the set buttons has Export set…, which writes a saved set and the contents of its templates — and, optionally, the connection's custom variables — into one
*.rudbgen-set.jsonthat means the same on another computer, and Import set…, which reads such a file back. An import writes the templates into a new folder undertemplates/, named after the set and numbered when the name is taken, so no file on disk is written over. The set is saved under the name the prompt shows (a name a set already has overwrites that set, as Save as set… does), replaces the connection's list with Undo, and adds only the custom variables the connection does not have yet. - The explorer opens on the connected database and schema. When a connection opens, the tree is expanded onto the database and schema it landed in — the ones its URL names, or the driver's default — with that schema selected and its tables read. Ticked tables are kept per connection and ticked again on the next connect, and a table that has gone since is unticked and named. Comments shrink before table names do, and rows carry a tooltip.
- Questions take the keyboard, and short notices are toasts. Every question the window asks takes the focus when it goes up and gives it back to the template editor afterwards; Enter is its default answer (Overwrite, Save, Close, or the safe one where the default is destructive), and Escape on the overwrite question now answers Cancel. While a dialog is up the window's shortcuts stand down; inside, Ctrl+S saves the connection, rules and settings dialogs, Ctrl+N adds a profile in the connection dialog, Enter in a connection field or a double click on a profile connects, and Enter in the Maven field downloads. A template added to the generation list, a copied path, a set exported or imported, a password the keychain would not keep and a connection list that could not be written are reported in a toast above the status bar, and an error stays until closed.
- Generate moves to F5, and the tab strip and menus work from the keyboard. Generate is F5 (and Ctrl+Shift+G off macOS) instead of Ctrl+G, F8 and Shift+F8 walk a template's problems, and Alt+/ opens completion beside Ctrl+Space. Ctrl+PageDown/PageUp, Ctrl+Tab, Ctrl+1–9 and Ctrl+W work the tab strip, F6 puts the keyboard on it, a middle click closes a tab, and a tab's menu has Close tab, Close other tabs, Close tabs to the right and, on a template, Copy path and Add to generation list. On Linux and Windows F10 opens the ☰ menu, and Shift+F10 or the Menu key opens the right-click menu of what has the keyboard — the explorer, the template editor at the caret, a welcome row or the tab strip — on its first row.
- New connection opens a blank profile, and a failed connect offers a retry. New connection opens a blank profile and Manage connections… the saved ones. The welcome list shows the dialog's rows — folders, color tags, the driver's name — as Tab stops with a menu to Connect, Edit…, Duplicate or Delete…, marks the last connection, and shows a spinner and Cancel while one opens; a failed attempt says what the failure suggests, with Edit connection… and Retry (and Trust this key for a new bastion host key), and a refused password is asked for again. With Remember password off a profile keeps nothing in the keychain and asks on connect, a keychain that refuses the password no longer blocks Connect, and picking the connection already open does nothing.
- The Generate tab gains a per-run overwrite choice and Undo. Existing files picks Ask, Overwrite or Skip for the next run only, starting from the default in Settings, and replacing the list with a set or removing a row can be undone. The list has column headings, an empty one offers each set as a button and a Choose a set… placeholder, the abbreviation switch is marked (all connections), and the sample connection comes with the first built-in set and an output folder. The dry run says Rendering… with Cancel, lists paths relative to the output folder with the full path on hover, and has a Generate button; the summary lists every warning, and the run log follows the newest line.
- Closing asks before unsaved work is lost. Closing the window, quitting and Update and restart (the update button's new name) ask first when a template tab has unsaved edits, a run is still writing files or a dialog has unsaved changes, and offer Save all for the templates; with nothing to lose, nothing is asked. The connection, driver, abbreviation and settings dialogs ask before Escape, Cancel or a click beside them drops a changed draft, and the jdbgen import wizard is not closed mid-import. A run over a ticked template with unsaved edits asks Save and run, Run without saving or Cancel.
- Interface size scales the whole window. The setting, 14 by default, scales every label, list, tab, menu, dialog and bar, not only the text fields, and with them the icons, the explorer's ticks, the glyph buttons, the status dot, the spinners and the columns and dialog widths built around text. Form label columns fit the widest translated label, the welcome buttons and an empty list's set buttons truncate, long checkbox and switch labels and dialog titles wrap, and a dialog no longer grows past the window. At the default size nothing moves.
- Cancel stops a run while its tables load, and Refresh reaches cached tables. Cancel during the phase that reads the ticked tables did nothing useful: a generate still wrote its files, and a dry run or preview left a busy dialog nothing could close. Cancel now closes the dialog with nothing written or previewed, and a run shortcut pressed during a run is ignored instead of starting a second one. The explorer's Refresh now drops every cached table, so a column added after the first read reaches the next run, and the inspector reads the table on screen again while the template tabs re-render.
- Shared libraries are updated to rugpui 0.1.14. UI dependencies and framework patches are pinned to its published release commit.
Requirements
- Linux: glibc 2.35 or newer: Ubuntu 22.04, Debian 12 and later, or a distribution built on them, MX Linux 23 among them.
What's Changed
Full Changelog: v0.2.5...v0.2.6