Live data from Hacker News

Lapce – Fast open-source code editor

lapce.dev

141–150 of 231 posts

Re: Lapce – Fast open-source code editor

#141
post #108

I thought this is a brilliant output for a personal project. https://lite-xl.com/ is another one which is written in Lua. Brilliant and super fast. It is much more polished than Lapce but still rough around the edges with features though. Another one is Micro which is cool too. Either way I am loving the fact that new OSS text editors coming out.

Former contributor and user of Lite XL here.

It's an awesome little editor. I quit using it though because it seemed like the future direction of the project wasn't very clear, and from a practical standpoint VS Code simply has a better developer experience, but I had great fun hacking around it nevertheless.

One of my favorite things about rxi/lite and Lite XL is just how easy it is to write plugins. Simply create a new .lua file in the plugins directory and monkey-patch whatever you need. And while it might seem like monkey-patching isn't the most clean solution, that's not exactly true — the source code of the editor doesn't need to be cluttered with explicit hooks, and plugins interoperate with each other very well, because one plugin doesn't know about the others' existence. From its standpoint it just modifies the vanilla editor.

This extensibility allowed me to write some really cool stuff, the one plugin I'm especially proud of is lint+ [1], which leverages the immediate mode nature of the UI to draw pretty lint messages atop the text editor (and it even renders Rust's friendly compiler errors with little rails on the left! see issue #3 [2]).

Can recommend.

  [1]: https://github.com/liquidev/lintplus
  [2]: https://github.com/liquidev/lintplus/issues/3

Re: Lapce – Fast open-source code editor

#142

Author here. Thanks for all the feedback. I'm aware that Lapce lacks lots of basic stuff. It's a personal project so the initial set of features and key bindings are tight to my personal preferences. I'm currently working on the missing pieces, like multi cursor support(in master but not released yet), mouse support, sane default key bindings(probably I'll stick to an existing editor), basic UX etc. Feel free to subm…

For me, the most important feature is VIM bindings. I used to suffer from severe RSI and VIM was a big part of what helped my wrists recover.

Seriously.

I don't know how people text edit without the vim keybindings. I'll never go back!

Re: Lapce – Fast open-source code editor

#143
post #136

Earlier quoted context omitted.

Really? I take it to mean "fast and won't randomly segfault".

That should really apply to any systems language other than C for a text editor. As long as you have bounds checking and a test suite you're golden.

> As long as you have bounds checking and a test suite you're golden.

And other hilarious jokes you can tell yourself

Re: Lapce – Fast open-source code editor

#144

Author here. Thanks for all the feedback. I'm aware that Lapce lacks lots of basic stuff. It's a personal project so the initial set of features and key bindings are tight to my personal preferences. I'm currently working on the missing pieces, like multi cursor support(in master but not released yet), mouse support, sane default key bindings(probably I'll stick to an existing editor), basic UX etc. Feel free to subm…

I believe an open source editor should be built from source and I couldn't find links to sources or how to build from source on the website. The getting started documentation points to the download section. It would be cool if one of the downloads would be marked as source (for any OS).

There is a GitHub link on the top of the website. Build instructions are in the readme. https://github.com/lapce/lapce

Re: Lapce – Fast open-source code editor

#145

Earlier quoted context omitted.

For me, the most important feature is VIM bindings. I used to suffer from severe RSI and VIM was a big part of what helped my wrists recover.

Seriously. I don't know how people text edit without the vim keybindings. I'll never go back!

In emacs there are a few alternative modal editing modes I've been wanting to try.

https://github.com/Kungsgeten/ryo-modal

https://github.com/jyp/boon

https://github.com/emacsorphanage/god-mode

Re: Lapce – Fast open-source code editor

#146
post #73

Earlier quoted context omitted.

Why is moving the entire text a problem? It needs to be redrawn, but that's not expensive - it's like moving an entire window. If for some reason you needed to resize the left side very often, or it would even resize automatically, I would understand the concern.

It's not about computation, I like the text to stay still. When I was aware of this it started bothering me, so I've changed it to the right ever since. Of course this is a very small and picky detail.

Judging by the downvotes people are really annoyed by this :D I'd never know!

Re: Lapce – Fast open-source code editor

#148

Earlier quoted context omitted.

I haven't had a chance to test this yet but this is fantastic to see. Anything like this that progresses the cross-platform remote model that we now have with VSC, particularly if the endpoint is fast and memory-efficient, is really important, because of the variety of dev environments. What I would _really_ like, of course, is an iPad editor that could do the same. If you could make an iPad editor that has VSC-style…

Why don't you install VS Code as PWA from https://vscode.dev/ ?

vscode.dev is still for local development, not remote. It uses browser filesystem APIs to access your local filesystem. Whereas code-server runs on the remote and exposes a web server for you to connect to which serves up the filesystem on the remote.

Re: Lapce – Fast open-source code editor

#149

Earlier quoted context omitted.

It's similar to VSCode's remote development https://code.visualstudio.com/docs/remote/remote-overview Or trying to be.

So, yes - similar to TRAMP in Emacs: https://www.gnu.org/software/tramp/

Which is very nice, tho not new. Thought I use it less often than I did when I first learned about it. I just have emacs under tmux scattered around the boxes I am working with.

Re: Lapce – Fast open-source code editor

#150
Since it's in an early stage, would be neat if there's list of features that this project wants build and which ones of them are already done. It would help to manage users' expectation when they try this out and perhaps even invite people who have been-there-done-that to help you achieve the remaining goals.
Post reply on HN