Skip to content

Configurable ligature support#8626

Merged
akshay-joshi merged 1 commit intopgadmin-org:masterfrom
MikeChristensen:LigatureSupport
Apr 3, 2025
Merged

Configurable ligature support#8626
akshay-joshi merged 1 commit intopgadmin-org:masterfrom
MikeChristensen:LigatureSupport

Conversation

@MikeChristensen
Copy link
Copy Markdown
Contributor

Now that fonts are configurable in the SQL editor, why not ignite one of the most controversial debates in the programming community since tabs vs. spaces. That's right, it's coding ligatures in the code editor.

I'll admit I'm a big fan of ligatures and enable them in any IDE that supports them (terminal emulators like Warp and Ghostty, IDEs like VSCode and Rider, and text editors such as Sublime - in my world they all have ligatures). However, I'll admit they might be a bit annoying in SQL. Then it occurred to me, pgAdmin is not just about SQL. It's also used for languages supported by Postgres functions written in pgSQL, PERL, Python as well as all the crazy extensions people have created such as Javascript (V8). There's even pl/Rust because of course there is.

This PR enables ligature support in the SQL editor, but the feature is disabled by default so ligature enthusiasts such as myself will have to go looking for it.

No biggie if this doesn't make it into 9.2, and I'm open to any comments or feedback.

Enabled Ligatures

image

image

Disabled Ligatures

image

image

  • Note: Yes, the Python function makes no sense I was just adding in some ligatures.

Copy link
Copy Markdown
Contributor

@adityatoshniwal adityatoshniwal left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice work!

@adityatoshniwal
Copy link
Copy Markdown
Contributor

I've created #8629 for tracking this.

@akshay-joshi akshay-joshi merged commit 10b15b3 into pgadmin-org:master Apr 3, 2025
32 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants