Live data from Hacker News

Lapce – Fast open-source code editor

lapce.dev

21–30 of 231 posts

Re: Lapce – Fast open-source code editor

#21
post #8

It looks really promising. I wonder why code editors have the file explorer on the left side by default, if you resize it you move the whole text (unless you write in a right-to-left language). A colleague made me aware of this a while ago and I cannot stop wondering. I moved it to the right ever since.

Probably so that way your code doesn't start at the left edge of the screen. This means your head stays more centered instead of constantly turned to the left.

Re: Lapce – Fast open-source code editor

#22
post #14
post #8

It looks really promising. I wonder why code editors have the file explorer on the left side by default, if you resize it you move the whole text (unless you write in a right-to-left language). A colleague made me aware of this a while ago and I cannot stop wondering. I moved it to the right ever since.

Hm, it depends how you use it, I would say. I totally agree that in a ltr context left side screams "focus point". On the other hand, the project drawers/file explorer is mostly toggled off while I work, so it doesn't take any screen real estate. And when I need it, it makes sense to be on the left side. I prefer to explore via some search mechanism though. Project drawers are only needed for special cases, like gett…

I think the file browser is like the high order digits in a number.

Re: Lapce – Fast open-source code editor

#25
Just tried it, on Linux. Pro:

- a single binary you can drop in ~/bin

- native Linux version

- really, really fast

- git branches in the top bar by default

Cons (beside being super new and lacking ecosystem):

- Use a custom window border, which is also pretty ugly IMO

- cannot use arrow keys in the command palette (or any file dialog). I guess it's a bug?

- default key bindings are... weird? ctrl+f doesn't prompt a find box for example

- cannot make syntax highlight work even on common formats like MarkDown, JSON or YAML

So, it feels very immature but for sure it is a great starting point, if I get good syntax highlight and code completion with a LSP (although it should already work) I might see me switching from VS Code to it, at least partially.

Re: Lapce – Fast open-source code editor

#27
I was super excited and took it for a spin, but this is not usable (macOS 12, arm). Not "rough around the edges", but "pre-alpha unusable". The command pallet didn't respond to arrow keys. I couldn't figure out how to search for an extension. There's no menu bar items, and it follows very few macOS platform conventions (eg, Cmd+T opens a new tab with its own workspace, but Cmd+W doesn't close it.) For some reason, the text is super blurry, especially on the file tree and other UI elements. The UI is obviously non-native and sticks out way more than VS Code's electron based UI.

I think it's a great project with a lot of potential, but I'll give it at least a year or two before general usability.

Re: Lapce – Fast open-source code editor

#28
post #15

Nowadays when I see "written in Rust" in the title, it reads like special pleading: "It's maybe not as good as what you use, but we are really proud to have got it working at all."

I think that's a perfectly valid appeal to altruism in a tech-savvy audience. It makes sense to take a hit on your individual needs and wants as a user in the short term, if it helps with keeping the tech ecosystem which we collectively inhabit healthy in the long term.

Free market forces based on individual self-interest have proven to be really bad at doing that, so altruism is needed to fill the gap.

...by that logic, I prefer software written in Rust to software written in C++ or Java Script even if it's worse from a user perspective, as long as it's tolerably worse rather than just unusable.

Re: Lapce – Fast open-source code editor

#29
post #8

It looks really promising. I wonder why code editors have the file explorer on the left side by default, if you resize it you move the whole text (unless you write in a right-to-left language). A colleague made me aware of this a while ago and I cannot stop wondering. I moved it to the right ever since.

> if you resize it you move the whole text

the main reason I change the sidebar's width is to recenter my text depending on my position in front of my screen aha... guess it's a case of the 1172s

Re: Lapce – Fast open-source code editor

#30
This is awesome! They seem to be using Wasmer [1] under the hood for their WebAssembly/WASI plugin system.

I would love to know if the IDE frontend could be compiled to Wasm (using WebGL/WebGPU under the hood) so it could run in the browsers, similarly to Makepad [2]

[1] https://wasmer.io/

[2] https://makepad.dev/

Post reply on HN