floss.social is one of the many independent Mastodon servers you can use to participate in the fediverse.
For people who care about, support, and build Free, Libre, and Open Source Software (FLOSS).

Administered by:

Server stats:

686
active users

Sonny

One more demo of GTK autocomplete in Workbench

I'm very happy so far with the experience, checkout the video.

I love that the same feature can be used to discover widgets, properties and write UI faster.

There are still many improvements to be made, but I think it's close to a first release.

You can try it yourself in Workbench nightly blog.sonny.re/workbench-news

Feedback very welcome

Credits to @flyingpimonster for making this possible!

Hopefully new release just in time for "Learn GTK" workshop at Berlin GUADEC

@sonny @flyingpimonster

Does it autocomplete on Enter? Please, no autocomplete on Enter 😁

@unspeaker

Depends what you mean by “on Enter”. If you mean on newline then no.

Give it a try :)

@sonny

I mean when I'm trying to type a newline while the autocomplete popup is open. Does it do that?

@sonny @flyingpimonster this tool looks great! How would one then use the resulting blueprint as the frontend for an actual app?

@buonhobo@fosstodon.org @sonny@floss.social @flyingpimonster@fosstodon.org
(Assuming you already have an existing gtk project)

Depending on your distro
blueprint-compiler might be available to install, otherwise you can build it from source.

Then you run
blueprint-compiler port in the project folder and the tool will give you instructions. This will convert existing UI files to blueprint. Then you can copy paste your work from workbench to the new files.

Hope this helps :)

For more info:
https://jwestman.pages.gitlab.gnome.org/blueprint-compiler/setup.html

jwestman.pages.gitlab.gnome.orgSetup - Blueprint documentation

@loki @sonny @flyingpimonster sorry. I had missed this answer. Thank you! I will look into this!

@sonny @flyingpimonster Does it use LSP server, or some internal thing?

@mateuslnascimento @flyingpimonster it also works with CSS and we're looking at making it work with JS/TS