Tasfer: a text editor drawn on a 2D canvas

hamza.se

35 points by hamza512b 4 days ago


gb2d_hn - 19 minutes ago

This looks great. I've been impressed at how flexible CodeMirror is though. When I started EtherPK (https://app.etherpk.com) I made a bet that CodeMirror could help me build an editor that could combine outliner blocks, standard prose and rich overlays / graphics / embeds in one editor. I was concerned that I'd hit a road block (I presumed Logseq used custom HTML, nested divs and click position mapping for rendered text to the underlying input for a reason), but 9 months in I couldn't be happier with my choice, and it's a blazing fast editor that feels really nice and light to type in (live demo: https://app.etherpk.com/demo)

SubiculumCode - 32 minutes ago

I wish Office 365 would hire someone like the author. Online Word never renders the same as it would in the Desktop software...and this matters. I deal with only modestly complex documents when I write grants but I do need to stay within page length limits for sections, I need some layout stability...so I inevitably fire up my Windows VM to run the application.

Before anyone suggests LateX, I know, I know, but when you write collaboratively, you don't always get to choose the platform.

hnlmorg - 35 minutes ago

This looks slick but I think you need a better way to market it.

The 2D canvas part is the norm for anyone who wants performance. Working with the DOM becomes painfully slow and resource intensive the moment you add syntax highlighting, spell checking, and other visual chrome, to large documents.

This is why Monaco (the editor widget behind VSCode) is a canvas. Why terminal emulators built with web technologies use canvas. And so on.

So I wouldn’t say the canvas part of the heading is a differentiator.

pcj-github - 42 minutes ago

I wrote a similar tool to this many years ago that used JATS as an internal document model, using contentEditable, and I can relate to the pain you refer to. Getting the semantics right in cases where you split or join text that has varying types of nested context was hard.

I like what you did here in terms of the cursor that points one way or the other: it tells you if you're in "normal" mode, or for example, in a bold region. I don't think I've seen that before so, if you made it up, that itself is a cool invention.

amelius - an hour ago

Not bad! But it got slow after I pasted the text of a random blog post 20 times or so. I don't think this will work for writing a book. But for short to medium length notes, it will do fine.

rpastuszak - 2 hours ago

We should chat (check bio)! For almost a decade now I’ve been working on a writing tool that might benefit from it. I build occasional forks with procgen on top it. That being said better bidi handling is something I’m most interested in.

Enso.sonnet.io - what I’m talking about.

(On untested.sonnet.io you’ll find notes about the experiments / toys related)

aziis98 - 2 hours ago

Ok the custom rich text latex editor is really cool. But I'm on a tablet and stuff like selecting text is a bit awkward (the up down auto scroll is not exactly the same as the native one and isn't as precise as the native one).

But still this is an awesome project!

docheinestages - an hour ago

What UI library did you use? Looks clean.

mrtesthah - 2 hours ago

Cool idea! I approve of the privacy oriented design. But it looks like you didn’t actually test this on iOS as automatic text correction is completely broken.

Also your website appears to have been written and generated entirely with an LLM. That doesn’t inspire trust.

enoch_hou - 28 minutes ago

[flagged]

prodmevin - 4 days ago

[dead]

fwip - 2 hours ago

[flagged]

- an hour ago
[deleted]