Re:Ox is a fast text editor, written in Rust, that runs in y...
by jeswin on Tuesday November 03, 2020 @01:34AM
(#24976978)
Yeah but that's not a realistic usecase for most users/developers. I haven't measured if Ox is faster or slower, but for me startup time and ability to quickly open files under 10MB are more important.
[ Parent
| on HN ]
Re:Ox is a fast text editor, written in Rust, that runs in y...
by pessimizer on Tuesday November 03, 2020 @04:39AM
(#24978011)
> Yeah but that's not a realistic usecase for most users/developers.
It also looks like vim and emacs don't decide what a realistic use case is, or if you're "most" users/developers. They just open text files for editing.
Re:Ox is a fast text editor, written in Rust, that runs in y...
by Aeolun on Tuesday November 03, 2020 @01:48AM
(#24977072)
Probably, but then we don’t use our normal editors when we want to open huge files, we use the fast ones.
Re:Ox is a fast text editor, written in Rust, that runs in y...
by saagarjha on Tuesday November 03, 2020 @01:46AM
(#24977059)
I open massive files in a text editor all the time.
Re:Ox is a fast text editor, written in Rust, that runs in y...
by bootcampwhere on Tuesday November 03, 2020 @01:52AM
(#24977094)
I also am regularly limited in opening large text files working with genetic data.
Re:Ox is a fast text editor, written in Rust, that runs in y...
by bruh2 on Tuesday November 03, 2020 @03:41AM
(#24977689)
I frequently open minified CSS/JS by accident. IntelliJ's project search window includes a small preview of each result when you hover it, so when you navigate through the results your might pass through a minified file and get your IDE to hang for a couple of minutes :)
Re:Ox is a fast text editor, written in Rust, that runs in y...
by vincnetas on Tuesday November 03, 2020 @01:50AM
(#24977086)
But for 10MB range do you even feel the delay for any of text editors? For me it feels instant whatever (terminal based) editor i'm using. And what does it even mean "fast" in this case. They all are definitely faster than me typing.
Re:Ox is a fast text editor, written in Rust, that runs in y...
by beowulfey on Tuesday November 03, 2020 @08:51AM
(#24979624)
Is something like Emacs, Vim, or Nano genuinely slow for you?
Even for large files, I've never noticed anything beyond microsecond-type delays with those. Definitely does not feel laggy to me, usually.
Re:Ox is a fast text editor, written in Rust, that runs in y...
by fnord123 on Tuesday November 03, 2020 @02:23AM
(#24977261)
It is very realistic when I copy a json dump into an editor and then do a key stroke to format it.
My beloved vim doesn't fair so we'll. VScode does very well on this.
Re:Ox is a fast text editor, written in Rust, that runs in y...
by ploxiln on Tuesday November 03, 2020 @04:14AM
(#24977889)
I noticed some years ago that vim can be much slower due to highlighting of particular syntax of huge files. For example it was fine with a 10MiB C file, but super slow with a 10MiB XML file, but fast again with ":syntax off"
Re:Ox is a fast text editor, written in Rust, that runs in y...
by _djo_ on Tuesday November 03, 2020 @04:19AM
(#24977913)
Are you doing the formatting via a Vim plugin?
I often find it's much faster to pipe out to a command line program to do formatting on huge files.
e.g.
:%! jq
or :%! xmllint --format -
Re:Ox is a fast text editor, written in Rust, that runs in y...
by OJFord on Tuesday November 03, 2020 @10:05AM
(#24980253)
Huh, thanks, I didn't know you could put the contents on stdin like that (%!) - just in case you (or anyone) was similarly unaware in reverse, you can also put `%` wherever you want to use the filename in the command.
i.e. I would have done:
:! jq %
and have probably been guilty of (not knowing `%!` per above): :! cat % | ...