News for hackers. Stuff that matters.

papereditor

Re: on Thursday May 23, 2024 @05:35AM (#40452537)
Re:Apple rich text fundamentals on Tuesday May 21, 2024 @12:39PM (#40430695)
Thank you so much for the kind words!
Re:Nerdy internals of an Apple text editor on Friday March 15, 2024 @06:46AM (#39714101)
Done!

Comments are now hidden in the Preview Mode.

I've also added the comment block feature (%%) like in Ulysses:

https://help.ulysses.app/en_US/guides/comments-notes-annotat...

Shortcuts:

- Comment: Command+T

- Comment Block: Shift+Command+T

Adjusting the preferred comment syntax:

- Mac: Go to the Format menu, hold the Option key, then under More Formatting below Comment you can pick either ++ or /**/

- iOS: Go to the Settings app, then under Paper > Markdown pick either ++ or /**/

Re:Nerdy internals of an Apple text editor on Wednesday March 06, 2024 @11:17AM (#39617470)
Indeed!

I want to migrate Paper to it this or next year.

Re:Nerdy internals of an Apple text editor on Wednesday March 06, 2024 @05:31AM (#39614437)
Web tech is an obvious pragmatic choice. Cross-platform by default, amazing libraries with great support.

The average user does not care.

Re:Nerdy internals of an Apple text editor on Wednesday March 06, 2024 @04:31AM (#39614043)
Nice!

I'll be sure to prioritize this work then. :D

Re:Nerdy internals of an Apple text editor on Wednesday March 06, 2024 @04:30AM (#39614034)
Thanks!
Re:Nerdy internals of an Apple text editor on Wednesday March 06, 2024 @04:29AM (#39614029)
Indeed, there are a handful of those dev-oriented editors that crunch through mega files with ease. No idea why I prefer Sublime. :D
Re:Nerdy internals of an Apple text editor on Wednesday March 06, 2024 @04:26AM (#39614007)
iA Writer (https://ia.net/writer) is on Android as well.
Re:Nerdy internals of an Apple text editor on Wednesday March 06, 2024 @04:25AM (#39613998)
Interesting facts!
Re:Nerdy internals of an Apple text editor on Wednesday March 06, 2024 @04:24AM (#39613987)
Thanks!

I've been working on Paper for 9 years. I've had a lot of time to study how everything works. :D

Re:Nerdy internals of an Apple text editor on Tuesday March 05, 2024 @05:23PM (#39609922)
Thanks!
Re:Nerdy internals of an Apple text editor on Tuesday March 05, 2024 @05:21PM (#39609909)
Yep…

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

Re:Nerdy internals of an Apple text editor on Tuesday March 05, 2024 @05:19PM (#39609890)
Yep. TextView is a beast.

For multi-megabyte files I always use Sublime.

Re:Nerdy internals of an Apple text editor on Tuesday March 05, 2024 @05:14PM (#39609821)
Thank you!
Re:Nerdy internals of an Apple text editor on Tuesday March 05, 2024 @05:14PM (#39609807)
Thanks!

I am offloading all the storage to NSDocument, so I don't have to deal with stuff like this. :)

Re:Nerdy internals of an Apple text editor on Tuesday March 05, 2024 @05:12PM (#39609796)
Things might have changed already, but yes, when I measured it there was a noticeable difference.

Ideally, I would have expected it to behave like you have described.

Re:Nerdy internals of an Apple text editor on Tuesday March 05, 2024 @05:08PM (#39609755)
Thanks!

The play/pause buttons are meant to not disturb the reading. They are only for the rare occasions when you want to pause the video to examine it closer.

Comments can be hovered over to make them fully visible.

The text, yes, should have been more prominent…

Re:Nerdy internals of an Apple text editor on Tuesday March 05, 2024 @05:05PM (#39609717)
Thanks!
Re:Nerdy internals of an Apple text editor on Tuesday March 05, 2024 @05:04PM (#39609709)
Thanks!

The state is saved to local storage. Just delete the key from DevTools and they will come back. :D

Re:Nerdy internals of an Apple text editor on Tuesday March 05, 2024 @05:03PM (#39609693)
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.

Re:Nerdy internals of an Apple text editor on Tuesday March 05, 2024 @04:57PM (#39609631)
Thanks!

Yep, it's a win-win. A good resource plus a bit of marketing for the product.

Re:Nerdy internals of an Apple text editor on Tuesday March 05, 2024 @04:56PM (#39609614)
I don't use any low-level rendering code.
Re:Nerdy internals of an Apple text editor on Tuesday March 05, 2024 @04:55PM (#39609606)
Thank you!
Re:Nerdy internals of an Apple text editor on Tuesday March 05, 2024 @04:54PM (#39609603)
That looks like a good article, indeed. I have not seen it before. Thanks!
Re:Nerdy internals of an Apple text editor on Tuesday March 05, 2024 @04:53PM (#39609590)
Yes. NSTextStorage can also contain the same attributes as the temporary attributes (rendering attributes in TextKit 2).

The benefit of using temporary attributes is that changing them is very fast compared to invoking the full transaction on NSTextStorage. For example, switching between Light/Dark modes is very fast in Paper.

Older »