Live data from Hacker News

Ask HN: What do you want in a text editor?

news.ycombinator.com

1–10 of 26 posts

Ask HN: What do you want in a text editor?

#1
I'm making a simple open-source text editor (Qt5 wrapper around pandoc, markdown) intended more for journalists, academics and students than web developers -- so it has things like reference support and easy adaption of different citation styles baked in, accurate wordcounts, a distraction free mode, etc. Themes and previewing, as well as pdf creation without tex are already included, and pandoc means almost any output format is trivially easy to implement.

But what features would you like to see added to this list? Draft has its Hemingway mode, for example. What's missing from text editors you think you'd really like?

Re: Ask HN: What do you want in a text editor?

#5
For academics, you can pry Latex from their cold dead hands, so better include a Latex mode. Personally, I like emacs and I think that modes, aka the plug-in architecture has really a lot of merit, so try to expose as much as possible of the documents to a plug-in api. ( That one only becomes important when your project is very successful, but perhaps it is good thing to keep in mind.)

One thing I would like to see in emacs is something similar to scrivener's corkboard, basically a virtual corkboard were you can place index cards and group them together.

Re: Ask HN: What do you want in a text editor?

#6
Toggleable tree view for navigating, opening, closing, creating, and deleting files. You also mentioned previewing, but it'd be nice if you could have toggleable split screen mode for live previews (or wysiwyg mode). Last would be a way for contributors to write extensions to add additional features.

Re: Ask HN: What do you want in a text editor?

#7
post #5

For academics, you can pry Latex from their cold dead hands, so better include a Latex mode. Personally, I like emacs and I think that modes, aka the plug-in architecture has really a lot of merit, so try to expose as much as possible of the documents to a plug-in api. ( That one only becomes important when your project is very successful, but perhaps it is good thing to keep in mind.) One thing I would like to see i…

Awesome; but what do you reckon the best way to implement a corkboard is when it's entirely possible that you're dealing with individual documents, not Scrivener's groups of them? (Sorry, that sounds snarky; it's a genuine question; one global corkboard, per folder, or what?)

Re: Ask HN: What do you want in a text editor?

#8
post #6

Toggleable tree view for navigating, opening, closing, creating, and deleting files. You also mentioned previewing, but it'd be nice if you could have toggleable split screen mode for live previews (or wysiwyg mode). Last would be a way for contributors to write extensions to add additional features.

Got the split screen live preview already; tree view sounds a very useful addition, though.

Extensions are also a good plan; the interesting thing is that many of them end up being routed to pandoc, so they can be done with document metadata in any case. For others, one easy thing to do might be to rewrite some of the bits in C++ in PyQt, then have the possibility of importing classes that inherit from the originals and override functions. Does that make sense, do you think?

Re: Ask HN: What do you want in a text editor?

#9
You already have competition in the form of ReText:

https://github.com/retext-project/retext

(Unless that's the project?)

However, there are some things that ReText does poorly, like syncing between the output window and the input text:

https://github.com/retext-project/retext/issues/108

and some things ReText doesn't really do at all, such as autocompletion of citation labels, checking URLs to see if they are 404, or proper syntax highlighting in math mode.

Those kind of features tend to require doing difficult things like parsing the input, which is why most text editors don't bother.

Post reply on HN