u/Goal-based76

▲ 1 r/golang

Integrating syntax highlighting into bubble tea textarea with chroma

hey guys, I've been working on a tui app using bubble tea and trying to add syntax highlighting to a textarea bubble. I've found the chroma lexer library which seems like it would do the job, but I'm not sure how to actually integrate it.

Has anyone done this before?

reddit.com
u/Goal-based76 — 13 days ago

Hey guys!

I have released the first version of pgxcli. a PostgreSQL cli inspired by pgcli. Since pgx is the main underlying PostgreSQL driver and it’s similar to pgcli, I named it pgxcli, ta daaa !.

After months of developing pgxcli and its utility library pgxspecial (for meta commands similar to pgspecial in pgcli), and a week of dealing CGO overhead during release, Today i have replaced CGO calls completely with a simpler approach.

As for why I built pgxcli, I really love building CLI applications, along with performance improvements, streaming table output (not implemented yet) and more.

Here's a detailed comparison with pgcli: [comparison-with-pgcli](https://pgxcli.vercel.app/docs/guides/comparison-with-pgcli)

One thing before opening links, In the terminal, it may look like a shark, but it is an orca.

Links: [repo](https://github.com/Balaji01-4D/pgxcli) | [docs](https://pgxcli.vercel.app)

I would really appreciate your feedback and guidance to help improve the project further. If you find it useful, consider giving it a star.

I also have some doubts related to streaming (less pager + table writer streaming) that I’d like to clarify, so I would appreciate any help.

Note: I have not installed or tested the binaries manually on either Windows or macOS.

Thank you !

u/Goal-based76 — 21 days ago
▲ 110 r/CLI

Hey guys!

I have released the first version of pgxcli. a PostgreSQL cli inspired by pgcli. Since pgx is the main underlying PostgreSQL driver and it’s similar to pgcli, I named it pgxcli, ta daaa !.

After months of developing pgxcli and its utility library pgxspecial (for meta commands similar to pgspecial in pgcli), and a week of dealing CGO overhead during release, Today i have replaced CGO calls completely with a simpler approach.

As for why I built pgxcli, I really love building CLI applications, along with performance improvements, streaming table output (not implemented yet) and more.

Here's a detailed comparison with pgcli: comparison-with-pgcli

One thing before opening links, In the terminal, it may look like a shark, but it is an orca.

Links: repo | docs

I would really appreciate your feedback and guidance to help improve the project further. If you find it useful, consider giving it a star.

I also have some doubts related to streaming (less pager + table writer streaming) that I’d like to clarify, so I would appreciate any help.

Note: I have not installed or tested the binaries manually on either Windows or macOS.

Thank you !

u/Goal-based76 — 21 days ago
▲ 19 r/golang

Hey guys!

I have released the first version of pgxcli. a PostgreSQL cli inspired by pgcli. Since pgx is the main underlying PostgreSQL driver and it’s similar to pgcli, I named it pgxcli, ta daaa !.

After months of developing pgxcli and its utility library pgxspecial (for meta commands similar to pgspecial in pgcli), and a week of dealing CGO overhead during release, Today i have replaced CGO calls completely with a simpler approach.

As for why I built pgxcli, I really love building CLI applications, along with performance improvements, streaming table output (not implemented yet) and more.

Here's a detailed comparison with pgcli: comparison-with-pgcli

One thing before opening links, In the terminal, it may look like a shark, but it is an orca.

Links: repo | docs

I would really appreciate your feedback and guidance to help improve the project further. If you find it useful, consider giving it a star.

I also have some doubts related to streaming (less pager + table writer streaming) that I’d like to clarify, so I would appreciate any help.

Note: I have not installed or tested the binaries manually on either Windows or macOS.

Thank you !

reddit.com
u/Goal-based76 — 21 days ago