I have added keys to links list and changed padding in my HN client https://github.com/fricze/hnhnhn/blob/main/src/starter.clj. There’s some bug with links not always being in sync, will probably work on it at the end of the week
also I’ve started building CSV viewer based on grid from Humble examples https://github.com/fricze/hnhnhn/blob/main/src/grid.clj
I learned that
1. you can use FileDialog from java.awt to open native file picker (mac only tested) and it just works (which is great), but you need to put it on different thread, cause otherwise it seems to be blocking whole UI and freezing the application. Currently (future …) does the job. Filtering files by extension also just works with FilenameFilter from
2. ui/focus-controller is required for text-fields not to go crazy with their focuses. Also managed to mess up focus-controller a bit. Focusing with mouse click works properly, but after using this text fields for a while, switching between them via Tab key stops working. Interesting issue to investigate
Yeah, focus controller probably needs a redo
Interesting about FileDialog, might be a good temporary solution until we integrate native dialogs
yeah I was pleasantly surprised with FileDialog once I realized that putting in on different thread is enough to make it work
about focus controller do you mean some adjusting, or more like total redo?
Probably the whole idea needs to be re-thought. I didn’t spend much time thinking about it, it was a quick and dirty solution