Readit News logoReadit News
gpanders commented on Parinfer: Simpler Lisp Editing   shaunlebron.github.io/par... · Posted by u/harperlee
gpanders · a year ago
Chris Oakman ported the parinfer algorithm to Lua [1]. I used this to write a parinfer plugin for Neovim [2]. I use Fennel (a Lisp that compiles to Lua) for all of my Neovim config and so use parinfer everyday. It works exceptionally well (there are occasional hiccups, but no showstoppers).

Neither my plugin nor Chris' script have been updated in 2+ years. That's because it just keeps working. I owe a lot to Shaun and Chris for their work (my plugin is just a little glue code for interacting with the editor, they did all of the hard work).

[1]: https://github.com/oakmac/parinfer-lua

[2]: https://github.com/gpanders/nvim-parinfer/

gpanders commented on Ghostty 1.0   ghostty.org/... · Posted by u/matrixhelix
SG- · a year ago
gpanders · a year ago
Note the AUR package was removed because it's since been packaged in the official Arch repos.

There is a ghostty-git AUR repo for tracking the main branch: https://aur.archlinux.org/packages/ghostty-git

gpanders commented on Ghostty 1.0   ghostty.org/... · Posted by u/matrixhelix
Zetaphor · a year ago
I've built from source on Linux, I don't use MacOS.
gpanders · a year ago
It's a macOS-only feature, for now.
gpanders commented on Ghostty 1.0   ghostty.org/... · Posted by u/matrixhelix
nathansherburn · a year ago
I'm still using the built in MacOS terminal. What am I missing? I mostly do webdev - maybe terminal features are more important for other types of programming?
gpanders · a year ago
Apple Terminal has a lot of problems. As others have mentioned, it lacks support for 24 bit color, enforces minimum contrast ratios without any ability to disable them (meaning you cannot set arbitrary color themes), is hopelessly bad at Unicode rendering (particularly with multi-codepoint graphemes, see [1]), and in general misbehaves in other myriad ways [2][3][4].

With both Ghostty and iTerm2 now freely available, there's really no reason to use Terminal.app.

[1]: https://mitchellh.com/writing/grapheme-clusters-in-terminals

[2]: https://github.com/neovim/neovim/issues/26093

[3]: https://github.com/neovim/neovim/issues/28776

[4]: https://github.com/neovim/neovim/pull/28453

gpanders commented on Ghostty 1.0   ghostty.org/... · Posted by u/matrixhelix
poincaredisk · a year ago
What is native UI in this context? My terminal emulator is also always basically a full-screen black textarea with white letters. No window borders, no tabs, no buttons, no menus, nothing else. Is there anything native UI would give me in this case (and what is a native UI, I can't find it defined anywhere)?
gpanders · a year ago
This gets brought up a lot, so I wrote about it here https://gpanders.com/blog/ghostty-is-native-so-what/
gpanders commented on Ghostty 1.0   ghostty.org/... · Posted by u/matrixhelix
dsp_person · a year ago
Hmm any way for this to work in kde plasma wayland?

In yakuake they have to register the Open/Retract shortcut with KGlobalAccel [1] and I don't think global shortcuts are implemented otherwise

[1] https://github.com/KDE/yakuake/blob/164d24b8bad1175199260c62...

gpanders · a year ago
It's a macOS-only feature, for now.
gpanders commented on Neovide – A simple, no-nonsense, cross-platform GUI for Neovim   neovide.dev... · Posted by u/frankjr
Quot · 2 years ago
If I had to guess, it's because terminals don't know what a cursor is. From the terminal's perspective, it is just told to print a solid blinking block at a certain location. Neovide knows what the cursor is because it is communicating directly with Neovim.

A terminal could do this, but there would need to be direct integration into Bash, ZSH, etc.

gpanders · 2 years ago
Terminals do have a concept of a cursor (there are dedicated control sequences for cursor management). There's no fundamental reason a terminal emulator couldn't implement an animated cursor like this, my guess as to why no one has done it is simply that it's not a very commonly requested feature.

u/gpanders

KarmaCake day995November 15, 2019
About
https://gpanders.com

Email: contact <AT> gpanders.com

View Original