Live data from Hacker News

Zed Editor Theme-Builder

zed.dev

41–50 of 88 posts

Re: Zed Editor Theme-Builder

#41

Earlier quoted context omitted.

I never liked trackpad. I am an avid RTS player, the mouse is by far the superious input device. Besides, I never work on a laptop. And this is a lame excuse. Smooth scrolling should also work when using keyboard with and pageup/pagedown, at least as an option and with some tuning preferences.

The arrow keys do scroll smoothly in Safari from my testing, but a clickwheel does not. Probably because scrolling inputs are meant to be precise.

macOS is a whole thing in terms of smooth scrolling, or HID (human interface devices) in general. It seems like Apple just doesn't put a lot of effort in terms of working with third-party HIDs:

* There's a standard way to enable high-resolution scroll reporting (pixel-level instead of line-level), but Apple doesn't use it.

* There's a standard approach to multi-touch digitizers/trackpads (documented and I think to some extent created by Microsoft, called PTP) which Apple doesn't support.

* Apple's own Magic Trackpad speaks a proprietary protocol and it appears you can only speak it if you claim to use their USB VID/PID. And I don't think doing that would go over well in a commercial product. (And if you do manage to speak it, it turns out their driver really doesn't do two-finger scrolling well with tiny trackpads anyway. They probably only tested it on the generous dimensions of their hardware.) (Also, it attaches to your entire device, so having an additional interface with a different driver doesn't appear to work either.)

But...you can inject smooth scrolling events via Core Graphics. So you can run a userspace program with accessibility permission that scrolls smoothly. And you can also communicate with USB devices from such a program. There are some existing programs for doing smooth scrolling with standard mice (Mac Mouse Fix is one). I'm writing a userspace driver for PTP to make my keyboard's built-in trackpad work properly.

Re: Zed Editor Theme-Builder

#42
My biggest problem with Zed right now is the font rendering doesn't look that good on MacOS. To me Sublime Text always had the best font rendering on Mac. Electron slowly over the years has gotten better and decent now. Zed just doesn't do the font justice. It's too thin or something.

Re: Zed Editor Theme-Builder

#44

Earlier quoted context omitted.

Scrolling is perfectly smooth when you use a trackpad. IMO, clickwheels are a legacy technology for scrolling (even when I use Windows, I left-hand a Magic Trackpad so I still have smooth analog scrolling).

I never liked trackpad. I am an avid RTS player, the mouse is by far the superious input device. Besides, I never work on a laptop. And this is a lame excuse. Smooth scrolling should also work when using keyboard with and pageup/pagedown, at least as an option and with some tuning preferences.

Smooth scrolling also worked on the Amiga Cygnus Editor in 1986 - yes, 40 years ago - on a computer with 512Kb RAM and a ~7MHz 68000 CPU, and from keyboard too. And Zed complains at launch if it doesn't find a suitable Vulkan GPU driver, since the fallback CPU driver does not provide a smooth enough experience, despite 4-5 orders of magnitude more RAM, and a ~3 orders of magnitude faster CPU, than a 40 years old Amiga...

Re: Zed Editor Theme-Builder

#45

Earlier quoted context omitted.

Scrolling is perfectly smooth when you use a trackpad. IMO, clickwheels are a legacy technology for scrolling (even when I use Windows, I left-hand a Magic Trackpad so I still have smooth analog scrolling).

I never liked trackpad. I am an avid RTS player, the mouse is by far the superious input device. Besides, I never work on a laptop. And this is a lame excuse. Smooth scrolling should also work when using keyboard with and pageup/pagedown, at least as an option and with some tuning preferences.

"smooth scrolling" with a mouse or keyboard like you mentioned is a lie. Its animating movement but is not precision input at all. its "smooth" sure but you have zero control over the actual scroll (i do wish zed did this too its genuinely useful as an accessibility aid because it lets your eyes follow where the cursor ends up for example but yeah its not the same as having proper precision input for scrolling as you do with a touchpad). I do agree a mouse is far better at precision input wrt pointing at things but when programming,,,, you do not need to be so precise with cursor movement. you're editing text which is largely keyboard centric, and the time offset between moving your hand from a mouse to a keyboard on a desktop is in my opinion far higher than it is to move your hands from a keyboard to a touchpad surface. Not to mention you get actual precision with scrolling with a touchpad. I personally keep both a proper MMO mouse with a dozen programmable buttons on my desk, and a apple touchpad with precision drivers for normal use.

also wrt scrolling, mice like the logitech mx master actually have what is in my opinion a much better solution where the scrollwheel is not stepped and has scrolling inertia, allowing you to have the same level of precision with scrolling as you do with a touchpad (im not sure if the vertical wheel on it is the same but regardless). Its in my opinion a similar jump in capability for mice as continous triggers were for game controllers. Something that must have been initially quite notable, but slowly became expected behaviour (except on the switch for some reason but whatever i guess)

Re: Zed Editor Theme-Builder

#46

Earlier quoted context omitted.

The arrow keys do scroll smoothly in Safari from my testing, but a clickwheel does not. Probably because scrolling inputs are meant to be precise.

macOS is a whole thing in terms of smooth scrolling, or HID (human interface devices) in general. It seems like Apple just doesn't put a lot of effort in terms of working with third-party HIDs: * There's a standard way to enable high-resolution scroll reporting (pixel-level instead of line-level), but Apple doesn't use it. * There's a standard approach to multi-touch digitizers/trackpads (documented and I think to so…

Last I checked, high-resolution scroll reporting over USB is not based on pixels but on fractions of a detent, which is annoying to say the least. Apple probably also didn't want to translate multitouch to scroll in hardware, since scrolls are not reported the same in all contexts (e.g. applications can choose whether it locks to an axis; which axes it can lock to depends on the capabilities of the view; etc.)

> But...you can inject smooth scrolling events via Core Graphics.

Applications can choose to ignore synthetic events, IIRC. Probably not an issue for scrolling, but for instance Little Snitch can be configured to ignore synthetic inputs to its security settings.

Re: Zed Editor Theme-Builder

#47
post #25

Earlier quoted context omitted.

I don't use zed or svelte, but this looks like the zed picture is missing a treesitter parser for svelte. Many editors have basic regex-based highlighting for many languages, and optional, more advanced, highlighting available through extensions. You may also get some semantic highlights provided by a language server if your editor uses the Language Server Protocol as well. I found one extension from a web search. Di…

It's been a while, but from what I remember you need that extension for any highlighting at all, and that screenshot is with it installed. Also, if I recall, it's something about that extension using an outdated treesitter parser or something along those lines.

Sounds to me like one major Zed enhancement should be to suggest plugins if you open specific programming language files...

Re: Zed Editor Theme-Builder

#48

Zed is "almost there" for me. The theme builder is good and easy to use, and I only needed a few minutes to make my own. Syntax coloring is almost there, but still lacking (I use C/C++) Small visual adjustment like line height in the UI text is not configurable enough (only two settings) Scrolling should have a smooth option, nothing prevents it, it should be super easy to add, I find it easier on the eyes when I mov…

Scrolling is perfectly smooth when you use a trackpad. IMO, clickwheels are a legacy technology for scrolling (even when I use Windows, I left-hand a Magic Trackpad so I still have smooth analog scrolling).

Used to have a mouse that had a scroll wheel that would toggle if it did the clicking motion or a smoother scrolling motion, I loved that one. I use Trackbals now, so if I need to scroll drastically I use the sidebar. Source Code map sidebar is the best though.

Re: Zed Editor Theme-Builder

#49

Earlier quoted context omitted.

Scrolling is perfectly smooth when you use a trackpad. IMO, clickwheels are a legacy technology for scrolling (even when I use Windows, I left-hand a Magic Trackpad so I still have smooth analog scrolling).

Used to have a mouse that had a scroll wheel that would toggle if it did the clicking motion or a smoother scrolling motion, I loved that one. I use Trackbals now, so if I need to scroll drastically I use the sidebar. Source Code map sidebar is the best though.

I have a mouse that can toggle the detents too, but unfortunately even with the detents off it does not read fractional scroll positions. :(

Re: Zed Editor Theme-Builder

#50

Earlier quoted context omitted.

It's been a while, but from what I remember you need that extension for any highlighting at all, and that screenshot is with it installed. Also, if I recall, it's something about that extension using an outdated treesitter parser or something along those lines.

Sounds to me like one major Zed enhancement should be to suggest plugins if you open specific programming language files...

It does this, but only for a couple dozen file extensions -- .svelte is one of them.

https://github.com/zed-industries/zed/blob/c8f09caee42ea4e27...

Post reply on HN