Live data from Hacker News

Nerdy internals of an Apple text editor

papereditor.app

61–70 of 93 posts

Re: Nerdy internals of an Apple text editor

#61
post #39

I've been loving this app, It's replaced all other markdown apps for me including obsidian and ia Writer!

granted, I know Paper is an apt name, but there's at least 2 other iOS apps called "Paper" IIRc...

Yep…

"paper writing app" is a good keyword to search by.

Re: Nerdy internals of an Apple text editor

#65
post #13

Earlier quoted context omitted.

Depends on what you call “similar”. They’ll have storage, layout, a part of the layout that’s visible, etc, but they may not separate them that clearly, and won’t have that rich an API. TextView is way more flexible than what the typical _text_ editor needs. Text editors typically don’t need multiple fonts, multiple font sizes, varying line spacing, paragraph indents, proportional fonts, right-aligning or decimal tab…

Yep. TextView is a beast. For multi-megabyte files I always use Sublime.

And for multi-gigabyte files I use HexFiend.

Re: Nerdy internals of an Apple text editor

#66
post #18

In the era of DOM documents (see notion, gitbook) I very often resort to attributed strings to do magic stuff with text parsing and manipulation. It’s such an elegant structure and I don’t understand why is so unknown. Incredible article btw

Do you have an example? I’d love to learn more!

Re: Nerdy internals of an Apple text editor

#69

This is amazing content marketing. Developers are an obvious target niche for such a product. Exposing internals of the software in a way HNers enjoy sounds like a great idea, would love to see if it worked as a traction experiment.

Last time ( https://news.ycombinator.com/item?id=38866170 ) there was a small spike in sales, but no lasting effect. I would not say that developers are the target niche. The best customers are professional writers who use a ton of writing apps for different occasions.

Professional writer who uses different writing apps for different occasions is me exactly. I’m also the (or at least a) guy who messaged you about inline comments. As soon as all the details of that feature are implemented, I’m buying it.

Re: Nerdy internals of an Apple text editor

#70
post #13

Earlier quoted context omitted.

Depends on what you call “similar”. They’ll have storage, layout, a part of the layout that’s visible, etc, but they may not separate them that clearly, and won’t have that rich an API. TextView is way more flexible than what the typical _text_ editor needs. Text editors typically don’t need multiple fonts, multiple font sizes, varying line spacing, paragraph indents, proportional fonts, right-aligning or decimal tab…

Yep. TextView is a beast. For multi-megabyte files I always use Sublime.

BBEdit is more Mac-like than Sublime and handles multi-gig files with ease.
Post reply on HN